Skip to content

Commit

Permalink
Code clean-up to be pushed to master
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanRochCoulon committed Aug 30, 2024
1 parent a66efad commit e489571
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 96 deletions.
2 changes: 1 addition & 1 deletion core/commit_stage.sv
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ module commit_stage
// );

for (genvar i = 0; i < CVA6Cfg.NrCommitPorts; i++) begin : gen_waddr
assign waddr_o[i] = commit_instr_i[i].rd[4:0];
assign waddr_o[i] = commit_instr_i[i].rd;
end

assign pc_o = commit_instr_i[0].pc;
Expand Down
6 changes: 3 additions & 3 deletions core/cva6_rvfi.sv
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ module cva6_rvfi
rvfi_instr_o[i].cause <= ex_commit_cause;
rvfi_instr_o[i].mode <= (CVA6Cfg.DebugEn && debug_mode) ? 2'b10 : priv_lvl;
rvfi_instr_o[i].ixl <= CVA6Cfg.XLEN == 64 ? 2 : 1;
rvfi_instr_o[i].rs1_addr <= commit_instr_rs1[i][4:0];
rvfi_instr_o[i].rs2_addr <= commit_instr_rs2[i][4:0];
rvfi_instr_o[i].rd_addr <= commit_instr_rd[i][4:0];
rvfi_instr_o[i].rs1_addr <= commit_instr_rs1[i];
rvfi_instr_o[i].rs2_addr <= commit_instr_rs2[i];
rvfi_instr_o[i].rd_addr <= commit_instr_rd[i];
rvfi_instr_o[i].rd_wdata <= (CVA6Cfg.FpPresent && is_rd_fpr(
commit_instr_op[i]
)) ? commit_instr_result[i] : wdata[i];
Expand Down
Loading

0 comments on commit e489571

Please sign in to comment.