Forum Discussion

host's avatar
host
Icon for Occasional Contributor rankOccasional Contributor
1 month ago
Solved

Serial Lite IV - Rx Simulation Issues

Hello,

I'm having trouble with the RX in side when simulating the F-Tile Serial Lite IV example design.  

Enviroment:
- Quartus Prime Pro Edition 26.1, Windows
- Questa Altera FPGA Edition-64 2025.3, installed with Quartus 26.1, with its precompiled device libraries
- Device AGMF039R47A1E1VC (Agilex 7 M-Series)
- F-Tile Serial Lite IV IP: FGT, NRZ, 8 lanes, 18.0048 Gbps, RS-FEC enabled, FULL streaming mode,
  PMA reference clock 180.048 MHz, System PLL 562.65 MHz
- Example design generated from the IP parameter editor (Generate Example Design).

Problem 1 :

the generated run_mentor.tcl cannot compile the device libraries. run_mentor.tcl sets QUARTUS_SIM_LIB_DIR to $QUARTUS_ROOTDIR/eda/sim_lib2, DEVICES_SIM_LIB_DIR to $QUARTUS_ROOTDIR/../devices/sim_lib2 and ENABLE_QE_LIBRARY_COMPILATION to true. Both folders exist, but dev_com fails with vlog-7 (Failed to open design unit file) on the first file of every device library : quartus/eda/sim_lib2 : 220model.v, sgate.v, altera_primitives.v, altera_mf.v, altera_lnsim.sv, tennm_atoms.sv, tennm_hssi_atoms.sv, ctfb_hssi_atoms.sv, ctr_hssi_atoms.sv devices/sim_lib2 : tennm_fm_hps.sv, tennm_fp8_noc.sv, tennm_revb_io96.sv, tennm_revb_io96_iopll.sv ,ctfb_hssi_atoms_ncrypt.sv and ctfb_hssi_atoms2_ncrypt.sv, which the script also compiles, are not present anywhere

in the installation. The only ctfb_hssi_atoms file installed is questa_fe/intel/verilog/src/ctfb_hssi_atoms.sv.

Problem 2 : with the precompiled libraries the rx never comes up

To get past problem 1, the two sim_lib2 lines were removed from run_mentor.tcl and ENABLE_QE_LIBRARY_COMPILATION
was set to false, so the design binds to the precompiled Questa Altera FPGA Edition libraries. The macros in
USER_DEFINED_VERILOG_COMPILE_OPTIONS were left as generated. Compilation and elaboration then succeed, and :

- Phy TX Lanes Stable and Phy EHIP ready assert at 58,215 ns, TX link_up at 58,223 ns.
- rx_pcs_fec_phy_reset_n is released at about 200 ns together with the TX, and rx_reset_ack asserts during the
  reset and clears after the release.
- rx_cdr_lock stays 0 on all 8 lanes and rx_link_up never asserts : the testbench stays at "Waiting for RX Link Up".
  The run was stopped at 126.5 us, 68 us after TX link up. The reference logs in UG-20325 show RX link up 20 to
  28 us after TX link up.
- The F-tile model reports a single lane state change per lane, "State change from S0, R0, W0 TO S2, R0, W0",
  finished at 3,625 ns, and nothing after that.
- The simulation runs at about 5 hours of wall-clock time for 126.5 us.

Our own design, which uses the same IP, behaves identically on this installation.

Questions

1. Where should the files that run_mentor.tcl expects in quartus/eda/sim_lib2 and devices/sim_lib2 come from ?
   Is an installation component missing ?
2. Is the example design supported with the precompiled Questa Altera FPGA Edition libraries ? If so, what does
   the FGT RX need to reach rx_cdr_lock ?
3. Is this a known issue in 26.1, and is there a patch or a workaround ?

  • Hi,


    Thank you for the update.


    For your reference, I tested the example design simulation using the default configuration and observed a runtime of approximately one hour or more, which is consistent with what you reported.


    I also performed additional testing by removing one of the fast simulation parameters (+define+IP7581SERDES_UX_SIMSPEED) and observed a longer simulation time. Based on these results, the simulation duration you are seeing appears to be expected behavior for the provided example design.


    Sorry for the inconvenience, and thank you for your patience.

9 Replies

  • CheepinC_altera's avatar
    CheepinC_altera
    Icon for Regular Contributor rankRegular Contributor

    Hi,


    Thanks for sharing the details. Please allow me to go through each question as following:


    Problem 1 — sim_lib2 files missing

    The sim_lib2 directories are specifically for the Fast Simulation Models used in Agilex 3, 5, and 7 FPGA designs. The auto-generated msim_setup.tcl is expected to reference them via:

    • set DEVICES_SIM_LIB_DIR "$QUARTUS_INSTALL_DIR/../devices/sim_lib2/"
    • set QUARTUS_SIM_LIB_DIR "$QUARTUS_INSTALL_DIR/eda/sim_lib2/"

    Quartus® Prime Pro Edition User Guide

    The standard simulation library files (220model.v, sgate.v, tennm_atoms.sv, etc.) that vlog-7 is complaining about normally live in quartus/eda/sim_lib/ (without the "2" suffix). The sim_lib2 tree is a separate, newer fast-simulation-model package. The ctfb_hssi_atoms_ncrypt.sv and ctfb_hssi_atoms2_ncrypt.sv files that are entirely absent are the encrypted F-Tile/C-Tile HSS models required by this fast-model path. The fact that only questa_fe/intel/verilog/src/ctfb_hssi_atoms.sv is present confirms you're seeing the precompiled-library variant of this file, not the fast-model variant. This points to the Fast Simulation Model library package not having been installed. As I checked my local installed Quartus directory, seems like I can see these files. Let me try to perform the example design generation and simulation to check on the simulation observation. Meanwhile, would you mind to help checking if there is any anomaly observed during your installation especially related to device libraries or simulation libraries. Thank you.


    Problem 2 — RX never achieves cdr_lock with precompiled libraries

    Your observation maybe related to the documented bug: due to a bug in Quartus Prime Pro 25.3.1 and earlier software for Agilex 7 F-Tile (and Agilex 5/3 GTS) devices, you may see the rx_ready signal not asserting, or incorrect TX data rates, when simulating with QuestaSim Altera Edition software. The documented resolution is to update to Quartus Prime Pro 26.1 and create a wrapper script that sets the following environment variables before calling the generated msim_setup.tcl:

    set QUARTUS_SIM_LIB_DIR /quartus/eda/sim_lib2
    set DEVICES_SIM_LIB_DIR /devices/sim_lib2
    set ENABLE_QE_LIBRARY_COMPILATION "true"
    source msim_setup.tcl
    

    Why do I see rx_ready not asserting, or incorrect TX data rates in Agilex® 7 F‑Tile or Agilex® 5/3 FPGA GTS device transceiver simulations using the Quartus® Prime Pro 25.3.1 or earlier software with Siemens QuestaSim® Altera Edition software?

    This directly ties Problem 2 to Problem 1: the fix for the RX lock failure requires the sim_lib2 fast simulation models to be present. Because those files are missing from your installation, the fix cannot be applied, and the precompiled Questa Altera FPGA Edition libraries alone reproduce the pre-fix behaviour — rx_cdr_lock never asserts, rx_link_up never comes up, and the simulation runs at an extremely slow wall-clock rate (consistent with slow-sim models rather than fast models).


    Problem 3 — Known issue and workaround

    I am not aware of any known issue on this.

  • ai_responder's avatar
    ai_responder
    Icon for Community Manager rankCommunity Manager

    Thank you for your inquiry. To ensure an accurate response, your request has been routed to an Altera application engineer for further review and assistance.


    Note: To continue using AI Responder, please start your next inquiry with ai_responder

    Disclaimer (Beta): The AI Responder is currently provided as a beta feature. AI-generated responses may contain errors or omissions. Please verify technical guidance with official Altera documentation before implementation.

    Thank you very much.

  • host's avatar
    host
    Icon for Occasional Contributor rankOccasional Contributor

    Thanks for your input. I reinstalled Quartus 26.1 and after that both Rx and Tx do come up (Rx is up at ~91uS). 

    However, it took >1.5 hours to get to the point where Rx is up. And this was run on a very capable PC so although I'm now using the "Fast Simulation Libraries" - I wouldn't call it "Fast" by any means.

    Can you please try to bring up the reference design simulation on your end ?
    I need to know if it can do better than 1.5 hours. 

     

    • CheepinC_altera's avatar
      CheepinC_altera
      Icon for Regular Contributor rankRegular Contributor

      Hi,


      Thanks for your update. Glad to hear that you have managed to get the simulation up after reinstallation. Regarding the simulation duration, I am currently running the simulation to check on it. I will keep you updated on the results by end of tomorrow or Friday. Please ping me if you do not hear back from me. Thank you.

      • host's avatar
        host
        Icon for Occasional Contributor rankOccasional Contributor

        Attaching the transcript of the reference design simulation.
        Maybe it'll provide some insight as to why it's taking so long.

  • host's avatar
    host
    Icon for Occasional Contributor rankOccasional Contributor

    Thanks for your update.

    It would be worth passing this feedback on to the design team to see whether these figures can be improved. After all, this is the paid version of Questa, and spending around 1.5 hours just to get the IP linking up places a significant burden on development iterations and bug fixing in the actual application I’m developing.

    Unfortunately, this is not a cost I can afford in terms of development time. As a result, I’ll have to resort to writing my own BFM for this IP instead.

    I hope this feedback can be taken into consideration, as improving this aspect would make a meaningful difference to the development experience.

    Thanks again.

    • CheepinC_altera's avatar
      CheepinC_altera
      Icon for Regular Contributor rankRegular Contributor

      Hi,


      Thanks for your understanding. I will feedback the simulation time observation to Engineering, for better user experience. Thank you.

      • CheepinC_altera's avatar
        CheepinC_altera
        Icon for Regular Contributor rankRegular Contributor

        Hi host,


        I believe that your initial question has been addressed, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Altera experts. Otherwise, the community users will continue to help you on this thread. Thank you very much.