i_data -> fifo.din -> FIFO -> fifo.dout -> o_data
"""
- def __init__(self, depth, iospecfn):
+ def __init__(self, depth, stage):
""" * iospecfn: specification for incoming and outgoing data
* depth : number of entries in the FIFO
"""
self.fdepth = depth
- stage = PassThroughStage(iospecfn)
ControlBase.__init__(self, stage=stage)
def elaborate(self, platform):
class FIFOTest16(FIFOControl):
def __init__(self):
- FIFOControl.__init__(self, 2, iospecfn)
+ stage = PassThroughStage(iospecfn)
+ FIFOControl.__init__(self, 2, stage)
######################################################################
class FIFOTestRecordControl(FIFOControl):
def __init__(self):
- FIFOControl.__init__(self, 2, iospecfnrecord)
+ stage = PassThroughStage(iospecfnrecord)
+ FIFOControl.__init__(self, 2, stage)
class ExampleFIFORecordObjectPipe(ControlBase):
class FIFOTest2x16(FIFOControl):
def __init__(self):
- FIFOControl.__init__(self, iospecfn2, 2)
+ stage = PassThroughStage(iospecfn2)
+ FIFOControl.__init__(self, 2, stage)
######################################################################