Skip to content

Commit

Permalink
Revert "Revert "fix int""
Browse files Browse the repository at this point in the history
This reverts commit bea13b9.
  • Loading branch information
cyyself committed Jul 19, 2022
1 parent 522c29c commit 3ae7053
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exception.sv
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ module exception(
);

wire [ 7:0] except;
assign except = (|master_except) ? master_except:slave_except;
assign except_inst_addr = (|master_except) ? master_pc :slave_pc ;
assign except_in_delayslot = (|master_except) ? master_is_in_delayslot : slave_is_in_delayslot;
assign except = (|master_except || (~(|slave_except))) ? master_except:slave_except;
assign except_inst_addr = (|master_except || (~(|slave_except))) ? master_pc :slave_pc ;
assign except_in_delayslot = (|master_except || (~(|slave_except))) ? master_is_in_delayslot : slave_is_in_delayslot;

always_comb begin: excepttype_define
except_target = 32'hBFC00380;
except_bad_addr = 0;
if(rst) begin
if(rst || master_pc == 0) begin
excepttype = 32'b0;
end else begin
if(((cp0_cause[15:8] & cp0_status[15:8]) != 8'h00) && (cp0_status[1] == 1'b0) && (cp0_status[0] == 1'b1)) begin
Expand Down

0 comments on commit 3ae7053

Please sign in to comment.