Skip to content

Commit

Permalink
Translate the pc_word signal in e1 into a byte address
Browse files Browse the repository at this point in the history
Needed for proper auipc execution
  • Loading branch information
JZJisawesome committed Apr 21, 2024
1 parent dd696a2 commit 276b436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/letc/core/letc_core_stage_e1.sv
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ end
always_comb begin
unique case (i_d_to_e1.alu_op1_src)
ALU_OP1_SRC_RS1: alu_operands[0] = rs1;
ALU_OP1_SRC_PC: alu_operands[0] = i_d_to_e1.pc_word;
ALU_OP1_SRC_PC: alu_operands[0] = {i_d_to_e1.pc_word, 2'b00};
ALU_OP1_SRC_CSR: alu_operands[0] = i_d_to_e1.csr_rdata;
ALU_OP1_SRC_ZERO: alu_operands[0] = 32'h0;
endcase
Expand Down

0 comments on commit 276b436

Please sign in to comment.