1.6. Testing the F-Tile Ethernet Intel FPGA Hard IP Hardware Design Example
Afte you compile the F-Tile Etheet Itel FPGA Had IP coe desig example ad cofigue it o you Agilex™ 7 device, you ca use the System Cosole to pogam the IP coe.
Follow these steps to test the hadwae desig example o the System Cosole:
- Navigate to the hadwae diectoy: <desig_example>/hadwae_test_desig/hwtest.
- Ope
system-cosole &
o type commad: - Ru the followig commads i the System Cosole Tcl shell.
souce mai_<Etheet_ate>.tcl set_jtag<umbe_of appopiate_JTAG_maste>
Note:- The set_jtag commad places the Agilex™ 7 device o the JTAG chai
- If you do ot wat to use eset whe selectig jtag, use set_jtag_o_eset
Note: If you eabled auto-egotiatio ad lik taiig i you desig, follow the hadwae desig example steps descibed i Hadwae Desig Example. - Ru oe of the followig commads.
- If you use the iteal seial loopback, ete
u_test
- If you iseted a exteal loopback plug ito the desied Etheet pot, ete
u_test_without_loopback
- If you use the iteal seial loopback, ete
The hadwae desig example uses u_test commad to iitiate packet tasmissio fom packet geeato to the IP coe. Specifically, the scipt pefoms the followig steps:
- chkphy_status: Displays the clock fequecies ad PMA PHY lock status.
- chkmac_stats: Displays the MAC statistics coutes.
- clea_all_stats: Cleas the IP coe statistics coutes.
- stat_pkt_ge: Stats the packet geeato.
- stop_pkt_ge: Stops the packet geeato.
- iteal_loop_back_bk Istace_umbe o_of_laes: Eables the iteal loop back fo FHT vaiat.
- iteal_loop_back_ux Istace_umbe ip_base_add o_of_laes lae_x lae_y: Eables the iteal loop back fo FGT vaiat.
Note: Use the followig commads to disable the iteal loop back:
- disable_loop_back_ux o_of_laes 0 2: Disables the iteal loop back fo FGT vaiat lae 1
- disable_loop_back_ux o_of_laes 3 2: Disables the iteal loop back fo FGT vaiat lae 2,4, ad 8
- disable_loop_back_bk o_of_laes
The followig sample output illustates a successful hadwae test u:
% u_test_without_loopback
--- Tuig off packet geeatio ----
--------------------------------------
--- Wait fo RX clock to settle... ---
--------------------------------------
-------- Pitig PHY status ---------
--------------------------------------
RX PHY Registe Access: Checkig Clock Fequecies (KHz)
TXCLK :41505 (KHZ)
RXCLK :41503 (KHZ)
TX PLL Lock Status 0x000000ff
RX Fequecy Lock Status 0x000000ff
RX PCS Ready 0x00000001
TX Laes Stable 0x00000001
Deskew status 0x00000001
Lik Fault Status 0x00000000
RX Fame Eo 0x00000000
RX AM LOCK Coditio 0x00000001
---- Cleaig MAC stats coutes -----
---- Iitialize PKT ROM Read addess fo IP_INST[0] ----
--------------------------------------
--------- Sedig packets... ---------
--------------------------------------
----- Readig MAC stats coutes -----
--------------------------------------
==========================================================================================
STATISTICS FOR BASE 20480 (Rx)
==========================================================================================
Fagmeted Fames : 0
Jabbeed Fames : 0
Ay Size with FCS E Fame : 0
Right Size with FCS E Fa : 0
Multicast data E Fames : 0
Boadcast data E Fames : 0
Uicast data E Fames : 0
Multicast cotol E Fame : 0
Boadcast cotol E Fame : 0
Uicast cotol E Fames : 0
Pause cotol E Fames : 0
64 Byte Fames : 0
65 - 127 Byte Fames : 16
128 - 255 Byte Fames : 0
256 - 511 Byte Fames : 0
512 - 1023 Byte Fames : 0
1024 - 1518 Byte Fames : 0
1519 - MAX Byte Fames : 0
> MAX Byte Fames : 0
Rx Fame Stats : 16
Multicast data OK Fame : 16
Boadcast data OK Fame : 0
Uicast data OK Fames : 0
Multicast Cotol Fames : 0
Boadcast Cotol Fames : 0
Uicast Cotol Fames : 0
Pause Cotol Fames : 0
Data ad paddig octets : 800
Fame octets: : 1088
==========================================================================================
STATISTICS FOR BASE 20480 (Tx)
==========================================================================================
Fagmeted Fames : 0
Jabbeed Fames : 0
Ay Size with FCS E Fame : 0
Right Size with FCS E Fa : 0
Multicast data E Fames : 0
Boadcast data E Fames : 0
Uicast data E Fames : 0
Multicast cotol E Fame : 0
Boadcast cotol E Fame : 0
Uicast cotol E Fames : 0
Pause cotol E Fames : 0
64 Byte Fames : 0
65 - 127 Byte Fames : 16
128 - 255 Byte Fames : 0
256 - 511 Byte Fames : 0
512 - 1023 Byte Fames : 0
1024 - 1518 Byte Fames : 0
1519 - MAX Byte Fames : 0
> MAX Byte Fames : 0
Tx Fame Stats : 16
Multicast data OK Fame : 16
Boadcast data OK Fame : 0
Uicast data OK Fames : 0
Multicast Cotol Fames : 0
Boadcast Cotol Fames : 0
Uicast Cotol Fames : 0
Pause Cotol Fames : 0
Data ad paddig octets : 800
Fame octets: : 1088
------------ Doe ---------------------
Note: Clock fequecy eadout must be scaled fo display, if i_ecofig _clk is ot 100MHz. Fo example, if i_ecofig _clk is 250MHz, the display should be scaled by x 2.5.