switch to exact version of cython
[ieee754fpu.git] / src / ieee754 / pipeline.py
index b1e3b0ba111b08eca8e0d5b17a172b0a8350041c..231eec6c30e1127a88310ba98c94c5c57375ed31 100644 (file)
@@ -2,6 +2,7 @@
 # See Notices.txt for copyright information
 
 from nmutil.singlepipe import SimpleHandshake
+from nmutil.dynamicpipe import DynamicPipe, SimpleHandshakeRedir
 
 
 class PipelineSpec:
@@ -21,24 +22,17 @@ class PipelineSpec:
 
     """
 
-    def __init__(self, width, id_width, op_wid=0, opkls=None, pipekls=None):
+    def __init__(self, width, id_width, op_wid=0, opkls=None,
+                       pipekls=None, n_ops=2):
         """ Create a PipelineSpec. """
         self.width = width
         self.id_wid = id_width
         self.op_wid = op_wid
         self.opkls = opkls
-        self.pipekls = pipekls or SimpleHandshake
+        self.pipekls = pipekls or SimpleHandshakeRedir
+        self.n_ops = n_ops
+        self.stage = None
         self.core_config = None
         self.fpformat = None
         self.n_comb_stages = None
 
-
-def DynamicPipeCreate(pspec, *args, **kwargs):
-    superclass = pspec.pipekls
-    class DynamicPipe(superclass):
-        def __init__(self, *args, **kwargs):
-            print(superclass)
-            superclass.__init__(self, *args, **kwargs)
-        pass
-    return DynamicPipe(*args, **kwargs)
-