Browse Source

register mode_i and iv_i only if start_i is high

master
Torsten Meissner 13 years ago
parent
commit
b9ed938d6d
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      cbcdes/rtl/cbcdes.vhd

+ 5
- 3
cbcdes/rtl/cbcdes.vhd View File

@ -97,13 +97,15 @@ begin
s_iv <= (others => '0'); s_iv <= (others => '0');
s_datain <= (others => '0'); s_datain <= (others => '0');
elsif(rising_edge(clk_i)) then elsif(rising_edge(clk_i)) then
s_reset <= reset_i;
s_reset <= reset_i;
if(valid_i = '1' and s_ready = '1') then if(valid_i = '1' and s_ready = '1') then
s_mode <= mode_i;
s_start <= start_i; s_start <= start_i;
s_iv <= iv_i;
s_datain <= data_i; s_datain <= data_i;
end if; end if;
if(valid_i = '1' and s_ready = '1' and start_i = '1') then
s_mode <= mode_i;
s_iv <= iv_i;
end if;
end if; end if;
end process inputregister; end process inputregister;


Loading…
Cancel
Save