Skip to content

Commit

Permalink
fix: fix CACOP decode
Browse files Browse the repository at this point in the history
  • Loading branch information
eastonman committed Jun 17, 2022
1 parent 0cdb53c commit 2e69216
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/vsrc/pipeline/1_decode/decoder_2RI12.sv
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,14 @@ module decoder_2RI12
alusel_o = `EXE_RES_NOP;
end
`EXE_CACOP: begin
reg_write_valid_o = 0;
reg_write_addr_o = 0;
reg_read_valid_o = 2'b00;
reg_read_addr_o = {5'b0, rj};
use_imm = 1'b1;
aluop_o = `EXE_CACOP_OP;
imm_o = {{20{imm_12[11]}}, imm_12}; // Signed Extension
alusel_o = `EXE_RES_NOP;
imm_o = {{20{imm_12[11]}}, imm_12}; // Signed Extension
end
default: begin
use_imm = 1'b0;
Expand Down

0 comments on commit 2e69216

Please sign in to comment.