from nmigen.cli import verilog, rtlil
from multipipe import CombMuxOutPipe
-from singlepipe import UnbufferedPipeline
+from singlepipe import SimpleHandshake
class PassInData:
-class PassThroughPipe(UnbufferedPipeline):
+class PassThroughPipe(SimpleHandshake):
def __init__(self):
- UnbufferedPipeline.__init__(self, PassThroughDataStage())
+ SimpleHandshake.__init__(self, PassThroughDataStage())
stage = PassThroughStage()
CombMuxOutPipe.__init__(self, stage, n_len=self.num_rows)
- def ports(self):
- res = [self.p.i_valid, self.p.o_ready] + \
- self.p.i_data.ports()
- for i in range(len(self.n)):
- res += [self.n[i].i_ready, self.n[i].o_valid] + \
- [self.n[i].o_data]
- #self.n[i].o_data.ports()
- return res
-
class TestSyncToPriorityPipe:
def __init__(self):