Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Are generics and ports static names?

Reply
Thread Tools

Are generics and ports static names?

 
 
Mike Treseler
Guest
Posts: n/a
 
      07-14-2004
David Jones ((E-Mail Removed)) wrote

> LRM 4.3.2.2, p. 63, line 508:
>
> "Each association element that associates a slice or subelement (or slice
> thereof) of an interface object must identify the formal with a locally
> static name."
>
> With these definitions, how is the following legal:
>
> U1: FOO port map(BAR(3) => BAZ);
>
> BAR is an object, therefore not a locally static name.


Annex B says

B.148 locally static name:
A name in which every expression is locally static
(if every discrete range that appears as part of the
name denotes a locally static range or subtype
and if no prefix within the name is either an object or
value of an access type or a function call).


BAR(3) is a locally static name because "3" is a static subrange.
It's legal as long as the rest of BAR'range is covered,
and there isn't an constant or function in scope named
"ba" for example.


-- Mike Treseler
 
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
generics depending on generics Soul VHDL 0 02-02-2009 09:14 AM
multiD-vhdl: Multi Dimensional Arrays (allowing generics on each dimension) for VHDL (including ports) albert.neu@gmail.com VHDL 2 03-21-2006 04:05 PM
Recommendations Please for a PCI card w/ two USB 2 Ports and FireWaire Ports Mike Digital Photography 27 02-26-2006 12:54 AM
Can't convert a generics list of objects into a generics list ofinterfaces Juergen Berchtel Java 1 05-20-2005 02:07 PM
Are generics and ports static names? David Jones VHDL 0 02-20-2004 07:48 PM



Advertisments