The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Modeling >> Behavioral Models >> Characterization of time-based circuit PFD/TDC
https://designers-guide.org/forum/YaBB.pl?num=1489498594

Message started by deba on Mar 14th, 2017, 6:36am

Title: Characterization of time-based circuit PFD/TDC
Post by deba on Mar 14th, 2017, 6:36am

Hi,

For characterizing the dynamic non-linearity of PFD or TDC(so as to calculate SNDR, HD etc), how does one generate two phase shifted signal such that the delay between them varies in a sinusoidal manner. I want to create a verilog-A model for doing this.

Thanks

Title: Re: Characterization of time-based circuit PFD/TDC
Post by Ken Kundert on Mar 14th, 2017, 9:06am

Perhaps something like this ...


Code:
module gen(out1, out2)
parameter real tclk=1u from (0:inf);
parameter real freq=1k from (0:inf);
parameter real deltat=500n from (0:tclk);
parameter real tt=10n from (0:inf);
parameter real vout=1;
real o1;

analog begin
   @(timer(0, tclk/2)) begin
       if (o1 > vout/2)
           o1 = 0;
       else
           o1 = vout
   end
   V(out1) <+ transition(o1, 0, tt);
   V(out2) <+ transition(o1, tclk + deltat*sin(6.14*freq*$abstime), tt);
end
endmodule    

I have not actually tried it, but it should be close.

-Ken

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.