The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 16th, 2024, 4:16am
Pages: 1
Send Topic Print
PFD verilog-A model question (Read 3599 times)
sch
Junior Member
**
Offline



Posts: 18

PFD verilog-A model question
Jun 23rd, 2009, 2:10am
 
Hi,ALL
I did not understand why the following verilog-A PFD of PLL can be described so simply.

integer state;
analog begin
@(cross(v(ref),+1,tttol) begin
    if(state>-1) state=state-1;
  end

@(cross(V(vco),+1,ttol) begin
   if(state < 1) state=state+1;
  end
I(out) <+ transition(Iout*state,0,tt)
end

Q 1 :  what is the initial number of state?
Q2 : in ref ,why stste>-1 then stste=state-1
      in vco ,why state<1  then state=state+1
sch


Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: PFD verilog-A model question
Reply #1 - Jun 24th, 2009, 10:52am
 
A1. In Verilog-A, all variables start at 0.
A2. Then state=-1,0, or 1, and the current output is ±Iout or zero.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
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.