> configure(npc)

ysyx_22040000 李心杨
 Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
  12:37:35  up   0:27,  2 users,  load average: 0.98, 0.35, 0.36
This commit is contained in:
tracer-ysyx 2024-03-08 12:37:35 +08:00 committed by xinyangli
parent 16c8af7dea
commit 9735a8a7bb
4 changed files with 57 additions and 24 deletions

View file

@ -60,7 +60,7 @@ class ALUGeneratorSpec extends AnyFreeSpec with ChiselScalatestTester {
6 -> ((a, b) => if (a < b) 1 else 0),
7 -> ((a, b) => if (a == b) 1 else 0),
)
val validate = (c: ALUGenerator,op: Int, oprands: List[(BigInt, BigInt)]) => {
val validate = (c: ALUGenerator[32], op: Int, oprands: List[(BigInt, BigInt)]) => {
c.io.op.poke(op.U)
oprands.foreach({ case (a, b) =>
c.io.a.poke(a.U)