run tests in parallel
[ieee754fpu.git] / src / ieee754 / pipeline.py
index c547f36ff4cc18cb811762f9c270143c691f2b21..231eec6c30e1127a88310ba98c94c5c57375ed31 100644 (file)
@@ -1,6 +1,9 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 # See Notices.txt for copyright information
 
+from nmutil.singlepipe import SimpleHandshake
+from nmutil.dynamicpipe import DynamicPipe, SimpleHandshakeRedir
+
 
 class PipelineSpec:
     """ Pipeline Specification base class.
@@ -19,12 +22,17 @@ class PipelineSpec:
 
     """
 
-    def __init__(self, width, id_width, op_wid=0, opkls=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 SimpleHandshakeRedir
+        self.n_ops = n_ops
+        self.stage = None
         self.core_config = None
         self.fpformat = None
         self.n_comb_stages = None
+