Skip to content

Commit 03d2611

Browse files
Update MainSpec.scala
1 parent d1892ab commit 03d2611

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/test/scala/RISCV/MainSpec.scala

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,24 @@ class MainSpec extends AnyFreeSpec with Matchers with ChiselSim {
4747
dut.io.debug_write_data.poke(0x00004137L.U)
4848
dut.clock.step(1)
4949

50-
dut.io.debug_write_address.poke(1L.U)
50+
dut.io.debug_write_address.poke(1.U)
51+
dut.io.debug_write_data.poke(0x000041b7L.U)
52+
dut.clock.step(1)
53+
54+
dut.io.debug_write_address.poke(2.U)
5155
dut.io.debug_write_data.poke(0x00408093L.U)
5256
dut.clock.step(1)
5357

54-
dut.io.debug_write_address.poke(2L.U)
55-
dut.io.debug_write_data.poke(0x00110113L.U)
58+
dut.io.debug_write_address.poke(3.U)
59+
dut.io.debug_write_data.poke(0x002181b3L.U)
5660
dut.clock.step(1)
5761

58-
dut.io.debug_write_address.poke(3L.U)
62+
dut.io.debug_write_address.poke(4.U)
5963
dut.io.debug_write_data.poke(0x00110023L.U)
6064
dut.clock.step(1)
6165

62-
dut.io.debug_write_address.poke(4L.U)
63-
dut.io.debug_write_data.poke(0xff1ff06fL.U)
66+
dut.io.debug_write_address.poke(5.U)
67+
dut.io.debug_write_data.poke(0xff5ff06fL.U)
6468
dut.clock.step(1)
6569

6670
// dut.io.debug_write_address.poke(0.U)

0 commit comments

Comments
 (0)