Output compressed instruction in tval

This commit is contained in:
Florian Zaruba 2017-07-13 11:46:31 +02:00
parent dc3bae683d
commit 390b3dbef4
2 changed files with 7 additions and 2 deletions

View file

@ -253,5 +253,10 @@ module compressed_decoder
// normal instruction
default: is_compressed_o = 1'b0;
endcase
// Check if the instruction was illegal, if it was then output the offending instruction (zero-extended)
if (illegal_instr_o && is_compressed_o) begin
instr_o = instr_i;
end
end
endmodule
endmodule

2
tb

@ -1 +1 @@
Subproject commit fc8ec368795f381a76ff200d5eed0d523ea9542d
Subproject commit bccd31aeb6ddd031c37088201a883ce01723a6b6