add ispec and ospec to FPPack
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Mar 2019 06:59:29 +0000 (06:59 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 21 Mar 2019 06:59:29 +0000 (06:59 +0000)
src/add/nmigen_add_experiment.py

index 1a1a70a07f7bb44d1ac8f2fb7480861345d7eb63..bb854ae36d23f2b4be7f975143efaf01f76fdfcc 100644 (file)
@@ -1423,7 +1423,13 @@ class FPPack(FPState, FPID):
         FPState.__init__(self, "pack")
         FPID.__init__(self, id_wid)
         self.mod = FPPackMod(width)
-        self.out_z = self.mod.ospec()
+        self.out_z = self.ospec()
+
+    def ispec(self):
+        return self.mod.ispec()
+
+    def ospec(self):
+        return self.mod.ospec()
 
     def setup(self, m, in_z, in_mid):
         """ links module to inputs and outputs