Generic map |
LRM §4.3.2.2, §5.2.1.2. |
A generic map associates values with the formal generics fo a block
generic map ( [ generic_name => ] expression, ... )
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.
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;