Browse Source

removed internal synced copy of reset; set ready to high in reset

master
T. Meissner 11 years ago
parent
commit
258e9db1e4
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      tdes/rtl/vhdl/tdes.vhd

+ 3
- 6
tdes/rtl/vhdl/tdes.vhd View File

@ -64,7 +64,6 @@ architecture rtl of tdes is
signal s_ready : std_logic; signal s_ready : std_logic;
signal s_reset : std_logic;
signal s_mode : std_logic; signal s_mode : std_logic;
signal s_des2_mode : std_logic; signal s_des2_mode : std_logic;
signal s_des1_validin : std_logic := '0'; signal s_des1_validin : std_logic := '0';
@ -94,13 +93,11 @@ begin
inputregister : process(clk_i, reset_i) is inputregister : process(clk_i, reset_i) is
begin begin
if(reset_i = '0') then if(reset_i = '0') then
s_reset <= '0';
s_mode <= '0'; s_mode <= '0';
s_key1 <= (others => '0'); s_key1 <= (others => '0');
s_key2 <= (others => '0'); s_key2 <= (others => '0');
s_key3 <= (others => '0'); s_key3 <= (others => '0');
elsif(rising_edge(clk_i)) then elsif(rising_edge(clk_i)) then
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_mode <= mode_i;
s_key1 <= key1_i; s_key1 <= key1_i;
@ -109,17 +106,17 @@ begin
end if; end if;
end if; end if;
end process inputregister; end process inputregister;
outputregister : process(clk_i, reset_i) is outputregister : process(clk_i, reset_i) is
begin begin
if(reset_i = '0') then if(reset_i = '0') then
s_ready <= '0';
s_ready <= '1';
elsif(rising_edge(clk_i)) then elsif(rising_edge(clk_i)) then
if(valid_i = '1' and s_ready = '1') then if(valid_i = '1' and s_ready = '1') then
s_ready <= '0'; s_ready <= '0';
end if; end if;
if(s_des3_validout = '1' or (reset_i = '1' and s_reset = '0')) then
if(s_des3_validout = '1') then
s_ready <= '1'; s_ready <= '1';
end if; end if;
end if; end if;


Loading…
Cancel
Save