diff --git a/lib/emac/src/piso.vhd b/lib/emac/src/piso.vhd index e8c4a4b..ef9c2f6 100644 --- a/lib/emac/src/piso.vhd +++ b/lib/emac/src/piso.vhd @@ -57,7 +57,7 @@ begin elsif pre_fin = '1' and rdy = '0' then rdy <= '1'; elsif din_vld = '1' then - rdy <= not din_vld_reg; + rdy <= '0'; end if; end if; end process; @@ -89,7 +89,7 @@ begin if rst = '1' then shift_cnt_pipe <= (others => '1'); elsif dout_en = '1' then - if pre_fin = '1' and din_vld_reg = '1' then + if (pre_fin = '1' and din_vld_reg = '1') or (din_vld = '1' and din_vld_reg = '0') then shift_cnt_pipe <= (others => '0'); else shift_cnt_pipe <= shift_cnt_pipe(shift_cnt_pipe'left-1 downto 0) & '1';