The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 25th, 2024, 12:33pm
Pages: 1
Send Topic Print
Characterization of time-based circuit PFD/TDC (Read 2157 times)
deba
Community Member
***
Offline



Posts: 84

Characterization of time-based circuit PFD/TDC
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
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Characterization of time-based circuit PFD/TDC
Reply #1 - 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
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.