Generic map

LRM §4.3.2.2, §5.2.1.2.

A generic map associates values with the formal generics fo a block

Syntax:

generic map ( [ generic_name => ] expression, ... )

Description:

A generic map gives the value to a generic. Usually given in an instance but can also appear in a configuration. The values can be given via positional association or via named association.

Use of named association is advised to improve readability and reduce the risk of making errors.

Example:

architecture Structure of Top is 
  component CompA 
    generic (TPLH, TPHL: TIME := 0 ns); 
    port (...);
  end component; 
begin 
  u1: CompA generic map (1.9 ns, 2.8 ns)
            port map (...);
  u2: CompA generic map (TPLH => 2 ns, TPHL => Top_Tphl) 
            port map (...); 
end Structure;

Notes:

See also:

Block, Configuration, Generic, Instantiation, Port map