Altera Forum






Threads: 18,921
Posts: 77,325
Members: 29,164
Welcome to our newest member, rbn
User
Reputation
9135
7620
5891
4150
2930
2197
2056
1706
1388
1300




 
Register
Quick Search
 
  Altera Forums > Device and Tools Related > FPGA, Hardcopy, and CPLD Discussion

Why is my PLL losing lock after i reconfigure it?

Reply
 
Thread Tools Display Modes
  #1  
Old March 19th, 2007, 04:32 PM
Moneyball's Avatar
Moneyball Moneyball is offline
Altera Scholar
 
Join Date: Feb 2007
Posts: 31
Rep Power: 1510
Moneyball is pretty smartMoneyball is pretty smartMoneyball is pretty smartMoneyball is pretty smart
Default Why is my PLL losing lock after i reconfigure it?

I was doing a PLL reconfiguration and changing only my M counter from 3 to 6. Every time I did it, my PLL would lose lock. Couldn't figure out why but after some digging I found the answer. Any time you change something that is part of the loop (N, M, Icp, R, C) you could lose lock. You're basically breaking the loop when you change one of those parameters, so the PLL may lose lock. If you change an output counter (C) or just change your phase shift, you won't lose lock since you're not messing with the loop. This is not very intuitive, so I thought I'd pass it along.

Last edited by Moneyball : March 19th, 2007 at 04:43 PM.
Reply With Quote
  #2  
Old November 29th, 2007, 01:47 AM
scsi scsi is offline
Altera Scholar
 
Join Date: Jun 2007
Posts: 21
Rep Power: 1196
scsi is on a distinguished road
Default Re: Why is my PLL losing lock after i reconfigure it?

Yes.
You should assert arest to relock it.
Reply With Quote
  #3  
Old December 3rd, 2007, 04:04 PM
std_logic std_logic is offline
Altera Teacher
 
Join Date: Sep 2007
Posts: 110
Rep Power: 1350
std_logic is pretty smartstd_logic is pretty smartstd_logic is pretty smartstd_logic is pretty smartstd_logic is pretty smart
Default Re: Why is my PLL losing lock after i reconfigure it?

I have spent a lot of time on this. Its also worth noting you can only change the post scale counters once without losing lock, if you change them again you have to apply a reset
Reply With Quote
  #4  
Old January 1st, 2008, 11:23 PM
cheuk's Avatar
cheuk cheuk is offline
Altera Pupil
 
Join Date: Mar 2007
Posts: 15
Rep Power: 1278
cheuk is on a distinguished road
Send a message via Yahoo to cheuk
Default Re: Why is my PLL losing lock after i reconfigure it?

Hello MoneyBall ,

I had similar problem before
Are you using the ALTPLL_RECONFIG mega function ?
If yes , then you have to generate a mif file for the ALTPLL
And also you have to generate a mif file for the ALTPLL_RECONFIG

I missed the mif file for ALTPLL_RECONFIG
And the reconfiguration process failed

Regards ,
Samson
Reply With Quote
  #5  
Old January 1st, 2008, 11:27 PM
cheuk's Avatar
cheuk cheuk is offline
Altera Pupil
 
Join Date: Mar 2007
Posts: 15
Rep Power: 1278
cheuk is on a distinguished road
Send a message via Yahoo to cheuk
Default Re: Why is my PLL losing lock after i reconfigure it?

Hello All ,

Actually , reset is not requried for the PLL reconfiguration
If a reset is asserted , all the settings of reconfiguration will be lost

For example , in the mif file , the initial phase of the PLL is 0
After the reconfiguration , the phase is increased by one
If a reset is asserted , the Phase of PLL will return to 0 , instead of the value that user has set

I have verified it on the Silicon Device

Regards ,
Samson
Reply With Quote
  #6  
Old January 30th, 2008, 11:03 AM
engineereeyore's Avatar
engineereeyore engineereeyore is offline
Altera Pupil
 
Join Date: Jan 2008
Location: Albuquerque, NM
Posts: 5
Rep Power: 954
engineereeyore is on a distinguished road
Default Re: Why is my PLL losing lock after i reconfigure it?

Quote:
Originally Posted by cheuk View Post
Hello All ,

Actually , reset is not requried for the PLL reconfiguration
If a reset is asserted , all the settings of reconfiguration will be lost

For example , in the mif file , the initial phase of the PLL is 0
After the reconfiguration , the phase is increased by one
If a reset is asserted , the Phase of PLL will return to 0 , instead of the value that user has set

I have verified it on the Silicon Device

Regards ,
Samson
So how did you get the PLL to reacquire a lock? I've got a design that forces me to change the N value on occasion, and I can't get it to reacquire the clock. I've tried asserting reset and areset, with neither having any effect. I've run out the timing simulation to 100us, with it losing lock around 3us. It reacquires the lock if I run a functional simulation, but not if I run a timing simulation.

BTW, I'm using Quartus 6.0SP1 and a Stratix II device.
Reply With Quote
  #7  
Old January 30th, 2008, 12:54 PM
std_logic std_logic is offline
Altera Teacher
 
Join Date: Sep 2007
Posts: 110
Rep Power: 1350
std_logic is pretty smartstd_logic is pretty smartstd_logic is pretty smartstd_logic is pretty smartstd_logic is pretty smart
Default Re: Why is my PLL losing lock after i reconfigure it?

PLL Reset is not required for phase increments. It is however required for other PLL settings, M, N etc.
Reply With Quote
  #8  
Old January 30th, 2008, 01:12 PM
engineereeyore's Avatar
engineereeyore engineereeyore is offline
Altera Pupil
 
Join Date: Jan 2008
Location: Albuquerque, NM
Posts: 5
Rep Power: 954
engineereeyore is on a distinguished road
Default Re: Why is my PLL losing lock after i reconfigure it?

Quote:
Originally Posted by std_logic View Post
PLL Reset is not required for phase increments. It is however required for other PLL settings, M, N etc.
Yeah, everything work fine for post-scale counter manipulation (not implementing phase increments). Its just the changing of the N value that's giving me grief. I know it'll kill the lock, I just can't get it to lock again afterwards. I've tried resetting it, for as long as 1,000 clock cycles. Still doesn't lock again. I've tried decreasing the input frequency, I've tried all kinds of things. I just can't get it to re-lock. But this is only on timing simulation. Functional simulation it re-locks real quickly. But it just won't on timing simulation, and I can't figure out why.
Reply With Quote
  #9  
Old January 30th, 2008, 01:17 PM
std_logic std_logic is offline
Altera Teacher
 
Join Date: Sep 2007
Posts: 110
Rep Power: 1350
std_logic is pretty smartstd_logic is pretty smartstd_logic is pretty smartstd_logic is pretty smartstd_logic is pretty smart
Default Re: Why is my PLL losing lock after i reconfigure it?

Might be a fault in the model. I'll try it later this week.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to reconfigure the device Nagaraj Quartus II and EDA Tools Discussion 2 September 1st, 2009 05:45 AM
PCI Express compiler losing lock on FPGA + simulation baver IP Discussion 2 July 19th, 2009 09:45 AM
Logic lock sylvest General Altera Discussion 11 November 22nd, 2008 09:04 AM
Cyclone II - losing configuration after power off klombi FPGA, Hardcopy, and CPLD Discussion 5 September 12th, 2007 10:03 PM
PLL Lock range surfsup FPGA, Hardcopy, and CPLD Discussion 1 March 21st, 2007 03:24 PM


All times are GMT -8. The time now is 02:42 PM.