return FPPackData(self.out_pspec)
-def getkls(*args, **kwargs):
- print ("getkls", args, kwargs)
- return FPCVTMuxInOutBase(*args, **kwargs)
+class FPCVTF2IntMuxInOut(FPCVTMuxInOutBase):
+ """ Reservation-Station version of FPCVT pipeline.
+
+ * fan-in on inputs (an array of FPADDBaseData: a,b,mid)
+ * 2-stage multiplier pipeline
+ * fan-out on outputs (an array of FPPackData: z,mid)
+
+ Fan-in and Fan-out are combinatorial.
+ """
+
+ def __init__(self, in_width, out_width, num_rows, op_wid=0):
+ FPCVTMuxInOutBase.__init__(self, FPCVTFloatToIntMod, False,
+ in_width, out_width,
+ num_rows, op_wid,
+ pkls=FPCVTFtoIntBasePipe)
# factory which creates near-identical class structures that differ by
("FPCVTIntMuxInOut", FPCVTIntToFloatMod, True, ),
]
+def getkls(*args, **kwargs):
+ print ("getkls", args, kwargs)
+ return FPCVTMuxInOutBase(*args, **kwargs)
+
for (name, kls, e_extra) in muxfactoryinput:
fn = functools.partial(getkls, kls, e_extra)
setattr(sys.modules[__name__], name, fn)
-class FPCVTF2IntMuxInOut(FPCVTMuxInOutBase):
- """ Reservation-Station version of FPCVT pipeline.
-
- * fan-in on inputs (an array of FPADDBaseData: a,b,mid)
- * 2-stage multiplier pipeline
- * fan-out on outputs (an array of FPPackData: z,mid)
-
- Fan-in and Fan-out are combinatorial.
- """
-
- def __init__(self, in_width, out_width, num_rows, op_wid=0):
- FPCVTMuxInOutBase.__init__(self, FPCVTFloatToIntMod, False,
- in_width, out_width,
- num_rows, op_wid,
- pkls=FPCVTFtoIntBasePipe)
-