diff --git a/src/main/scala/EX.scala b/src/main/scala/EX.scala index bf69c80..e31f44e 100644 --- a/src/main/scala/EX.scala +++ b/src/main/scala/EX.scala @@ -21,8 +21,8 @@ class Execute extends MultiIOModule { ALUOps.AND -> (io.op1 & io.op2), ALUOps.OR -> (io.op1 | io.op2), ALUOps.XOR -> (io.op1 ^ io.op2), - ALUOps.SLT -> (io.op1 < io.op2).asSInt(), - ALUOps.SLTU -> (io.op1.asUInt() < io.op2.asUInt()).asSInt(), + ALUOps.SLT -> Mux(io.op1 < io.op2, 1.S, 0.S), + ALUOps.SLTU -> Mux(io.op1.asUInt() < io.op2.asUInt(), 1.S, 0.S), ALUOps.SRA -> (io.op1 >> io.op2(4, 0)), ALUOps.SRL -> (io.op1.asUInt() >> io.op2(4, 0)).asSInt(), ALUOps.SLL -> (io.op1.asUInt() << io.op2(4, 0)).asSInt(), diff --git a/src/test/scala/Manifest.scala b/src/test/scala/Manifest.scala index ca77290..dad7696 100644 --- a/src/test/scala/Manifest.scala +++ b/src/test/scala/Manifest.scala @@ -19,7 +19,7 @@ import LogParser._ object Manifest { - val singleTest = "load2.s" + val singleTest = "arithImm.s" val nopPadded = true