Skip to content

Commit

Permalink
Fix SLTU codification mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanOsp9 committed Jan 6, 2025
1 parent d8c95d6 commit c32e734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 02_single-cycle_RISC-V_core/src/main/scala/core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class RV32Icore (BinaryFile: String) extends Module {
val isSUB = (opcode === "b0110011".U && funct3 === "b000".U && funct7 === "b0100000".U) // Substract
val isSLL = (opcode === "b0110011".U && funct3 === "b001".U && funct7 === "b0000000".U) // Shift left logical
val isSLT = (opcode === "b0110011".U && funct3 === "b010".U && funct7 === "b0000000".U) // Set less than (signed)
val isSLTU = (opcode === "b0110011".U && funct3 === "b000".U && funct7 === "b0000000".U) // Set less than (unsigned)
val isSLTU = (opcode === "b0110011".U && funct3 === "b011".U && funct7 === "b0000000".U) // Set less than (unsigned)
val isXOR = (opcode === "b0110011".U && funct3 === "b100".U && funct7 === "b0000000".U) // Bitwise XOR
val isSRL = (opcode === "b0110011".U && funct3 === "b101".U && funct7 === "b0000000".U) // Shift right logical
val isSRA = (opcode === "b0110011".U && funct3 === "b101".U && funct7 === "b0100000".U) // Shift right arithmetic
Expand Down

0 comments on commit c32e734

Please sign in to comment.