mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-24 13:57:19 -04:00
[rtl] Fix missing else branch in decoder
- Without the B extension, a gorci instruction should decode as an illegal instruction. - Relates to #1129 Signed-off-by: Tom Roberts <tomroberts@lowrisc.org>
This commit is contained in:
parent
bcbf1a7adf
commit
adc574b8b0
1 changed files with 2 additions and 0 deletions
|
@ -408,6 +408,8 @@ module ibex_decoder #(
|
|||
illegal_insn = 1'b0; // gorci
|
||||
end else if (instr[24:20] == 5'b00111) begin
|
||||
illegal_insn = (RV32B == RV32BBalanced) ? 1'b0 : 1'b1; // orc.b
|
||||
end else begin
|
||||
illegal_insn = 1'b1;
|
||||
end
|
||||
end
|
||||
5'b0_0001: begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue