> 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:54:52  up 1 day 22:41,  2 users,  load average: 2.48, 1.99, 1.57
This commit is contained in:
tracer-ysyx 2024-01-06 13:54:52 +08:00 committed by xinyangli
parent b4bef0fb64
commit dd03e43fbd
2 changed files with 282 additions and 6 deletions

View file

@ -68,12 +68,12 @@ class ALUGeneratorSpec extends AnyFreeSpec with ChiselScalatestTester {
}
}
"not should work" in {
// test(new ALUGenerator(32)) { c =>
// c.io.op.poke(2.U)
// c.io.a.poke(5.U)
// c.io.b.poke(3.U)
// c.io.out.expect(((1 << 32) - 1 - 5).U)
// }
test(new ALUGenerator(32)) { c =>
c.io.op.poke(2.U)
c.io.a.poke(5.U)
c.io.b.poke(3.U)
c.io.out.expect(BigInt("FFFFFFFA", 16))
}
}
"and should work" in {
test(new ALUGenerator(32)) { c =>