dg_toe10gip_cpu_instruction_xilinx_en.doc
23-Aug-19
Page 22
5.3 Send Data Test
To transfer data from FPG
A to PC, select ‘2’ to run send data test on FPGA and run
“tcpdatatest.exe” on PC to receive data. User inputs test parameters for sending data
through Serial console.
On PC, user inputs test parameters of “tcpdatatest” to receive data
through Command prompt. The sequence to run the test is shown as follows
1) On Serial console, input three parameters under send data test menu.
a) Input transfer size: Unit of transfer size is byte. Valid value is 0x8 - 0x7_FFFF_FFF8.
The input must be aligned to 8. The input is decimal unit when user inputs only digit
number. User
can add “0x” to be a prefix when the input is hexadecimal unit
b) Input packet size: Unit of packet size is byte. Valid value is 8
– 8960. The input must
be aligned to 8. The input is decimal unit when user inputs only digit number. User
can add “0x” to be a prefix when the input is hexadecimal unit.
Note: If packet size is more than 1456, the packet output from TOE10G IP will be
jumbo frame. In this case, Test PC must support jumbo frame.
c) Input mode: Mode of FPG
A to transfer data. Input ‘1’ to set server mode.
2) If inputs are valid, the recommended parameters to run test application on PC will be
displayed. Next,
“Wait Open connection …” is displayed to wait the application on PC
running.
3) On Command prompt, input test parameters following the recommended value. There
are six parameters for “tcpdatatest”.
>> tcpdatatest <mode> <dir> <server IP> <server port> <bytelen> <pattern>
a)
Mode: Input ‘c’ to run Test PC as a client.
b)
Dir: Input ‘r’ to run Test PC for receiving and verifying test data from FPGA
c) Server IP: Input same value as IP address of FPGA
d) Server port: Input same value as port number of FPGA
e) Bytelen: Input same value as
“Input transfer size” of step 1a)
f) Pattern: Input
‘1’ to verify data from FPGA
or
‘0’ to show the best performance
4) After running the test application, the port is created. Current transfer size is displayed on
Serial console (transmit size) and Command prompt (received size) every second.
“Send data complete” is displayed on Serial console after all data are sent.
5) FPGA closes the connection. Finally, total transfer size and performance are displayed on
Serial console (transmit performance) and Command prompt (received performance).
Figure 5-3 shows the example of send data test when using non-jumbo frame size. The left
window is Serial console on FPGA operating as server and the right window is Command
prompt on PC operating as client.
Figure 5-4 shows the example of send data test when using jumbo frame size.
Содержание TOE10G IP
Страница 21: ...dg_toe10gip_cpu_instruction_xilinx_en doc 23 Aug 19 Page 21 Figure 5 2 Change IP parameter result...
Страница 36: ...dg_toe10gip_cpu_instruction_xilinx_en doc 23 Aug 19 Page 36 Figure 8 2 Change IP parameter result...
Страница 40: ...dg_toe10gip_cpu_instruction_xilinx_en doc 23 Aug 19 Page 40 Figure 8 5 Receive data test with data verification...