Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   VHDL (http://www.velocityreviews.com/forums/f18-vhdl.html)
-   -   Are generics and ports static names? (http://www.velocityreviews.com/forums/t22663-are-generics-and-ports-static-names.html)

Mike Treseler 07-14-2004 07:13 PM

Are generics and ports static names?
 
David Jones (dej@coup.inode.org) 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


All times are GMT. The time now is 09:33 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57