def writer(): for packet in packets: yield from write_packet_to_stream(a.control_input, packet, timeout=400) yield from write_packet_to_stream(a.control_input, [0x0], timeout=400) yield from write_packet_to_stream(b.control_input, packet, timeout=400) yield from write_packet_to_stream(b.control_input, [0x0], timeout=400) yield Passive() while True: yield
def writer_process(): for packet in test_packets: yield from write_packet_to_stream(input_stream, packet)
def writer(): for packet in packets: yield from write_packet_to_stream(dut.hs_input, packet, timeout=400) yield from do_nothing(400)
def write_process(): for frame in range(10): yield from write_packet_to_stream(input_stream, [0 for _ in range(100)])