From c6e0de57ec51bd65c590de21110cf9e4b34c54c8 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Sun, 4 Apr 2010 09:55:51 +0000 Subject: [PATCH] - minor fix Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@854 cc03376c-175c-47c8-b038-4cd826a8556b --- lib/emac/src/piso.vhd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/emac/src/piso.vhd b/lib/emac/src/piso.vhd index 51152fa..037ff3f 100644 --- a/lib/emac/src/piso.vhd +++ b/lib/emac/src/piso.vhd @@ -88,8 +88,10 @@ begin if rising_edge(clk) then if rst = '1' then shift_cnt_pipe <= (others => '1'); + elsif (din_vld = '1' and din_vld_reg = '0') then + shift_cnt_pipe <= (others => '0'); elsif dout_en = '1' then - if (pre_fin = '1' and din_vld_reg = '1') or (din_vld = '1' and din_vld_reg = '0') then + if (pre_fin = '1' and din_vld_reg = '1') then shift_cnt_pipe <= (others => '0'); else shift_cnt_pipe <= shift_cnt_pipe(shift_cnt_pipe'left-1 downto 0) & '1';