Skip to content

Commit

Permalink
Update core/branch_unit.sv
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
JeanRochCoulon and github-actions[bot] authored Dec 10, 2023
1 parent 2985909 commit 7e84fcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/branch_unit.sv
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ module branch_unit #(
branch_exception_o.tval = {{riscv::XLEN - riscv::VLEN{pc_i[riscv::VLEN-1]}}, pc_i};
// Only throw instruction address misaligned exception if this is indeed a `taken` conditional branch or
// an unconditional jump
if (branch_valid_i && (target_address[1:0] != 2'b00) && jump_taken) branch_exception_o.valid = 1'b1;
if (branch_valid_i && (target_address[1:0] != 2'b00) && jump_taken)
branch_exception_o.valid = 1'b1;
end
endmodule

0 comments on commit 7e84fcc

Please sign in to comment.