From 30e05ffa23e7cea8a6eb32754efc2412b99a5ddb Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 25 May 2019 23:16:49 +0100 Subject: [PATCH] whoops, operation supposed to be tested, not counter --- src/experiment/compalu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/experiment/compalu.py b/src/experiment/compalu.py index 12e519f0..1f3b9051 100644 --- a/src/experiment/compalu.py +++ b/src/experiment/compalu.py @@ -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(self.counter >= 4): # Branches take 6 (to test shadow) + with m.Elif(self.oper_i >= 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) -- 2.30.2