BufferedPipeline.__init__(self, ExampleStage)
-class CombPipe(PipelineBase):
+class Pipeline(PipelineBase):
""" A simple pipeline stage with single-clock synchronisation
and two-way valid/ready synchronised signalling. The stage
requires a combinatorial block.
return m
-class ExampleCombPipe(CombPipe):
+class ExamplePipeline(Pipeline):
""" an example of how to use the combinatorial pipeline.
"""
def __init__(self):
- CombPipe.__init__(self, ExampleStage)
+ Pipeline.__init__(self, ExampleStage)
if __name__ == '__main__':
with open("test_bufpipe.il", "w") as f:
f.write(vl)
- dut = ExampleCombPipe()
+ dut = ExamplePipeline()
vl = rtlil.convert(dut, ports=dut.ports())
with open("test_combpipe.il", "w") as f:
f.write(vl)
from nmigen.cli import verilog, rtlil
from example_buf_pipe import ExampleBufPipe, ExampleBufPipeAdd
-from example_buf_pipe import ExampleCombPipe, CombPipe, ExampleStageCls
+from example_buf_pipe import ExamplePipeline, Pipeline, ExampleStageCls
from example_buf_pipe import PrevControl, NextControl, BufferedPipeline
from example_buf_pipe import StageChain
return self.output
-class ExampleLTCombPipe(CombPipe):
+class ExampleLTPipeline(Pipeline):
""" an example of how to use the combinatorial pipeline.
"""
def __init__(self):
stage = LTStage()
- CombPipe.__init__(self, stage)
+ Pipeline.__init__(self, stage)
class ExampleLTBufferedPipeDerived(BufferedPipeline):
'src2': i.src2 + 1}
-class ExampleAddRecordPipe(CombPipe):
+class ExampleAddRecordPipe(Pipeline):
""" an example of how to use the combinatorial pipeline.
"""
def __init__(self):
stage = ExampleAddRecordStage()
- CombPipe.__init__(self, stage)
+ Pipeline.__init__(self, stage)
def test7_resultfn(o_data, expected, i, o):
run_simulation(dut, [test.send, test.rcv], vcd_name="test_bufpipe3.vcd")
print ("test 3.5")
- dut = ExampleCombPipe()
+ dut = ExamplePipeline()
test = Test3(dut, test3_resultfn)
run_simulation(dut, [test.send, test.rcv], vcd_name="test_combpipe3.vcd")
run_simulation(dut, [test.send, test.rcv], vcd_name="test_bufpipe5.vcd")
print ("test 6")
- dut = ExampleLTCombPipe()
+ dut = ExampleLTPipeline()
test = Test5(dut, test6_resultfn)
run_simulation(dut, [test.send, test.rcv], vcd_name="test_ltcomb6.vcd")