Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Instantiating multiple subcircuits [VHDL]

Status
Not open for further replies.

eafox

Newbie level 3
Newbie level 3
Joined
Apr 2, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,298
Is it possible to instantiate multiple subcircuits using a loop?
I'm thinking about something like this:

Code:
...
generic( N: integer:= 4);
...
for i in 1 to N loop
    unit_i: entity work.subcircuit(arch)
        port map(...)
end loop;
...

Thanks,

Edson
 

I found a solution. There is a special loop for subcircuit instantiation. This loop doesn't requiere to be inside a process.

Code:
generic(N: integer:= 4);
...
ssgen: for i in 1 to N generate
    unit: entity work.subcircuit(arch)
        port map(...);
end generate ssgen;
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top