fix bug #492
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 17 Sep 2020 22:24:40 +0000 (15:24 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 17 Sep 2020 22:24:40 +0000 (15:24 -0700)
src/soc/fu/div/fsm.py

index 3af0928f1ae27c941396d443ebd9e855ae73cc3a..f5398b1095128b350f06b7dd8c962563580f58b6 100644 (file)
@@ -141,9 +141,8 @@ class FSMDivCoreStage(ControlBase):
     def __init__(self, pspec):
         super().__init__()
         self.pspec = pspec
-        # override p and n
-        self.p = FSMDivCorePrevControl(pspec)
-        self.n = FSMDivCoreNextControl(pspec)
+        self.p.data_i = CoreInputData(pspec)
+        self.n.data_o = CoreOutputData(pspec)
         self.saved_input_data = CoreInputData(pspec)
         self.empty = Signal(reset=1)
         self.saved_state = DivState(64, name="saved_state")