Skip to main content

Generic

Definition

Generic is used to set parameters of a Component, like the number of inputs to debounce or the clock frequency.

Example

Component <Name>
(
Generic
(
CLK_Frequency : NATURAL := 12000000;
Inputs range 1 to 8 : NATURAL;
Error_Correction : BOOLEAN := false;
);

)
NewComponent <Name>
(
CLK_Frequency => 50000000,
Inputs => 1,
--Error_Correction is false if not set

);