add some more experimental instructions
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 May 2019 11:11:49 +0000 (12:11 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 8 May 2019 11:11:49 +0000 (12:11 +0100)
src/experiment/cscore.py

index e3f19c661c4cb0364e635cf4f1e3744c03d3c418..858b3c1a3b7848cecbeb2f03d1fca0a991e25d8a 100644 (file)
@@ -240,8 +240,14 @@ def scoreboard_sim(dut):
     yield from int_instr(dut, IADD, 4, 3, 5)
     yield from print_reg(dut, [3,4,5])
     yield
+    yield from int_instr(dut, IADD, 5, 2, 4)
     yield from print_reg(dut, [3,4,5])
     yield
+    yield dut.int_insn_i[IADD].eq(0)
+    yield from int_instr(dut, ISUB, 5, 2, 3)
+    yield from print_reg(dut, [3,4,5])
+    yield
+    yield dut.int_insn_i[ISUB].eq(0)
     yield from print_reg(dut, [3,4,5])
     yield
     yield from print_reg(dut, [3,4,5])