3.4. Hardware Testing
The hardware design example provides the loopback test. In loopback test mode, the traffic generator sends packets to the F-Tile Serial Lite IV TX core and loopback to the RX core either internally or externally.
Figure 9. Loopback Test
To use the system console script, navigate to the ./ed_hwtest/system_console directory. Source the sliv_ftile.tcl script. The system console script provides useful commands for reading statistics and enables you to control various features in the design.
Command | Function |
---|---|
list_jtag | Displays a list of JTAG master indexes that are connected to your board. |
set_jtag <jtag master_index number> | Selects the JTAG master.
|
read_error_statistic | Displays the error statistics. |
sl4_link_init_int_lpbk <index number> | Enables TX to RX internal serial loopback within the transceiver and performs the specific transceiver calibration flow.
|
traffic_gen_enable | Enables the traffic generator and checker. |
traffic_gen_disable | Disables the traffic generator and checker. |
continuous_mode_en | Resets the TX and RX core (MAC and PHY) and enables the traffic generator to generate continuous (single continuous data generation) traffic stream. |
burst_mode_en | Resets the TX and RX core (MAC and PHY) and enables the traffic generator to generate a burst (multiple burst packet data generation) traffic stream. |
crc_err_inject_pulse | Enables CRC error injection for all lanes. |
Figure 10. Example of Hardware Design Example Test Result in System Console