i_data -> fifo.din -> FIFO -> fifo.dout -> o_data
"""
- def __init__(self, iospecfn, depth):
+ def __init__(self, depth, iospecfn):
""" * iospecfn: specification for incoming and outgoing data
* depth : number of entries in the FIFO
send = True
else:
send = randint(0, send_range) != 0
- #send = True
+ send = True
o_p_ready = yield self.dut.p.o_ready
if not o_p_ready:
yield
stall_range = randint(0, 3)
for j in range(randint(1,10)):
ready = randint(0, stall_range) != 0
- #ready = True
+ ready = True
yield self.dut.n.i_ready.eq(ready)
yield
o_n_valid = yield self.dut.n.o_valid
class FIFOTest16(FIFOControl):
def __init__(self):
- FIFOControl.__init__(self, iospecfn, 2)
+ FIFOControl.__init__(self, 2, iospecfn)
######################################################################
class FIFOTestRecordControl(FIFOControl):
def __init__(self):
- FIFOControl.__init__(self, iospecfnrecord, 2)
+ FIFOControl.__init__(self, 2, iospecfnrecord)
class ExampleFIFORecordObjectPipe(ControlBase):