Instantiating multiple subcircuits [VHDL]

Status
Not open for further replies.

eafox

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…