Forum Discussion
Serial Lite IV - Rx Simulation Issues
- 1 month ago
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.
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
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.