mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-22 04:47:25 -04:00
[rtl] Fix decode values for B Operand mux select
With data-independent timing enabled and BranchTargetALU configured, branches will stall for a cycle causing an illegal value to be decoded for the B Operand. No functional impact of this, but an assertion fires so we might as well tie it off properly. Fixes #1367 Signed-off-by: Tom Roberts <tomroberts@lowrisc.org>
This commit is contained in:
parent
f3b163af35
commit
a8e17579e2
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,7 @@ module ibex_decoder #(
|
|||
// First evaluate the branch condition
|
||||
alu_op_a_mux_sel_o = OP_A_REG_A;
|
||||
alu_op_b_mux_sel_o = OP_B_REG_B;
|
||||
end else begin
|
||||
end else if (!BranchTargetALU) begin
|
||||
// Then calculate jump target
|
||||
alu_op_a_mux_sel_o = OP_A_CURRPC;
|
||||
alu_op_b_mux_sel_o = OP_B_IMM;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue