passes quick test: slt, slti, sltu, sltiu

This commit is contained in:
2020-10-16 18:51:51 -06:00
parent 48c8b035bd
commit c98881c5d7
2 changed files with 52 additions and 7 deletions

View File

@ -218,7 +218,7 @@ always @(*) begin
casex ({s_id_funct3, s_id_funct7})
10'b000xxxxxxx: s_id_aluop = ALUOP_ADD; // ADDI
10'b010xxxxxxx: s_id_aluop = ALUOP_SLT; // SLTI
10'b011xxxxxxx: s_id_aluop = ALUOP_SLTU; // SLTUI
10'b011xxxxxxx: s_id_aluop = ALUOP_SLTU; // SLTIU
10'b100xxxxxxx: s_id_aluop = ALUOP_XOR; // XORI
10'b110xxxxxxx: s_id_aluop = ALUOP_OR; // ORI
10'b111xxxxxxx: s_id_aluop = ALUOP_AND; // ANDI