Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Instance Name

Reply
Thread Tools

Instance Name

 
 
ALuPin
Guest
Posts: n/a
 
      04-07-2005
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é
 
Reply With Quote
 
 
 
 
Praveen
Guest
Posts: n/a
 
      04-07-2005
If you talking about somthing like this

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

yes, it will complain.

 
Reply With Quote
 
 
 
 
ALuPin
Guest
Posts: n/a
 
      04-08-2005
"Praveen" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed) roups.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é
 
Reply With Quote
 
Eric DELAGE
Guest
Posts: n/a
 
      04-08-2005
> > 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a variable name to a hash to name is part of the variable name Bobby Chamness Perl 2 04-22-2007 09:54 PM
print("my name is {name}, and {age}-year old {gender}", name, age, gender); =?iso-8859-1?B?bW9vcJk=?= Java 7 01-02-2006 04:39 PM
IE name="name" & form.name property bug Java script Dude Javascript 5 06-30-2004 03:07 AM
name = name.substring(0, name.lastIndexOf('.')); Help please Jack-2 Javascript 3 12-24-2003 04:39 PM
Re: Urgent! how to get object name, method name and attribute name based on the strings? ding feng C++ 2 06-25-2003 01:18 PM



Advertisments