Are generics and ports static names?

Discussion in 'VHDL' started by Mike Treseler, Jul 14, 2004.

  1. David Jones () 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
     
    Mike Treseler, Jul 14, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David Jones

    Are generics and ports static names?

    David Jones, Feb 20, 2004, in forum: VHDL
    Replies:
    0
    Views:
    591
    David Jones
    Feb 20, 2004
  2. =?ISO-8859-1?Q?Thomas_Gagn=E9?=

    Why do static and non-static method names collide?

    =?ISO-8859-1?Q?Thomas_Gagn=E9?=, Jul 2, 2003, in forum: Java
    Replies:
    12
    Views:
    5,695
    cgbusch
    Jul 5, 2003
  3. Juergen Berchtel
    Replies:
    1
    Views:
    6,031
    John C. Bollinger
    May 20, 2005
  4. Soul
    Replies:
    0
    Views:
    532
  5. mreister
    Replies:
    1
    Views:
    3,229
    mreister
    May 25, 2010
Loading...

Share This Page