The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 8th, 2024, 12:49am
Pages: 1
Send Topic Print
Is this a bug of Ken's vco vams model? (Read 2890 times)
greatqs
Junior Member
**
Offline



Posts: 11

Is this a bug of Ken's vco vams model?
Oct 23rd, 2006, 7:37am
 
I've download the verilog-a model of vco on designers-guide.
http://www.designers-guide.org/VerilogAMS/functional-blocks/vco/vco.va
http://www.designers-guide.org/VerilogAMS/functional-blocks/vco/vco.scs

I changed some vco parameter in spectre netlist (vco.scs)
for VCO1 in vco.va file
I specify vmin=0 vmax=3.3 fmin=1 fmax=2e9
and after I run the transient simulation, I found strange result during the frequency ramping process.
as shown below
when the input voltage is large than zero, vco starts to oscillator as voltage increase as expected.
but at some time, the vco seems to stop for a while (the gap). I don't know where comes this problem, but it does bring mistakes in my pll's lockin process.

Also the verilog-a vco model intends to let real variable 'phase' (also ploted in the snapshot) integral and modulos between -pi and +pi.
But the envelop of phase's waveform said it is not.  

can anyone help me out? thanks in advance!
Back to top
 

vco-1.jpg
View Profile   IP Logged
greatqs
Junior Member
**
Offline



Posts: 11

Re: Is this a bug of Ken's vco vams model?
Reply #1 - Oct 23rd, 2006, 7:38am
 
I zoom out the snapshot for detial.
Back to top
 

vco-2.jpg
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Is this a bug of Ken's vco vams model?
Reply #2 - Oct 23rd, 2006, 9:03am
 
You probably need to add a $bound_step() function to assure the simulator does not try to step over a compete cycle. I have updated the model to include it. Why don't you try downloading the latest version and trying again.

The fact that the phase does not appear to cover its full range is not a problem. It is just an artifact of the waveform being output at discrete time points.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.