> configure(npc)

ysyx_22040000 李心杨
 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux
  13:19:11  up 1 day 22:05,  2 users,  load average: 1.57, 1.99, 1.74
This commit is contained in:
tracer-ysyx 2024-01-06 13:19:11 +08:00 committed by xinyangli
parent 629cd5ba8e
commit bdc86fba9f

View file

@ -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