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

Problem with dynamic PLL reconfiguration

Altera_Forum
Honored Contributor II
1,563 Views

I am working on a project which involves dynamically configuring PLL to different frequencies. 

I have written a VHDL code for my requirement, however I am facing some circumstances in simulation which I am not able to comprehend. 

When I give a reset to the PLL I expect clock to be 0 and locked signal to be 0 immediately. 

However I find that lock signal doesnt reset at all. 

This would affect my design as out of range clocks might get into my logic and system might just crash. 

 

I have attached simulation snapshot. 

 

Please help.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
527 Views

What does resetn_sig refer to in your design? Seems like this signal is not valid in the simulation.

0 Kudos
Altera_Forum
Honored Contributor II
527 Views

Hi Nic, 

 

In the snapshot above rst_usr is the signal that is input as reset to PLL.  

For better clarity I have attached another snapshot with pll rst, lock and pll output clock coloured in yellow. 

Note that lock is not getting low even after reset is asserted.
0 Kudos
Reply