Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

VHDL : how to make design with generic number of components

Status
Not open for further replies.

makanaky

Advanced Member level 4
Joined
Feb 1, 2007
Messages
104
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
1,944
I need to make a design which uses a generic number of (4 to 2) priority encoders according to the input size . The design will be on many stages . For example if the input is 16 bits, then i will use 4 priority encoders in the first stage followed by a priority encoder in the 2nd stage.
If the input was 64 bit, then first stage will have 16 priority encoders , 2nd stage will have 4 priority encoders and 3rd stage will have alast priority encoder. My question is how to make all this Generic ?
 

barry

Advanced Member level 5
Joined
Mar 31, 2005
Messages
4,986
Helped
1,090
Reputation
2,190
Reaction score
1,074
Trophy points
1,393
Location
California, USA
Activity points
27,288
I haven't thought this all out, but I think you might be able to use a generic with a generate block.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top