update comments
[ieee754fpu.git] / src / add / example_buf_pipe.py
index 63046bd753da8825ff51f13ca0ba94f76d0ce041..4bb7cdf1e87fe6f929c7b17342df71924e467af8 100644 (file)
@@ -1,9 +1,11 @@
-""" Pipeline and BufferedPipeline examples
+""" Pipeline and BufferedHandshake examples
 """
 
+from nmoperator import eq
+from iocontrol import (PrevControl, NextControl)
 from singlepipe import (PrevControl, NextControl, ControlBase,
                         StageCls, Stage, StageChain,
-                        BufferedPipeline, UnbufferedPipeline, eq)
+                        BufferedHandshake, UnbufferedPipeline)
 
 from nmigen import Signal, Module
 from nmigen.cli import verilog, rtlil
@@ -30,13 +32,13 @@ class ExampleAddStage(StageCls):
         return i[0] + i[1]
 
 
-class ExampleBufPipeAdd(BufferedPipeline):
+class ExampleBufPipeAdd(BufferedHandshake):
     """ an example of how to use the buffered pipeline, using a class instance
     """
 
     def __init__(self):
         addstage = ExampleAddStage()
-        BufferedPipeline.__init__(self, addstage)
+        BufferedHandshake.__init__(self, addstage)
 
 
 class ExampleStage(Stage):
@@ -73,12 +75,12 @@ class ExampleStageCls(StageCls):
         return i + 1
 
 
-class ExampleBufPipe(BufferedPipeline):
+class ExampleBufPipe(BufferedHandshake):
     """ an example of how to use the buffered pipeline.
     """
 
     def __init__(self):
-        BufferedPipeline.__init__(self, ExampleStage)
+        BufferedHandshake.__init__(self, ExampleStage)
 
 
 class ExamplePipeline(UnbufferedPipeline):