🐛 Fix destination encoding for AUIPC

This commit is contained in:
Florian Zaruba 2017-06-02 17:53:59 +02:00
parent 80408364e3
commit a4ccd3c85d
2 changed files with 4 additions and 0 deletions

View file

@ -382,6 +382,7 @@ module decoder (
instruction_o.fu = ALU;
imm_select = UIMM;
instruction_o.use_pc = 1'b1;
instruction_o.rd = instr.utype.rd;
end
OPCODE_LUI: begin

View file

@ -200,6 +200,9 @@ always_comb begin : push_instruction_and_wb
mem_n[trans_id_i[j]].ex = ex_i[j];
end
end
// ------------------------------
// Flush un-issued instructions
// ------------------------------
// flush all instructions which are not issued, e.g. set the top pointer back to the issue pointer
// -> everything we decoded so far was garbage
if (flush_unissued_instr_i) begin