> 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:21:08  up 1 day 22:07,  2 users,  load average: 0.94, 1.60, 1.63
This commit is contained in:
tracer-ysyx 2024-01-06 13:21:08 +08:00 committed by xinyangli
parent bdc86fba9f
commit d4ab3e5752

View file

@ -44,7 +44,7 @@ class ALUGenerator(width: Int) extends Module {
val slt = io.a < io.b
val eq = io.a === io.b
io.out := MuxLookup(0.U, io.op, Seq(
io.out := MuxLookup(io.op, 0.U) Map(
0.U -> add,
1.U -> add, // add with b reversed
2.U -> not,
@ -53,7 +53,7 @@ class ALUGenerator(width: Int) extends Module {
5.U -> xor,
6.U -> slt,
7.U -> eq,
))
)
}
class MuxGenerator(width: Int, nInput: Int) extends Module {