use ospec in FPRound
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 20 Mar 2019 14:17:19 +0000 (14:17 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 20 Mar 2019 14:17:19 +0000 (14:17 +0000)
src/add/nmigen_add_experiment.py

index 8331540adb5a9fa137dcf219635231df16301c04..7b3f6c09e08603c56a1b154c4b4be1148407e294 100644 (file)
@@ -1319,7 +1319,7 @@ class FPRound(FPState, FPID):
         FPState.__init__(self, "round")
         FPID.__init__(self, id_wid)
         self.mod = FPRoundMod(width)
-        self.out_z = FPNumBase(width)
+        self.out_z = self.mod.ospec()
 
     def setup(self, m, in_z, roundz, in_mid):
         """ links module to inputs and outputs