diff --git a/lib/CPUs/MIPS/src/core/mips_cop.vhd b/lib/CPUs/MIPS/src/core/mips_cop.vhd index 41232c6..7795fdd 100644 --- a/lib/CPUs/MIPS/src/core/mips_cop.vhd +++ b/lib/CPUs/MIPS/src/core/mips_cop.vhd @@ -80,7 +80,6 @@ architecture Behavioral of cop is signal reg_rptr : reg_ptr_t; signal reg_wptr : reg_ptr_t; signal inject_exc : STD_LOGIC; - signal inject_rst : STD_LOGIC; type cop_pipe_t is record opc : opcode_t; @@ -130,7 +129,7 @@ begin cop_pipe_ID.RFE <= cop_pipe_ID.cs when (cop_pipe_ID.CO = '1' and cop_pipe_ID.func = "010000") else '0'; ctrl_out.EB <= EB_reg xor (status(25) and status(1)); ctrl_out.user_mode <= status(1); - ctrl_out.exc_inject <= inject_exc or inject_rst; + ctrl_out.exc_inject <= inject_exc or rst; cop_pipe_ID.reg_ptr <= cop_pipe_ID.rd when cop_pipe_ID.opc = "010000" else cop_pipe_ID.rt; im <= status(15 downto 8); @@ -352,10 +351,8 @@ cop_exc_vector: begin if rising_edge(clk) then if rst = '1' then - inject_rst <= '1'; ctrl_out.exc_vec <= X"BFC00000"; else - inject_rst <= '0'; ctrl_out.exc_vec <= X"80000080"; if status(22) = '1' then ctrl_out.exc_vec <= X"BFC00180";