use ospec to make clone of out_z
[ieee754fpu.git] / src / add / nmigen_add_experiment.py
index aa046b91112c40c5e79ab29a4a10366eeddf333c..e9929d5ca5969f6c4ca955d2bb591b1b1c57ac43 100644 (file)
@@ -391,7 +391,7 @@ class FPAddSpecialCases(FPState, FPID):
         FPState.__init__(self, "special_cases")
         FPID.__init__(self, id_wid)
         self.mod = FPAddSpecialCasesMod(width)
-        self.out_z = FPNumOut(width, False)
+        self.out_z = self.mod.ospec()
         self.out_do_z = Signal(reset_less=True)
 
     def setup(self, m, in_a, in_b, in_mid):