add delay on branches
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 May 2019 13:01:23 +0000 (14:01 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 24 May 2019 13:01:23 +0000 (14:01 +0100)
src/experiment/compalu.py
src/experiment/score6600.py

index ba377b80a7d400e45b3c67c06adb0860ea898534..12e519f0631b3b498240497a530441d51240c49c 100644 (file)
@@ -105,7 +105,7 @@ class ComputationUnitNoDelay(Elaboratable):
                 m.d.sync += self.counter.eq(5)
             with m.Elif(self.oper_i == 3): # SHIFT to take 7
                 m.d.sync += self.counter.eq(7)
-            with m.Elif(counter >= 4): # Branches to take 6 (to test shadow)
+            with m.Elif(self.counter >= 4): # Branches take 6 (to test shadow)
                 m.d.sync += self.counter.eq(6)
             with m.Else(): # ADD/SUB to take 2
                 m.d.sync += self.counter.eq(2)
index a34bf4c589e46f68d4f86d60a5545f9a4ea7715b..a7251134cf222ac97227dd03cf8ce093c380cae0 100644 (file)
@@ -603,7 +603,7 @@ def scoreboard_sim(dut, alusim):
                 #src2 = 3
                 #dest = 2
 
-                op = randint(0, 3)
+                op = randint(0, 7)
                 #op = i % 2
                 #op = 0