mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 21:07:34 -04:00
Fix bug in branch_taken_ex
If we are in branch_2nd_stage, do not deassert branch_taken_ex as it is needed by the CSR and Debugger
This commit is contained in:
parent
616ea9170d
commit
21f393a96c
1 changed files with 5 additions and 0 deletions
|
@ -649,7 +649,12 @@ module riscv_id_stage
|
|||
// signal to 0 for instructions that are done
|
||||
assign clear_instr_valid_o = id_ready_o | halt_id;
|
||||
|
||||
// CONFIG_REGION: NO_JUMP_ADDER
|
||||
`ifdef NO_JUMP_ADDER
|
||||
assign branch_taken_ex = branch_in_ex_o & (branch_decision_i | branch_2nd_stage);
|
||||
`else
|
||||
assign branch_taken_ex = branch_in_ex_o & branch_decision_i;
|
||||
`endif
|
||||
|
||||
// CONFIG_REGION: MUL_SUPPORT
|
||||
`ifdef MUL_SUPPORT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue