diff --git a/npc/core/src/main/scala/Main.scala b/npc/core/src/main/scala/Main.scala index 0fd3f99..8f9e58a 100644 --- a/npc/core/src/main/scala/Main.scala +++ b/npc/core/src/main/scala/Main.scala @@ -35,7 +35,7 @@ class ALUGenerator(width: Int) extends Module { val out = Output(UInt(width.W)) }) - val adder_b = Fill(io.op(0), width) ^ io.b // take (-b) if sub + val adder_b = io.op(0) ^ io.b // take (-b) if sub val add = io.a + adder_b val and = io.a & io.b val not = ~io.a