> 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:18:35  up 1 day 22:05,  2 users,  load average: 1.52, 2.01, 1.74
This commit is contained in:
tracer-ysyx 2024-01-06 13:18:35 +08:00 committed by xinyangli
parent 37bedd23e4
commit 629cd5ba8e

View file

@ -35,7 +35,7 @@ class ALUGenerator(width: Int) extends Module {
val out = Output(UInt(width.W))
})
val adder_b = Fill(width)(io.op(0)) ^ io.b // take (-b) if sub
val adder_b = Fill(io.op(0), width) ^ io.b // take (-b) if sub
val add = io.a + adder_b
val and = io.a & io.b
val not = ~io.a