From ed8e6a09e84c640c3e155451696ca28daba22fc1 Mon Sep 17 00:00:00 2001
From: Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
Date: Thu, 21 Mar 2013 10:08:28 +0100
Subject: [PATCH] gc_extend_pulse: save some resources, don't need to use fixed
 size 32-bit counter

---
 modules/common/gc_extend_pulse.vhd | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/common/gc_extend_pulse.vhd b/modules/common/gc_extend_pulse.vhd
index 6ae80e53..939d516a 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
-- 
GitLab