- fixed missing CE at yout

git-svn-id: http://moon:8086/svn/vhdl/trunk@205 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2009-01-05 09:32:43 +00:00
parent 9832fbfac9
commit 245c01ad45
+4 -2
View File
@@ -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;