Added missing compressed instruction: c.slt

This commit is contained in:
Andreas Traber 2015-08-27 09:39:22 +02:00
parent cdabd40c59
commit 4baf8eaad9
2 changed files with 2 additions and 2 deletions

View file

@ -95,7 +95,8 @@ module compressed_decoder
5'b01111: instr_o = {7'b0, 2'b01, instr_i[4:2], 2'b01, instr_i[9:7], 3'b011, 2'b01, instr_i[4:2], `OPCODE_OP};
// c.sra
// c.slt
// c.slt -> slt rd', rd', rs2'
5'b00110: instr_o = {7'b0, 2'b01, instr_i[4:2], 2'b01, instr_i[9:7], 3'b010, 2'b01, instr_i[9:7], `OPCODE_OP};
// c.sltr
default: illegal_instr_o = 1'b1;
endcase

View file

@ -160,7 +160,6 @@ module id_stage
// Compressed instruction decoding
logic [31:0] instr;
logic illegal_compressed_instr;
// Immediate decoding and sign extension
logic [31:0] imm_i_type;