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.
                
                    
                        1. Quick Start Guide
                    
                    
                
                    
                        2. Design Example: Single IP Core Instantiation
                    
                    
                
                    
                        3. Design Example: Single IP Core Instantiation with Precision Time Protocol
                    
                    
                
                    
                        4. Design Example: Single IP Core Instantiation with Auto-Negotiation and Link Training
                    
                    
                
                    
                        5. Design Example: Multiple IP Core Instantiation
                    
                    
                
                    
                    
                        6. F-Tile Ethernet Intel FPGA Hard IP Archives
                    
                
                    
                    
                        7. Document Revision History for the F-Tile Ethernet Intel FPGA Hard IP Design Example User Guide
                    
                
            
        4.5. Hardware Design Example
   Follow these steps to test Ethernet-based design examples with enabled auto-negotiation and link training in hardware: 
   
 
 - Generate design example as described in Generating the Design.
 - 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.
 
 - Generate the .sof file.
 - 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.
 - Insert appropriate electrical loopback plug into the Ethernet port.
 - Program the design.
 - Open Tools > System Debugging Tools > System Console.
 - Navigate to the hardware directory <design_example>/hardware_test_design/hwtest directory.
 - Type source main_<variant_type>.tcl.
 - Type set_jtag<number_of appropriate_JTAG_master>
 - Perform this step if external loopback module is connected. Skip this step if the design connects to link partner. 
     
- Type command to read the seq cfg register:
reg_read 0x101002C0 - Type command to set the ingore nonce value to 1:
reg_write 0x10100300 0x737d0281 - Type command to restart the AN sequencer:
reg_write 0x101002c0 0x00002003 - Type command to read the debug status:
The link is up if the command returns value 1f0.reg_read 0x101003c0 
 - Type command to read the seq cfg register:
 - Type the following command to check the PHY status:
chkphy_status - Type the command to start and stop the packet generator. The function sends 16 packets.
start_pkt_gen stop_pkt_gen - Type the command to check the MAC status:
chkmac_status