Instance Name

A

ALuPin

Hi newsgroup,

is it ok when I use the name of a component for its instantiation ?
Or do arise any confusing problems for the compiler when doing so ?

Thank you for your help.

Rgds
André
 
P

Praveen

If you talking about somthing like this

component andgate
(
);
....
...
...
....
andgate : andgate port map (........................) ;
...
...

yes, it will complain.
 
A

ALuPin

Praveen said:
If you talking about somthing like this

component andgate
(
);
...
..
..
...
andgate : andgate port map (........................) ;
..
..

yes, it will complain.


Yes, that is what I was talking about.

Rgds
André
 
E

Eric DELAGE

andgate : andgate port map (........................) ;

You should try the following:

- put your component into a separate package P ;
- add to your VHDL code
...
use work.P;
...
andgate: P.andgate port map (.....);
...

This avoids the collision name issue and therefore should allow your
instanciation. Please note that Synplify and ModelSim support this
legal VHDL construct but Xilinx ISE not (or le's say that I haven't
succeed to use it w/ XST ;-)

Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top