switch pspec from dict to PipelineSpec
[ieee754fpu.git] / src / ieee754 / fpadd / add0.py
index e5a683daef6cde8bf56a3a13b0d059fd7ee50b79..c56b035d1a1c1136a2b929abd95282b67b01504a 100644 (file)
@@ -14,7 +14,7 @@ from ieee754.fpcommon.getop import FPPipeContext
 class FPAddStage0Data:
 
     def __init__(self, pspec):
-        width = pspec['width']
+        width = pspec.width
         self.z = FPNumBaseRecord(width, False)
         self.out_do_z = Signal(reset_less=True)
         self.oz = Signal(width, reset_less=True)