def METHOD_NAME(dw):
    dut_cri = tb[dw].dut.cri
    while True:
        cmd = yield dut_cri.cmd
        if cmd == cri.commands["nop"]:
            pass
        elif cmd == cri.commands["write"]:
            channel = yield dut_cri.chan_sel
            timestamp = yield dut_cri.o_timestamp
            address = yield dut_cri.o_address
            data = yield dut_cri.o_data
            received[dw].append((channel, timestamp, address, data))
            yield dut_cri.o_status.eq(1)
            for i in range(prng.randrange(10)):
                yield
            yield dut_cri.o_status.eq(0)
        else:
            self.fail("unexpected RTIO command")
        yield