]> git.gag.com Git - debian/gnuradio/blob - usrp2/fpga/eth/bench/verilog/pause.scr
Copied wb_1master back from quad radio
[debian/gnuradio] / usrp2 / fpga / eth / bench / verilog / pause.scr
1 // This test demonstrates the ability to transmit a PAUSE frame, and the effect of\r
2 // a PAUSE frame on the receiver\r
3 \r
4 // Read from register 24 to confirm that Rx CRC check is enabled\r
5 03 00 18 00 01 ff ff\r
6 \r
7 // Set speed to 1000 Mbps\r
8 01 00 22 00 04\r
9 \r
10 // Setup Tx and Rx MAC addresses and type field to "IP"\r
11 // Set Tx Data at offset 0, length 14 to 123456789ABC CBA987654321 0800\r
12 10 00 00 00 0E 12 34 56 78 9A BC CB A9 87 65 43 21 08 00\r
13 \r
14 // Set PAUSE quanta to 256 - corresponding to a pause of 256x512 = 128Kb = 16KB\r
15 01 00 03 01 00\r
16 \r
17 // Enable the transmitter to send a PAUSE frame\r
18 01 00 02 00 01\r
19 \r
20 // Enable the transmitter to react to received PAUSE frames\r
21 01 00 0b 00 01\r
22 \r
23 // Expect to receive a PAUSE frame with quanta 256\r
24 24 01 00\r
25 \r
26 // Transmit a 512-byte frame 1 time - and expect it to be received again!\r
27 20 02 00 00 01\r
28 \r
29 // Request the transmission of a PAUSE frame - it will loopback to ourselves and delay\r
30 // further transmission for a period of 16 KB, causing a significant (visible) delay\r
31 // between first and second 512-byte frame!\r
32 01 00 0c 00 01\r
33 \r
34 // - now this second time, we will experience a delay\r
35 // Transmit a 512-byte frame 1 time - and expect it to be received again!\r
36 20 02 00 00 01\r
37 // - and a final 3rd time\r
38 // Transmit a 512-byte frame 1 time - and expect it to be received again!\r
39 20 02 00 00 01\r
40 \r
41 // Wait (indefinitely) for missing Rx packets\r
42 22 00 00 \r
43 \r
44 // Halt\r
45 FF\r