sort out go_ld_i and go_st_i
[soc.git] / src / experiment / alu_hier.py
index 8e3677a523c8a4ff8aa7b890d048be89ba112208..9659059c79edd74cb79bde61a36149b3361c6d26 100644 (file)
@@ -104,9 +104,9 @@ class ALU(Elaboratable):
                     m.d.sync += self.counter.eq(7)
                 with m.Elif(self.op == 1): # SUB to take 1, straight away
                     m.d.sync += self.counter.eq(1)
+                    m.d.comb += go_now.eq(1)
                 with m.Else(): # ADD to take 2
                     m.d.sync += self.counter.eq(2)
-                    m.d.comb += go_now.eq(1)
         with m.Else():
             # input says no longer valid, so drop ready as well.
             # a "proper" ALU would have had to sync in the opcode and a/b ops