corelogic/fsm: typo
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 18 Mar 2012 21:12:46 +0000 (22:12 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 18 Mar 2012 21:12:46 +0000 (22:12 +0100)
migen/corelogic/fsm.py

index 9d0de3c839f4e13ac1bb0f24c32d34e6f239dc22..715dcb5f1297f239adeaebc48c48ce87f513f3d6 100644 (file)
@@ -17,7 +17,7 @@ class FSM:
                                name_state = len(self.actions)
                                setattr(self, name, Constant(name_state, self._state_bv))
                                for i in range(delay-1):
-                                       self.actions.append([self.next_state(Constant(name_state+i+1), self._state_bv)])
+                                       self.actions.append([self.next_state(Constant(name_state+i+1, self._state_bv))])
                                self.actions.append([self.next_state(target_state)])
                        else:
                                # alias