Exemple #1
0
 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
Exemple #2
0
 def writer_process():
     for packet in test_packets:
         yield from write_packet_to_stream(input_stream, packet)
Exemple #3
0
 def writer():
     for packet in packets:
         yield from write_packet_to_stream(dut.hs_input,
                                           packet,
                                           timeout=400)
         yield from do_nothing(400)
Exemple #4
0
 def write_process():
     for frame in range(10):
         yield from write_packet_to_stream(input_stream,
                                           [0 for _ in range(100)])