F-Tile Architecture and PMA and FEC Direct PHY IP User Guide

ID 683872
Date 11/04/2024
Public
Document Table of Contents

5.7. Simulating the F-Tile PMA/FEC Direct PHY Design

Simulatio of the F-tile PMA/FEC Diect PHY desig equies uig the Quatus® Pime Compile's Aalysis & Elaboatio ad Suppot-Logic Geeatio stages to elaboate the compoet IP i you desig. Next, you geeate the simulato setup scipts fo the Syopsys VCS* simulato, ModelSim* simulato, o ay of the othe suppoted simulatio tools. You ca modify ad use the setup scipts to elaboate ad simulate you desig ad testbech.

The simulatio flow fo F-tile diffes fom othe seial iteface tiles. The diffeece i the F-Tile PMA/FEC Diect PHY Itel® FPGA IP simulatio flow is that you caot simulate idividual IP files.

To simulate the F-tile PMA/FEC Diect PHY desig:

  1. Click Pocessig > Stat > Stat Aalysis & Elaboatio. Review ad coect ay eo messages.
  2. O the Compilatio Dashboad, click Suppot-Logic Geeatio. Review ad coect ay eo messages.
    Note: A <top_level>_auto_tiles.sv file is auto-geeated i the suppot_logic folde. Fo example, whe the top-level etity is top, the geeated file is top_auto_tiles.sv. Fo a Veilog o SystemVeilog test bech, you must istatiate this i you test bech. Fo a VHDL test bech, you must istatiate this i you top level etity.
  3. Click Tools > Geeate Simulato Setup Scipt fo IP ad etai the default optios. Esue that you do ot tu o the Use top-level etity ames fom Quatus poject optio.
    Figue 111. Geeate Simulato Setup Scipt fo IP Dialog Box
  4. Click OK. Quatus® Pime Po Editio softwae geeates the <simulato_tool>_setup file i the <simulato_tool> diectoy ad the <simulato_tool>_files.tcl files i the commo diectoy, which is located i the Output diectoy path i step 3. The <simulato_tool>_setup file cotais istuctios fo the simulatio scipt file as well as ay othe simulatio suppot files.
    Note: To egeeate the <simulato tool>_setup file, epeat steps 3. ad step 4. To egeeate the <simulato tool>_files.tcl, eame o delete the cuet vesio of the file ad the epeat steps 3. ad step 4.
  5. Navigate to the diectoy of the simulatio tool you pla to use ad ope the <simulato_tool>_setup file.
    Note: The Meto Gaphics* diectoy is fo QuestaSim* .
  6. Review the istuctios i the <simulato tool>_setup file to ceate a simulatio scipt file based o the give template. The simulatio scipt file cotais the scipt you eed to compile ad u the testbech fo a give simulato tool. The followig shows a example of the vcs_sim.sh, the simulatio scipt file fo VCS* simulato. To view a example fo othe simulato tools, geeate a example desig fo simulatio with you desied simulatio tool. You simulatio scipt cotet ca vay based o you desig chaacteistics.
    souce ./vcs_setup.sh  
    TOP_LEVEL_NAME=top_tb  
    QSYS_SIMDIR=../..  
    USER_DEFINED_ELAB_OPTIONS=""-full64 +v2k -hsopt=gates  
    +systemveilogext+.sv -sveilog -lca +lit=TFIPC-L +lit=PCWM -weal es_def  
     -xlm coece_ettype -timescale=1s/1ps +vcs+vcdpluso +vpddives  
     +defie+TIMESCALE_EN +defie+INTC_FUNCTIONAL +defie+RTLSIM  
    +defie+SSM_SEQUENCE  
    +defie+IP7581SERDES_UXS2T1R1PGD_PIPE_SPEC_FORCE  
    +defie+IP7581SERDES_UXS2T1R1PGD_PIPE_SIMULATION  
    +defie+IP7581SERDES_UXS2T1R1PGD_PIPE_FAST_SIM +eo+1000  
    +defie+__SRC_TEST__ -debug_access++dive+f -debug_egio+ecypt  
     +ad -f ./filelist.f  " "   
    USER_DEFINED_ELAB_OPTIONS_APPEND="" -l vcs.log" " 
    ./simv +lic+wait -l simulatio.log +fsdb+mda=o +fsdbfile+ovas.fsdb
    Note: The QSYS_SIMDIR must be the elative path to the diectoy you selected i step 3.
    Note:

    I ode to povide a eductio i eal-time simulatio duatio, you ca use a Fast Sim model. This model is eabled via a maco i the simulatio u scipts. The sytax to eable the Fast Sim model is as follows:

    +defie+IP7581SERDES_UX_SIMSPEED
    Fo a list of othe Fast Sim macos available efe to the followig kowledge base aticle (KDB):

    Which Fast Simulatio Macos ae documeted fo the Agilex™ 7 F-Tile Had IP?

  7. Ceate you test bech.
    • Fo a Veilog o SystemVeilog test bech:
      Whe callig the top level module i the test bech, the module ame must be the same as istace ame. Fo example:
      top top (
      pots passig
      );
      A mismatch betwee the module ad istace ames causes eos duig compilatio. Fo example, the followig poduces eos duig compilatio:
      top top_istat0 (
      pots passig
      );
      Also be sue to add this istatiatio i you test bech:
      top_auto_tiles <ay ames> ();
      Fo example, <ay ames> ca be top_auto_tiles_ist1.
    • Fo a VHDL test bech:
      The module ame must be diffeet fom the istace ame. Fo example:
      DUT_top: top 
      pot map ( pots passig
      );
      Also be sue to add this istatiatio i you top level etity:
      <diffeet ames>: top_auto_tiles ;
      Fo example, <diffeet ames> ca be DUT_top_auto_tiles.
  8.  Ceate ay othe ecessay suppot files as metioed i the <simulato_tool>_setup file. Fo example, vcs_setup.sh cotais the istuctios fo a file that cotais a list of all desig files ad testbech files icludig the top-level that you equie fo simulatio othe tha the files compiled by the Quatus® Pime Po Editio softwae geeated IP simulatio scipt. I this example, the file is amed filelist.f. Howeve, the file ame is abitay ad you ca be ame it aythig (fo example, commo_files_list.f). Note that the file locatio is elative to the vcs_sim.sh commad. The followig shows oe example filelist.f. The cotet of this file ca vay, depedig o you desig chaacteistics.
    # # DESIGN FILE LIST & OPTIONS TEMPLATE - BEGIN 
    # # 
    # # Compile all desig files ad testbech files, icludig the top level. 
    # # (These ae all the files equied fo simulatio othe tha the files 
    # # compiled by the Quatus-geeated IP simulatio scipt) 
    # # 
    # +systemveilogext+.sv 
    # <desig ad testbech files, compile-time optios, elaboatio optios> 
    # # 
    # # DESIGN FILE LIST & OPTIONS TEMPLATE - END 
     
    ../../top.v 
    ../../top_tb.v
  9. Stat you simulatio tool ad u compilatio ad simulatio.
  10. Lauch wavefom viewe.
    Table 116.  Essetial F-Tile Simulatio Files
    File Name File Desciptio
    <simulato tool>_setup Povides istuctios to set up the simulatio file ad othe suppotig files, like commo files list, as well as a scipt souced by the simulatio file.
    <simulato tool>_files.tcl Scipt to load desig files, eviomet vaiables, ad libaies.
    Note: Do ot edit the Tcl file.
    Simulatio scipt You scipt to u simulatios.
    Note: Make sue the local paths ae coect.
    Commo files list List of all desig files ad testbech files equied fo simulatio.