Skip to content

Commit

Permalink
Fix AUIPC to use PC instead of PC+4
Browse files Browse the repository at this point in the history
  • Loading branch information
onsdagens committed Jul 30, 2023
1 parent 8d72810 commit 20e9e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv/src/components/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ mod test {
simulator.clock();
assert_eq!(simulator.get_input_value(wb_mux), 0.into());
assert_eq!(simulator.get_input_value(alu_operand_a_sel), 1.into());
assert_eq!(simulator.get_input_value(alu_operand_b_sel), 2.into());
assert_eq!(simulator.get_input_value(alu_operand_b_sel), 3.into());
assert_eq!(
simulator.get_input_value(regfile_rs1),
SignalValue::Uninitialized
Expand Down

0 comments on commit 20e9e80

Please sign in to comment.