[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:
Tom Roberts 2020-10-13 16:54:42 +01:00 committed by Tom Roberts
parent bcbf1a7adf
commit adc574b8b0

View file

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