VHDL component instantiation from 2 different places

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Activity points
18,302
Hello,

Is it possible to instantiate a VHDL component from 2 different entities?
Some signals are used only in one entity and the remaining signals are used only by the second...
 

Not the same instantiation no. You'll have to provide all IO inside one entity.
 
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
That's an interesting language restriction. What about Verilog?
 

Not really that interesting, or that useful, and never a situation Ive ever seen anyone complain about. Afaik you cannot do it in any HDL (I dont think you can call half a function in C either!)
If you think of the design using the simile of circuit components, how would you expect to connect half a chip on one board and half a chip on another board? how would the two halves communicate? You might get around what you want to do with Global signals, but Altera will refuse to compile them (they are only really meant for simulation, and IMO, with the new hierarchical signal name access in VHDL 2008 almost completly redundant - also intended for simulation).
 
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
You must instantiate the component outside of the 2 entities and use ports to connect to it, or instantiate the component in one of them and connect the unused part to ports to make it available for another block/entity.
 
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
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…