From 245c01ad451c3d7599c6532fd3684435585ccd92 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Mon, 5 Jan 2009 09:32:43 +0000 Subject: [PATCH] - fixed missing CE at yout git-svn-id: http://moon:8086/svn/vhdl/trunk@205 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/filter/src/fir_stage_sys.vhd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/filter/src/fir_stage_sys.vhd b/lib/filter/src/fir_stage_sys.vhd index 75a9a1a..7a3b240 100644 --- a/lib/filter/src/fir_stage_sys.vhd +++ b/lib/filter/src/fir_stage_sys.vhd @@ -138,8 +138,10 @@ begin variable yout : sfixed(shi(nbits_out, nbits_out_frac) downto slo(nbits_out, nbits_out_frac)); begin if rising_edge(clk) then - yout := resize(yin + prod, yout, fixed_wrap, fixed_truncate); - y_out <= yout; + if ce = '1' then + yout := resize(yin + prod, yout, fixed_wrap, fixed_truncate); + y_out <= yout; + end if; end if; end process;