Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 Discussions

CycloneV's Altera PLL V13.1 simulation problem

Altera_Forum
Honored Contributor II
3,250 Views

Hi, 

 

I'm using Altera SOCkit (CycloneV) and generated altera pll v13.1 using quartus v13.1.0.162 web edition + latest patch. 

 

Now I'm trying to simulate the generated pll using modelsim but I can not. 

 

A problem is there is nothing (ex. clock, locked) come out from PLL, always in "U". 

 

In the other hand, I can simulate pll generated by cycloneVI (ATPLL) without any problem. 

 

 

Have been tying to google this but still haven't found resemble thread. 

 

Anyone know how to solve this ?
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
1,594 Views

What clock frequency are you generating out of the PLL? If it's 'too high' I suspect the cut down version of ModelSim included with the Web Edition of Quartus won't simulate it. 

 

This is indicative of behaviour I've seen when using PLLs generated for Cyclone IV devices (ALTPLL). It would quite happily simulate with output frequencies below 100MHz, but not over...
0 Kudos
Altera_Forum
Honored Contributor II
1,594 Views

Hi a_x_h_75, 

 

Thank you very much for your comment. 

 

Oscillator of this board is 50MHz and output of my PLLs are 100MHz and 400MHz (use 2 PLLs). 

 

I'll try scaling down my system clocks and simulate, after that I will post result here.
0 Kudos
Altera_Forum
Honored Contributor II
1,594 Views

To simulate PLLs, Modelsim time resolution must be changed from default 1 ns to 1 ps.

0 Kudos
Altera_Forum
Honored Contributor II
1,594 Views

Hi a_x_h_75 and FvM, 

 

Have tried both of your comment but still not work. 

 

I suspected that there's may something wrong about my sim library. 

 

Below are warning displayed from my modelsim. 

 

Have you ever seen warning like this before ? 

 

--------------------------------------------------------------------------------------------------------- 

# Loading cyclone5_pll.testbench(behavioral) 

# Loading cyclone5_pll.top(behavioral) 

# Loading cyclone5_pll.pll(rtl) 

# ** Warning: (vsim-3473) Component instance "pll_inst : PLL_0002" is not bound. 

# Time: 0 ps Iteration: 0 Instance: /testbench/MODULE_TOP/PLL_MODULE File: E:/xxx/xxx/xxx/project/cyclone_5_pll_sim/ipmodule/PLL.vhd 

# ** Warning: (vsim-8684) No drivers exist on out port /testbench/MODULE_TOP/PLL_MODULE/outclk_0, and its initial value is not used. 

#  

# Therefore, simulation behavior may occur that is not in compliance with 

#  

# the VHDL standard as the initial values come from the base signal /testbench/MODULE_TOP/wCLKOUT. 

#  

# ** Warning: (vsim-8684) No drivers exist on out port /testbench/MODULE_TOP/PLL_MODULE/locked, and its initial value is not used. 

#  

# Therefore, simulation behavior may occur that is not in compliance with 

#  

# the VHDL standard as the initial values come from the base signal /testbench/MODULE_TOP/wLOCK. 

#  

---------------------------------------------------------------------------------------------------------
0 Kudos
Altera_Forum
Honored Contributor II
1,594 Views

Hi, 

 

I finally understood that only vhdl file created by quartus is not enough. 

 

I needed to include one more module hiden inside a folder (PLL_0002) into a project as well. 

 

By doing this, warnings seems to be disappear but now I'm facing a new problem. 

 

It's appear that modelsim (free version) can only simulate one hdl language at a time, which my code is in vhdl while PLL_0002 module is in verilog. !!! 

 

Can anyone confirm that it is true or not ? 

 

 

You guys have no problem with mixed-language simulation means you are coding in verilog or using licensed version, haven't you ? 

 

 

Below is my latest warning message. 

 

---------------------------------------------------------------------------------------------------------  

 

# ALTERA version supports only a single HDL 

# ** Error: (vsim-3039) E:/xxx/xxx/xxx/project/cyclone_5_pll_sim/vhdl/top.vhd(38): Instantiation of 'PLL_0002' failed. 

 

---------------------------------------------------------------------------------------------------------
0 Kudos
Altera_Forum
Honored Contributor II
1,594 Views

Hi! 

 

I have the same problem. Have you find a solution to this problem?
0 Kudos
Altera_Forum
Honored Contributor II
1,594 Views

Bump, 

 

Having the same problem trying to simulate pll with pll reconfig megafunctions. Have attached example project which when compiled and simulated with modelsim-altera getting the same issues. Attempted with Arriav device rather than Cyclonev and get the same issues.  

 

I am using quartus sub edition 13.1 with windows 7 64bit modelsim altera 10.1d 

 

Reading on the internet it seems like it might be a library issue in that some extra libraries need compiling (or just dont work!) but I havent been able to find anything that worked.  

 

I am completely stuck so hope someone else has some ideas!
0 Kudos
Altera_Forum
Honored Contributor II
1,594 Views

Hello Kurukuru,  

 

For your information I had a problem with Altera PLL on cyclone V E when I applied the last update on Quartus 13.1. I did not manage to simulate the PLL with modelsim so I removed the update and that's working now. I think you can write a Support Ticket on this topic. 

 

Regards,
0 Kudos
Altera_Forum
Honored Contributor II
1,594 Views

Got some feedback from Altera, you cant run VHDL only simulation with the free modelsim as the PLL models are Verilog only so you either need the licensed version of modelsim for multi language support or you have to simulate in verilog.

0 Kudos
Reply