Visible to Intel only — GUID: jmx1725845977229
Ixiasoft
1. Overview
2. Install and License the GTS Ethernet Intel® FPGA Hard IP
3. Configure and Generate Ethernet Hard IP variant
4. Integrate GTS Ethernet Intel® FPGA Hard IP into Your Application
5. Simulate, Compile, and Validate (MAC+PCS) - Single Instance
6. Simulate, Compile, and Validate (MII PCS Only /PCS66 OTN/PCS66 FlexE) - Single Instance
7. Simulate, Compile, and Validate SyncE - Single Instance
8. Simulate and Compile PTP1588 - Single Instance
9. Simulate, Compile, and Validate - Multiple Instance
10. Simulate, Compile, and Validate - Auto-Negotiation and Link Training
11. Troubleshoot and Diagnose Issues
A. Appendix A: Functional Description
B. Appendix B: Configuration Registers
C. Appendix C: Document Revision History for the GTS Ethernet Intel® FPGA Hard IP User Guide
4.1. Implement Required Clocking
4.2. Implement Required Resets
4.3. Connect the Status Interface
4.4. Connect the MAC Avalon Streaming Client Interface
4.5. Connect the MII PCS Only Client Interface
4.6. Connect the PCS66 Client Interface – FlexE and OTN
4.7. Connect the Precision Time Protocol Interface
4.8. Connect the Ethernet Hard IP Reconfiguration Interface
4.9. Connect the Auto-Negotiation and Link Training
4.1.1. Implement MAC Synchronous Clock Connections to Single Instance
4.1.2. Implement MAC Synchronous Clock Connections to Multiple Instances
4.1.3. Implement Clock Connections to MAC Asynchronous Operation
4.1.4. Implement Clock Connections in Synchronous Ethernet Operation (Sync-E)
4.1.5. Implement Clock Connections in PTP-Based Design
4.4.1.1. Drive the Ethernet Packet to the TX MAC Avalon Streaming Client Interface with Disabled Preamble Passthrough
4.4.1.2. Drive the Ethernet Packet on the TX MAC Avalon Streaming Client Interface with Enabled Preamble Passthrough
4.4.1.3. Use i_tx_skip_crc to Control Source Address, PAD, and CRC Insertion
4.4.1.4. Assert the i_tx_error to Invalidate a Packet
4.4.2.1. Receive Ethernet Frame on the RX MAC Avalon Streaming Client Interface with Preamble Passthrough Disabled
4.4.2.2. Receive Ethernet Frame with Preamble Passthrough Enabled
4.4.2.3. Receive Ethernet Frame with Remove CRC bytes Disabled
4.4.2.4. Monitor Status and Errors on the RX MAC Avalon Streaming Client Interface
Visible to Intel only — GUID: jmx1725845977229
Ixiasoft
10.5.3. Run the Hardware Test
Follow these steps to test the hardware design example on the System Console:
- Open Tools > System Debugging Tools > System Console or type the command:
system-console &
- In the TCl Console window, type cd hwtest to change directory to <design_example_dir>/hardware_test_design/hwtest
- Type source main_10G.tcl to list the available JTAG masters:
- Type set_jtag <index> to select the appropriate JTAG master.
- Run one of the following commands:
- If you use the internal serial loopback, enter the following command:
run_test_anlt
- If you inserted an external loopback plug into the desired Ethernet port, enter the following command:
run_test_without_loopback_anlt
- If you use the internal serial loopback, enter the following command:
- The hardware design example uses the run_test/run_test_without_loopback command to initiate packet transmission from the packet generator to the IP core. Specifically, the script performs the following tasks:
- chkphy_status: Displays the clock frequencies and PMA PHY lock status.
- chkmac_stats: Displays the MAC statistics counters.
- clear_all_stats: Clears the IP core statistics counters.
- start_pkt_gen: Starts the packet generator.
- stop_pkt_gen: Stops the packet generator.
- run_test: Turns on internal serial loopback.
- run_test_without_loopback: Turns off internal serial loopback.
- reg_read <addr>: Returns the IP core register value at <addr>. Example to read the TX datapath PCS ready register: Type reg_read 0x322.
- reg_write <addr> <data>: Writes <data> to the IP core register at address<addr>. Example to initiate soft reset on RX datapath: Type reg_write 0x108 0x0004.
- Verify that the output of the TCL script matches the output from a sample test run, shown below:
% run_testAN CFG1 Register Value:0x737d0281 FSM:0x00002002 FSM:0x000001f0 AN STAT:0x000010e6 LT STAT:0x00000001 --- Turning off packet generation ---- -------------------------------------- --------- Enabling loopback ---------- -------------------------------------- Serial loopback on INST_NUM:0 Lane# 3 is disabled ---Asserting CSR RX Reset ---- Value from issp reset probe is 0x89/0b10001001 1. 0x6A340 2. 0x0006a340 Polling Successful Bit 15: 0x000001, Bit 14: 0x000000 1. 0x62340 2. 0x0033236e Polling Successful Bit 15: 0x000000, Bit 14: 0x000000 ---Releasing CSR Reset ---- Serial loopback on INST_NUM:0 Lane# 3 is disabled --- Wait for RX clock to settle... --- -------------------------------------- -------- Printing PHY status --------- -------------------------------------- RX PHY Register Access: Checking Clock Frequencies (KHz) TXCLK :161140 (KHZ) RXCLK :161130 (KHZ) TX PLL Lock Status 0x00000001 Rx Frequency Lock Status 0x00000001 RX PCS Ready 0x1 TX Lanes Stable 0x1 Deskewed Status 0x0 Link Fault Status 0x00000000 Rx Frame Error 0x00000000 Rx AM LOCK Condition 0x0000ffff ---- Clearing MAC stats counters ----- -------------------------------------- --- Initialize PKT ROM Read address for IP_INST[0]---- --------- Sending packets... --------- -------------------------------------- ----- Reading MAC stats counters ----- -------------------------------------- ========================================================================================== STATISTICS FOR BASE 0x50000 (Rx) ========================================================================================== Fragmented Frames : 0 Jabbered Frames : 0 Any Size with FCS Err Frame : 0 Right Size with FCS Err Fra : 0 Multicast data Err Frames : 0 Broadcast data Err Frames : 0 Unicast data Err Frames : 0 Multicast control Err Frame : 0 Broadcast control Err Frame : 0 Unicast control Err Frames : 0 Pause control Err Frames : 0 64 Byte Frames : 0 65 - 127 Byte Frames : 16 128 - 255 Byte Frames : 0 256 - 511 Byte Frames : 0 512 - 1023 Byte Frames : 0 1024 - 1518 Byte Frames : 0 1519 - MAX Byte Frames : 0 > MAX Byte Frames : 0 Rx Frame Starts : 16 Multicast data OK Frame : 16 Broadcast data OK Frame : 0 Unicast data OK Frames : 0 Multicast Control Frames : 0 Broadcast Control Frames : 0 Unicast Control Frames : 0 Pause Control Frames : 0 Data and padding octets : 800 Frame octets : 1088 ========================================================================================== STATISTICS FOR BASE 0x50000 (Tx) ========================================================================================== Fragmented Frames : 0 Jabbered Frames : 0 Any Size with FCS Err Frame : 0 Right Size with FCS Err Fra : 0 Multicast data Err Frames : 0 Broadcast data Err Frames : 0 Unicast data Err Frames : 0 Multicast control Err Frame : 0 Broadcast control Err Frame : 0 Unicast control Err Frames : 0 Pause control Err Frames : 0 64 Byte Frames : 0 65 - 127 Byte Frames : 16 128 - 255 Byte Frames : 0 256 - 511 Byte Frames : 0 512 - 1023 Byte Frames : 0 1024 - 1518 Byte Frames : 0 1519 - MAX Byte Frames : 0 > MAX Byte Frames : 0 Tx Frame Starts : 16 Multicast data OK Frame : 16 Broadcast data OK Frame : 0 Unicast data OK Frames : 0 Multicast Control Frames : 0 Broadcast Control Frames : 0 Unicast Control Frames : 0 Pause Control Frames : 0 Data and padding octets : 800 Frame octets : 1088 -------------------------------------- run_test:pass -------------------------------------- ---------------- Done ---------------- Serial loopback on INST_NUM:0 Lane# 3 is enabled ---Asserting CSR RX Reset ---- Value from issp reset probe is 0x89/0b10001001 1. 0x0A340 2. 0x0000a340 Polling Successful Bit 15: 0x000001 , Bit 14: 0x000000 1. 0x02340 2. 0x0033236e Polling Successful Bit 15: 0x000000 , Bit 14: 0x000000 ---Releasing CSR Reset ---- Serial loopback on INST_NUM:0 Lane# 3 is disabled