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

For better simulation performance what mode of ALTPLL is recommended?

Altera_Forum
Honored Contributor II
1,789 Views

Hello, 

 

 

I am working on a FPGA as functional verification engineer. We are using ALTPLL in our simulation and it is currently using more than 60% of simulator resources (altera_mf.v). Do you generally black box ALTPLL during functional verification? or Do you put it in bypass mode? Or you use it in active mode? This is the user's guide of PLL that we are using.  

https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/ug/ug_altpll.pdf 

 

I am planning to blackbox PLL for functional simulation. I thought I'd check with you first and see what is the common approach in FPGA simulation regarding PLL.  

 

a) Do folks generally run simulation with PLL model? 

b) Do they generally put PLL in bypass mode? And in some occasion like weekend runs, use active pll model? 

c) Do they blackbox PLL model? 

d) Is there any value to run all the simulation with active PLL model and spending so much of simulation cycle? 

 

any advice is highly appreciated. 

 

Regards, 

amir
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
876 Views

a) no 

b) no 

c) no 

d) no 

 

I just dont simulate the PLL at all. I just use modelled clocks at the top level. For functional verification, you dont really care what the clock speed is - its the number of clocks thats important. Just do something like this in your testbench: 

 

always# 5 clk = ~clk;  

 

and do the same for any other clocks with roughly the correct timing relationships. I chose 100Mhz because it's then easier to measure the number of clocks between two cursors on a wave window. 

 

I trust the PLL to work.
0 Kudos
Altera_Forum
Honored Contributor II
876 Views

thank you very much for your reply.

0 Kudos
Altera_Forum
Honored Contributor II
876 Views

The only time you would want to simulate the PLL is if your code manipulates or re-configures it and you want to test that feature. If you just have the PLL set to generate a fixed set of clocks, write some code in your testbench to provide them in place of the PLL simulation.

0 Kudos
Altera_Forum
Honored Contributor II
876 Views

Thx for your input. I understand the point and I plan to use some simple verilog code to create clock. How would I disable the PLL in altera_fm.v file? any specific inputs that I need to tie to 0/1 to disable ALTPLL?

0 Kudos
Altera_Forum
Honored Contributor II
876 Views

Keep things simple and just don't instantiate the ALTPLL in your simulation model; substitute it wholesale with your generated clocks.

0 Kudos
Altera_Forum
Honored Contributor II
876 Views

great point :). thx.

0 Kudos
Reply