experimenting / debugging score6600
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 May 2019 16:37:25 +0000 (17:37 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 May 2019 16:37:25 +0000 (17:37 +0100)
src/experiment/score6600.py

index 27672774c0937c180a1ee5233afa80fd370ed53f..3b2f2009caa1772685b9441671cf983ab15d5af0 100644 (file)
@@ -417,8 +417,8 @@ def scoreboard_sim(dut, alusim):
     yield dut.int_store_i.eq(0)
 
     for i in range(1, dut.n_regs):
-        yield dut.intregs.regs[i].reg.eq(i)
-        alusim.setval(i, i)
+        yield dut.intregs.regs[i].reg.eq(i*2)
+        alusim.setval(i, i*2)
 
     yield
     yield
@@ -452,8 +452,8 @@ def scoreboard_sim(dut, alusim):
             break
             if dest not in [src1, src2]:
                 break
-        src1 = 7
-        src2 = 1
+        src1 = 1
+        src2 = 4
         dest = 1
 
         op = randint(0, 1)