def __init__(self, i_width=1):
self.i_valid = Signal(i_width, name="p_i_valid") # prev >>in self
self.o_ready = Signal(name="p_o_ready") # prev <<out self
+ self.i_data = None # XXX MUST BE ADDED BY USER
def _connect_in(self, prev):
""" internal helper function to connect stage to an input source.
def __init__(self):
self.o_valid = Signal(name="n_o_valid") # self out>> next
self.i_ready = Signal(name="n_i_ready") # self <<in next
+ self.o_data = None # XXX MUST BE ADDED BY USER
def connect_to_next(self, nxt):
""" helper function to connect to the next stage data/valid/ready.