simulation
283 TopicsQuartus 25.1std miscompiles wildcard casez with constant concatenation — RTL/gate mismatch
Quartus Prime Lite 25.1std silently synthesizes the following legal combinational Verilog to a constant-high output, although the RTL requires fire = en. The mismatch exists in the functional post-synthesis netlist, before fitting. The same source passes Vivado 2026.1. Environment Quartus Prime Lite 25.1std.0 Build 1129, Linux x86_64; Cyclone V 5CGXFC5C6F27C7. Quartus input mode: SYSTEMVERILOG_FILE. A separate VERILOG_FILE test also reproduces the discarded input dependency. Quartus gate simulation: Icarus Verilog 14.0 using unmodified Altera cyclonev_atoms.v and altera_primitives.v. Comparison: Vivado 2026.1 build 6511674, Artix-7 xc7a35tcpg236-1; native XSim 2026.1 and Icarus 14.0, using unmodified AMD cell models. Minimal reproducer module trigger(input en, input other, output reg fire); always @* begin fire = 1'b0; casez ({en, 1'b0}) 2'b1?: fire = 1'b1; endcase end endmodule The unused input other keeps the interface identical to the control variant below. No Amaranth, Yosys, IP, clocks, initialization, synthesis attributes, or FPGA hardware are required. Expected and actual behavior The pattern masks the low selector bit and requires the high bit, en, to equal 1. Therefore fire must equal en. The output is assigned on every execution of the combinational block. en other | RTL | Quartus gate | Vivado gate 0 0 | 0 | 1 (wrong) | 0 0 1 | 0 | 1 (wrong) | 0 1 0 | 1 | 1 | 1 1 1 | 1 | 1 | 1 All inputs are driven to binary 0/1 values. Quartus connects the fire output buffer to vcc and reports: No output dependent on input pin "en". Vivado preserves en → IBUF → OBUF → fire. Equivalent controls Replace 2'b1? with 2'b10, keeping {en, 1'b0}: correct in both tools. This is equivalent because the low selector bit is constant zero. Keep 2'b1? but use {en, other}: correct in both tools for all input combinations. RTL/gate mismatches over four input combinations: wildcard exact-pattern variable-selector Quartus / Icarus 2 0 0 Vivado / XSim 0 0 0 Vivado / Icarus 0 0 0 The RTL references and shared testbench are byte-identical between tools. The Icarus cross-check excludes an Icarus-versus-XSim discrepancy. Generated netlists and vendor cell models were not edited. Reproduce Extract the attached ZIP and run from its root, replacing the Quartus installation path as appropriate: python3 run_gate.py synth --quartus-root /path/to/quartus --output-dir quartus-output python3 run_gate.py simulate --output-dir quartus-output The first step runs quartus_map and exports functional netlists using quartus_eda. The second step intentionally exits nonzero when the RTL/gate mismatch is reproduced, with wildcard=2 exact=0 variable=0. The ZIP contains the full report, source, QSF settings, shared testbench, reproduction scripts, all three unmodified Quartus and Vivado netlists, and the recorded failing/passing logs. Full Vivado/XSim reproduction commands are in REPORT.txt. Vendor simulation library sources are not bundled; the scripts use local installations. Impact and follow-up In a larger design this construct removed state-update enables and changed behavior despite passing timing. Fully lowering processes to explicit mux/enable logic before Quartus reads the Verilog avoids the trigger. Please confirm the miscompilation, provide an existing or new defect tracking number, and advise whether a patch or supported synthesis setting is available for Quartus Lite/Standard 25.1. Other Quartus versions have not been tested.42Views0likes2CommentsHow to make Questa show delays through gates?
Hello, In one of my designs, I use extra gates (with 'keep' attribute) to introduce necessary delays through combinational logic. I am fairly certain that complier follows the 'keep' directive, because Timing Analyzer shows these extra delays. However, when I use Questa with the *.vo file generated by Quartus complier, the gate delays are not observable in the Wave view. How do I make Questa show gate delays? Regards, Mark72Views0likes2CommentsModelSim and Questa Starter Ed.
Hi all, The PC I currently use for FPGA development has both Quartus II 13.1 and Quartus 25.1 Std installed. Has it been verified that using Questa Starter Edition will not interfere with the existing FlexNet license environment for ModelSim? Now Questa Starter licenced by file fron SSLC, and Windows envisonment valiable SALT_LICENSE_SERVER=***_License.dat And alongside installed ModelSim use ordinary FlexNet Licencing LM_LICENSE_FILE=<<< local license servers >>>> I am asking this question because, while I was attempting to resolve the ModelSim license error mentioned below, my local administrator requested that I verify whether installing Questa Starter might affect ModelSim license management. Quatus 13.1 ModelSim license failure110Views0likes3CommentsSerial 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 ?Solved215Views0likes9CommentsModelSim Intel FPGA Ed. 2020.1 not updating changes to HDL File
I have ModelSim open and Quartus Prime Lite v. 22.1, while I'm simulating, I often make changes back to the Quartus, but when I reload the design into ModelSim, it cold-archives the initial HDL file and references that file instead of the changes I make in Quartus. No matter how many times I recompile the code for both the wrapper function and main entity, it always goes back to the original? How is this possible? Does ModelSim copy the file into it's own directory and simply references it? I've spent days trying to figure this out, wihtout creating a new project and adding the changed code to it, how can I force it to use the updated files?Solved407Views0likes8CommentsIntroducing the Altera Community AI Responder — Beta
Altera is introducing the AI Responder, an assistant built into the Altera Community to help provide faster, context-aware guidance for Altera product questions. It uses relevant public Altera documentation and Knowledge Database content, with coverage continuing to expand. The AI Responder may provide source references and can hand off complex or out-of-scope questions to an Altera subject-matter expert. As a beta feature, responses may contain errors or omissions, so please review the sources and verify technical guidance against official Altera documentation before implementation. If the response does not fully address your question, add more context and tag ai_responder to continue the discussion. We welcome your feedback as we improve the Community experience.145Views0likes1CommentQuesta warning vsim-3473 Component instance is not bound.
I am using Quartus Prime Pro 25.3 and Questa Altera Starter FPGA Edition-64 2025.2. I am trying to simulate a design with numerous Altera IP. I get the "not bound" warning for the many, possibly all, of the Altera IP. I have searched online and this forum. I see the same problem identified with ModelSim. I could not find anything specifically Questa. I have tried various posted solutions but have had no success. I generated simulation models for all IP in Quartus. For one of the IP, I tried creating the simulation model in VHDL and Verilog and tried Traditional and Qrun QuestSim flow selection. I checked the QuestaSim box for which simulator script will be generated. I found some solutions talking about using the command line in Questa. I very much prefer to remain in in the GUI for all commands.214Views0likes4Comments