The generic map statement is used to associate values of constants within a block to constants defined outside the block.

 

For example, suppose a given entity includes an architecture, and the architecture includes a block. A generic map statement could be used to set the value of an entity constant (which was defined by a "generic" statement in the entity declaration), equal to the value of a block constant (which was defined by a "generic" statement in the block).

 

A generic map statement includes—in this order—the reserved words "generic map" followed by an association list (e.g., "LOCAL => GLOBAL").

 

Example

    U1: And2

        generic map (RISE_TIME => 2 ns, FALL_TIME => 2 ns);

        port map (A => IN1, B => IN2, Y => OUT1);

 

LRM

    5.2

 

See also

image\diamond.gif  Generic

image\diamond.gif  Port and Generic Mapping