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
                    
                
            
        1.4. Simulating the Design Example Testbench
 You can compile and simulate the design by running a simulation script from the command prompt. 
  
 
  
     Figure 7. Procedure
      
       
    
 
   
    Note: Prior the simulation, you must generate tile-related files described in Generating Tile Files. 
   
 
  - At the command prompt, change to the testbench simulation directory cd <design_example_dir>/ex_*G/sim.
 -  Run the IP setup simulation: 
    
ip-setup-simulation -quartus-project=../../hardware_test_design/eth_f_hw.qpf - At the command prompt, change the working directory to <design_example_dir>/example_testbench.
 - Run the simulation script for the supported simulator of your choice. The script compiles and runs the testbench in the simulator. Refer to the table Steps to Simulate the Testbench.
 -  Analyze the results. The successful testbench displays "Simulation Passed". 
    
Table 2. Steps to Simulate the Testbench Simulator Instructions Synopsys* VCS* In the command line, type: sh run_vcs.shSynopsys* VCS* MX In the command line, type: sh run_vcsmx.shUse this script when the design contains Verilog HDL and System Verilog with VHDL.
ModelSim* SE or Questa* or Questa*-Intel® FPGA Edition In the command line, type: vsim -do run_vsim.doIf you prefer to simulate without bringing up the GUI, type:vsim -c -do run_vsim.do 
   A successful simulation ends with the following message:
   
 
 Simulation Passed. or
   Testbench complete. After successful completion, you can analyze the results.