diff --git a/modules/common/gc_extend_pulse.vhd b/modules/common/gc_extend_pulse.vhd index 6ae80e530214f4d4074f52a5c7f55e487dc20bbe..939d516a463355576e70fe829effd1347fb71142 100644 --- a/modules/common/gc_extend_pulse.vhd +++ b/modules/common/gc_extend_pulse.vhd @@ -46,6 +46,7 @@ use ieee.NUMERIC_STD.all; library work; use work.gencores_pkg.all; +use work.genram_pkg.all; entity gc_extend_pulse is @@ -64,7 +65,7 @@ end gc_extend_pulse; architecture rtl of gc_extend_pulse is - signal cntr : unsigned(31 downto 0); + signal cntr : unsigned(f_log2_size(g_width)-1 downto 0); signal extended_int : std_logic; begin -- rtl