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:
Markus Wegmann 2017-01-12 16:00:13 +01:00
parent 616ea9170d
commit 21f393a96c

View file

@ -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