Altera_Forum
Honored Contributor
9 years agoHow to simulation PLL in ModelSim-Altera ?
Hi, All.
I'm trying to run simulate PLL for Cyclone(I) unsuccessful. What I use? QuartusII v11sp1 (last version that support CycloneI), ModelSim Altera Starter edition 6.6. Assignment - Settings - Simulation: I guess this field should be Verilog HDL and 1 ps, the same as "PLL simulation example". But I'd prefer VHDL, because I know it little better (but I'm newbie still). Possible, it don't need for read or write. Tools - Run EDA Simulation Tools -{RTL | Gate Level} which is better? Example works with both. Example uses tcl script. What? Should I learn one more language? Oh, no! Not again!... When I'm trying simulate my Sch top level project, "Gate Level" mode misses library when I press "Start simulation" (on initialize Modelsim all ok). When I'm trying simulate RTL, ModelSim cretes 3 different library: "work" - with VHDL comonents, "gate_work" and "rtl_work" with top-level blocks. What should I do that it start works correctly? Or what I need show for more correct question?...
wave modify -driver freeze -pattern clock -initialvalue 0 -period 200ns -dutycycle 50 -starttime 0ns -endtime 10000ns NewSig:/Block1/S_IN# Block1
wave modify -driver freeze -pattern constant -value 1 -starttime 0ns -endtime 10000ns NewSig:/Block1/D_RDn# Block1
wave export -file testbench -starttime 0 -endtime 10000 -format vlog -designunit Block1
vsim -voptargs=+acc gate_work.Block1# vsim -voptargs=+acc gate_work.Block1 # Loading gate_work.Block1# ** Error: (vsim-3033) asnnet.vo(288): Instantiation of 'cyclone_lcell' failed. The design unit was not found.# Region: /Block1# Searched libraries:# E:\Altera\PRJ\asnnet\simulation\modelsim\gate_work# ** Error: (vsim-3033) asnnet.vo(325): Instantiation of 'cyclone_lcell' failed. The design unit was not found.# Region: /Block1# Searched libraries:# E:\Altera\PRJ\asnnet\simulation\modelsim\gate_work
...