> 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:
parent
bdc86fba9f
commit
d4ab3e5752
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class ALUGenerator(width: Int) extends Module {
|
||||||
val slt = io.a < io.b
|
val slt = io.a < io.b
|
||||||
val eq = 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,
|
0.U -> add,
|
||||||
1.U -> add, // add with b reversed
|
1.U -> add, // add with b reversed
|
||||||
2.U -> not,
|
2.U -> not,
|
||||||
|
@ -53,7 +53,7 @@ class ALUGenerator(width: Int) extends Module {
|
||||||
5.U -> xor,
|
5.U -> xor,
|
||||||
6.U -> slt,
|
6.U -> slt,
|
||||||
7.U -> eq,
|
7.U -> eq,
|
||||||
))
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
class MuxGenerator(width: Int, nInput: Int) extends Module {
|
class MuxGenerator(width: Int, nInput: Int) extends Module {
|
||||||
|
|
Loading…
Reference in a new issue