FPADDBasePipe derives from ControlBase, must return ControlBase.elaborate
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 27 Apr 2019 13:23:37 +0000 (14:23 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 27 Apr 2019 13:23:37 +0000 (14:23 +0100)
src/add/fpadd/pipeline.py

index 5e116b9f6262612732e13120b332e5701dec005b..e244ee60e2f373d917de6eaeaca4a6e7f74d9f32 100644 (file)
@@ -26,8 +26,10 @@ class FPADDBasePipe(ControlBase):
         self.pipe2 = FPAddAlignSingleAdd(width, id_wid)
         self.pipe3 = FPNormToPack(width, id_wid)
 
+        self._eqs = self.connect([self.pipe1, self.pipe2, self.pipe3])
+
     def elaborate(self, platform):
-        m = Module()
+        m = ControlBase.elaborate(self, platform)
         m.submodules.scnorm = self.pipe1
         m.submodules.addalign = self.pipe2
         m.submodules.normpack = self.pipe3