dg_toe10gip_cpu_instruction_xilinx_en.doc
23-Aug-19
Page 25
5.4 Receive Data Test
To tran
sfer data from PC to FPGA, select ‘3’ to run receive data test on FPGA and run
“tcpdatatest.exe” on PC to send data. User inputs test parameters on FPGA for receiving
data through Serial console. On PC, user inputs te
st parameters of “tcpdatatest” to send
data through Command prompt. The sequence to run the test is shown as below.
1) On Serial console, input three parameters in receive data test.
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 data verification mode: Set ‘0’ to disable data verification or ‘1’ to enable data
verification sent from PC.
c) Input Mode
: Mode of FPGA 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 ‘t’ to run Test PC for sending test data to 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 same value as
“Input data verification mode” of step 1b). Select ‘0’ to
send dummy data or
‘1’ to send incremental data.
4) After running test application, the port is created. Current transfer size is displayed on
Serial console (received size) and Command prompt (transmit size) every second.
5)
“Connection closed” and “Receive data completed” are displayed on Serial console after
PC finishes sending all data and closing the connection. Finally, total transfer size and
performance are displayed on Serial console (received performance) and Command
prompt (transmit performance).
Figure 5-8 shows the example of receive data test when data verification mode on FPGA is
disabled and dummy data is sent by PC. The left window is test result on Serial console
while the right window is test result on Command prompt.
Figure 5-9 shows the example of receive data test when data verification mode on FPGA is
enabled and incremental data is sent by PC.
Figure 5-10 shows the example of error when data verification is failed. In the example, the
error is caused from mismatch verification mode value. FPGA enables data verification while
“tcpdatatest” sends dummy data. The error message is displayed on Serial console.
Содержание 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...