Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16604 Discussions

ModelSim Altera and megafunction

Altera_Forum
Honored Contributor II
1,158 Views

Hi, 

 

if some trouble with ModelSim Altera Edition and megafunction. 

I use the Quartus II Native Link feature to call ModelSim for the RTL simulation. My design uses the clock_pll megafunction block. All other modules are written in verilog. 

Modelsim always complains: 

ALTERA version supports only a single HDL# ** Error: (vsim-3039) ..... Instantiation of 'clock_pll' failed. 

 

How can I fix this issue? 

 

Thanks a lot 

Peter
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
427 Views

You should use the gate level simulation.

0 Kudos
Altera_Forum
Honored Contributor II
427 Views

>You should use the gate level simulation. 

I partially agree. But this is always very slow.!!!
0 Kudos
Altera_Forum
Honored Contributor II
427 Views

You shouldn't need to use gate level simulation. 

 

I assume you mean altpll megafunction, I can't see any megafunction named clock_pll. Possibly clock_pll is the name of your variation file, and you used VHDL when creating the megafunction variation. 

 

When you invoke the MegaWizard, you can select the HDL language for your variation. Make sure you are selecting Verilog. 

 

But note that most designs don't require a full PLL simulation model for RTL level simulation. I usually add a small dummy PLL module to the testbench.
0 Kudos
Altera_Forum
Honored Contributor II
427 Views

As vjAlter states, Altera PLLs are generally correctly simulated also by ModelSim functional simulation. This is an important feature, cause gate-level simulation, besides it's slow operation, hasn't much worth in code debugging. It's mainly useful to check the timing of a design. 

 

I think, it may be a problem of specifying the required libraries for the simulation. Cause I'm mostly using VHDL, where the library references are part of the code, I don't have to care for this issue. As another point, when simulating PLLs, the simulator resolution must be always set to 1 ps.
0 Kudos
Reply