Instance Name

A

ALuPin

Guest
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é
 
If you talking about somthing like this

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

yes, it will complain.
 
"Praveen" <sams235@gmail.com> wrote in message news:<1112899735.125483.123240@o13g2000cwo.googlegroups.com>...
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é
 
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
 

Welcome to EDABoard.com

Sponsor

Back
Top