Named IFU decomp generate block

This commit is contained in:
David Harris 2024-01-01 07:37:40 -08:00
parent c52aef86a6
commit 6181639003

View File

@ -369,11 +369,11 @@ module ifu import cvw::*; #(parameter cvw_t P) (
flopenrc #(P.XLEN) PCDReg(clk, reset, FlushD, ~StallD, PCF, PCD);
// expand 16-bit compressed instructions to 32 bits
if (P.COMPRESSED_SUPPORTED) begin
if (P.COMPRESSED_SUPPORTED) begin: decomp
logic IllegalCompInstrD;
decompress #(P) decomp(.InstrRawD, .InstrD, .IllegalCompInstrD);
assign IllegalIEUInstrD = IllegalBaseInstrD | IllegalCompInstrD; // illegal if bad 32 or 16-bit instr
end else begin
end else begin: decomp
assign InstrD = InstrRawD;
assign IllegalIEUInstrD = IllegalBaseInstrD;
end