mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 13:27:10 -04:00
fix: compressed decoder
Output the original instruction for `0x0000` cases.
This commit is contained in:
parent
8f4c75c5e4
commit
6372c810b0
1 changed files with 4 additions and 1 deletions
|
@ -47,7 +47,10 @@ module ibex_compressed_decoder (
|
|||
// c.addi4spn -> addi rd', x2, imm
|
||||
instr_o = {2'b0, instr_i[10:7], instr_i[12:11], instr_i[5],
|
||||
instr_i[6], 2'b00, 5'h02, 3'b000, 2'b01, instr_i[4:2], {OPCODE_OP_IMM}};
|
||||
if (instr_i[12:5] == 8'b0) illegal_instr_o = 1'b1;
|
||||
if (instr_i[12:5] == 8'b0) begin
|
||||
illegal_instr_o = 1'b1;
|
||||
instr_o = instr_i;
|
||||
end
|
||||
end
|
||||
|
||||
3'b010: begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue