big (single-purpose) update: move width arg into pspec
[ieee754fpu.git] / src / ieee754 / fpcommon / postcalc.py
index a06c99a817eb895bcf5f7b4b52a3089e2996f160..c8a0090e1b880bebd2e66ee0963699ae1214d5cc 100644 (file)
@@ -8,12 +8,13 @@ from ieee754.fpcommon.getop import FPPipeContext
 
 class FPAddStage1Data:
 
-    def __init__(self, width, pspec):
+    def __init__(self, pspec):
+        width = pspec['width']
         self.z = FPNumBaseRecord(width, False)
         self.out_do_z = Signal(reset_less=True)
         self.oz = Signal(width, reset_less=True)
         self.of = Overflow()
-        self.ctx = FPPipeContext(width, pspec)
+        self.ctx = FPPipeContext(pspec)
         self.muxid = self.ctx.muxid
 
     def __iter__(self):