Visible to Intel only — GUID: vgo1449471922484
Ixiasoft
1.4.2. Internal MAC Loopback Test
Complete the tasks to run the internal MAC loopback test.
Set up the development board.
- Connect the programming cable to the JTAG connection port.
- Connect the board to the power supply input.
To run the internal MAC loopback test:
- Set up the System Console.
- Open Qsys.
- On the Tools menu, click System Console.
The System Console is a debugging tool that provides you with Tcl scripts to perform low-level hardware debugging and run tests on your reference designs. The console communicates to the hardware components instantiated into your Qsys system reference designs through the JTAG to Avalon Master Bridge.
- Open the config.tcl script and set LOOP_ENA to 1 to enable the MAC loopback mode.
- Type the following command to start the MAC and PHY configurations in the System Console:
source config.tclFor more information, refer to Configuration Script.The System Console displays the copper link connection status and the PHY’s operating speed and mode. Verify that the console displays the correct configurations
- Open and edit the eth_gen_start.tcl script.
For more information, refer to Ethernet Packet Generator Script.
- Type the following command to start generating Ethernet packets:
source eth_gen_start.tclThe Ethernet Packet Monitor automatically starts when you start the Ethernet Packet Generator.
- When the monitor receives all the Ethernet packets, the System Console displays the loopback test result.
- If the monitor receives packets with error, the console displays the total number of packets received with error and the type of error for each packet.
- Type the following command to view the MAC statistic counters:
source tse_stat_read.tcl