rename to UnbufferedPipeline
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Mar 2019 15:18:50 +0000 (15:18 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Mar 2019 15:18:50 +0000 (15:18 +0000)
src/add/example_buf_pipe.py
src/add/test_buf_pipe.py

index 808d88e58fe8edee2c7236a5191a7630916731ac..578aed8e6cbe20e7d08b838c3267b305df43765b 100644 (file)
@@ -39,8 +39,8 @@
     A useful combinatorial wrapper around stages that chains them together
     and then presents a Stage-API-conformant interface.
 
-    Pipeline:
-    --------
+    UnbufferedPipeline:
+    ------------------
 
     A simple stalling clock-synchronised pipeline that has no buffering
     (unlike BufferedPipeline).  A stall anywhere along the line will
@@ -446,7 +446,7 @@ class ExampleBufPipe(BufferedPipeline):
         BufferedPipeline.__init__(self, ExampleStage)
 
 
-class Pipeline(PipelineBase):
+class UnbufferedPipeline(PipelineBase):
     """ A simple pipeline stage with single-clock synchronisation
         and two-way valid/ready synchronised signalling.
 
@@ -512,12 +512,12 @@ class Pipeline(PipelineBase):
         return m
 
 
-class ExamplePipeline(Pipeline):
+class ExamplePipeline(UnbufferedPipeline):
     """ an example of how to use the combinatorial pipeline.
     """
 
     def __init__(self):
-        Pipeline.__init__(self, ExampleStage)
+        UnbufferedPipeline.__init__(self, ExampleStage)
 
 
 if __name__ == '__main__':
index e037a51e3566663863454058636b9147d4856ebd..8e575dc8374dd1de3a452458aaaae6f9a972cfd8 100644 (file)
@@ -4,7 +4,8 @@ from nmigen.compat.sim import run_simulation
 from nmigen.cli import verilog, rtlil
 
 from example_buf_pipe import ExampleBufPipe, ExampleBufPipeAdd
-from example_buf_pipe import ExamplePipeline, Pipeline, ExampleStageCls
+from example_buf_pipe import ExamplePipeline, UnbufferedPipeline
+from example_buf_pipe import ExampleStageCls
 from example_buf_pipe import PrevControl, NextControl, BufferedPipeline
 from example_buf_pipe import StageChain
 
@@ -362,13 +363,13 @@ class LTStageDerived(SetLessThan):
         return self.output
 
 
-class ExampleLTPipeline(Pipeline):
+class ExampleLTPipeline(UnbufferedPipeline):
     """ an example of how to use the combinatorial pipeline.
     """
 
     def __init__(self):
         stage = LTStage()
-        Pipeline.__init__(self, stage)
+        UnbufferedPipeline.__init__(self, stage)
 
 
 class ExampleLTBufferedPipeDerived(BufferedPipeline):
@@ -407,13 +408,13 @@ class ExampleAddRecordStage:
                 'src2': i.src2 + 1}
 
 
-class ExampleAddRecordPipe(Pipeline):
+class ExampleAddRecordPipe(UnbufferedPipeline):
     """ an example of how to use the combinatorial pipeline.
     """
 
     def __init__(self):
         stage = ExampleAddRecordStage()
-        Pipeline.__init__(self, stage)
+        UnbufferedPipeline.__init__(self, stage)
 
 
 def test7_resultfn(o_data, expected, i, o):