Altera_Forum
Honored Contributor
12 years agoModelSim Incorrect PLL output frequency
I have a PLL in my design that was generated using the MegaWizard tool. When I simulate my design in ModelSim, the output frequency of the PLL is not correct. I can modify the output frequency using the MegaWizard tool and can see the ModelSim frequency also change, but the value is still not correct. Here are a few examples:
Desired frequency : Observed frequency 120MHz : 20MHz 100MHz : 16.67MHz 5MHz : 840kHz 25MHz : 4.2MHz The observed frequency seems to always be about 16.67% of the desired frequency. I see this message in ModelSim printed during simulation:# Note : Cyclone IV E PLL locked to incoming clock# Time: 312 Instance: sidewinder2_red_fpga_tb.sidewinder2_red_fpga_top_inst.pll_clk_25_inst.altpll_component.cycloneiii_pll.pll3 My Quartus version is: 32-bit Version 12.1 Build 177 11/07/2012 SJ Full Version ModelSim is: Altera Starter Edition 10.1b Revision 2012.04, Apr 27 2012 My target device is Cyclone IV E, EP4CE15U14I7. Anyone have any ideas? Does it matter that ModelSim is using a CycloneIII PLL module within the altera_mf.v file??