parent
22ed29a149
commit
260246f488
|
@ -110,6 +110,7 @@
|
||||||
`define INST_LUI 7'b0110111
|
`define INST_LUI 7'b0110111
|
||||||
`define INST_AUIPC 7'b0010111
|
`define INST_AUIPC 7'b0010111
|
||||||
`define INST_NOP 32'h00000001
|
`define INST_NOP 32'h00000001
|
||||||
|
`define INST_NOP_OP 7'b0000001
|
||||||
`define INST_MRET 32'h30200073
|
`define INST_MRET 32'h30200073
|
||||||
`define INST_RET 32'h00008067
|
`define INST_RET 32'h00008067
|
||||||
|
|
||||||
|
|
|
@ -1028,7 +1028,7 @@ module ex(
|
||||||
jump_flag = `JumpDisable;
|
jump_flag = `JumpDisable;
|
||||||
reg_wdata = {inst_i[31:12], 12'b0} + inst_addr_i;
|
reg_wdata = {inst_i[31:12], 12'b0} + inst_addr_i;
|
||||||
end
|
end
|
||||||
`INST_NOP: begin
|
`INST_NOP_OP: begin
|
||||||
jump_flag = `JumpDisable;
|
jump_flag = `JumpDisable;
|
||||||
hold_flag = `HoldDisable;
|
hold_flag = `HoldDisable;
|
||||||
jump_addr = `ZeroWord;
|
jump_addr = `ZeroWord;
|
||||||
|
|
|
@ -232,7 +232,7 @@ module id(
|
||||||
reg1_raddr_o = `ZeroReg;
|
reg1_raddr_o = `ZeroReg;
|
||||||
reg2_raddr_o = `ZeroReg;
|
reg2_raddr_o = `ZeroReg;
|
||||||
end
|
end
|
||||||
`INST_NOP: begin
|
`INST_NOP_OP: begin
|
||||||
reg_we_o = `WriteDisable;
|
reg_we_o = `WriteDisable;
|
||||||
reg_waddr_o = `ZeroReg;
|
reg_waddr_o = `ZeroReg;
|
||||||
reg1_raddr_o = `ZeroReg;
|
reg1_raddr_o = `ZeroReg;
|
||||||
|
|
Loading…
Reference in New Issue