F-Tile Ethernet Intel® FPGA Hard IP Design Example User Guide

ID 683804
Date 10/11/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.5. Hardware Design Example

Follow these steps to test Ethernet-based design examples with enabled auto-negotiation and link training in hardware:
  1. Generate design example as described in Generating the Design.
  2. Modify the .qsf settings:
    • Set device to match the appropriate ordering part number (OPN) for your design.
    • Update the pinout to match the board and the design function.
    • Assign the appropriate VID settings in your .qsf file to match your board.
  3. Generate the .sof file.
  4. Update board clock settings. The default value for the PHY reference clock is 156.25 MHz. The default value for the reconfiguration clock is 100 MHz.
  5. Insert appropriate electrical loopback plug into the Ethernet port.
  6. Program the design.
  7. Open Tools > System Debugging Tools > System Console.
  8. Navigate to the hardware directory <design_example>/hardware_test_design/hwtest directory.
  9. Type source main_<variant_type>.tcl.
  10. Type set_jtag<number_of appropriate_JTAG_master>
  11. Perform this step if external loopback module is connected. Skip this step if the design connects to link partner.
    1. Type command to read the seq cfg register:
      reg_read 0x101002C0
    2. Type command to set the ingore nonce value to 1:
      reg_write 0x10100300 0x737d0281
    3. Type command to restart the AN sequencer:
      reg_write 0x101002c0 0x00002003
    4. Type command to read the debug status:
      reg_read 0x101003c0
      The link is up if the command returns value 1f0.
  12. Type the following command to check the PHY status:
    chkphy_status
  13. Type the command to start and stop the packet generator. The function sends 16 packets.
    start_pkt_gen
    stop_pkt_gen
  14. Type the command to check the MAC status:
    chkmac_status

Did you find the information on this page useful?

Characters remaining:

Feedback Message