We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ae7053 commit 55d7b56Copy full SHA for 55d7b56
exception.sv
@@ -28,10 +28,10 @@ module exception(
28
always_comb begin: excepttype_define
29
except_target = 32'hBFC00380;
30
except_bad_addr = 0;
31
- if(rst || master_pc == 0) begin
+ if(rst) begin
32
excepttype = 32'b0;
33
end else begin
34
- if(((cp0_cause[15:8] & cp0_status[15:8]) != 8'h00) && (cp0_status[1] == 1'b0) && (cp0_status[0] == 1'b1)) begin
+ if(((cp0_cause[15:8] & cp0_status[15:8]) != 8'h00) && (cp0_status[1] == 1'b0) && (cp0_status[0] == 1'b1) && (|master_pc)) begin
35
excepttype = 32'h00000001;
36
end else if(except[1] == 1'b1) begin
37
// data load出错
0 commit comments