The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Aug 15th, 2024, 11:22am
Pages: 1
Send Topic Print
Calculate INL DNL SNR by .measure command (Read 14277 times)
rehzad-zhao
New Member
*
Offline



Posts: 3
shenzhen china
Calculate INL DNL SNR by .measure command
Nov 28th, 2005, 10:23pm
 
hi,
Now I am designing an 10bits pipelineADC.
The .measure command In Hspice can make ADC digital
output to a text file.
How to edit .measure command  file to Matlab to calculate INL DNL SNR SFDR and more something?
Thinks
Back to top
 
 
View Profile   IP Logged
packiaraj
Junior Member
**
Offline



Posts: 28
India
Re: Calculate INL DNL SNR by .measure command
Reply #1 - Nov 29th, 2005, 3:09am
 
Hi,
   It should not be difficult if u know that Spectre-IC5141 comes with VerilogA models for measuring INL and DNL. I feel its bit difficult with .measure statement. In "ahdlLib" u can find "adc_dnl_8bit" and "adc_inl_8bit" Verilog A models that can write the INL and DNL values for Individual Codes of ur ADC. These models can be included in deck file as instances for calculating INL and DNL during simulation.

Thanks,
Packiaraj.V.
Back to top
 
 
View Profile   IP Logged
rehzad-zhao
New Member
*
Offline



Posts: 3
shenzhen china
Re: Calculate INL DNL SNR by .measure command
Reply #2 - Nov 30th, 2005, 2:32am
 
Thinks  Packiaraj.V.,but I know little about VSpectre-IC5141. I always use the eda tool Hspice.
Rehzad
Back to top
 
 
View Profile   IP Logged
ywguo
Community Fellow
*****
Offline



Posts: 943
Shanghai, PRC
Re: Calculate INL DNL SNR by .measure command
Reply #3 - Nov 30th, 2005, 6:22pm
 
Dear Zhao,

You could write a matlab program to calculate any parameters of the ADC after you record the output of the ADC.

Theoretically, you can record the output using .measure, .print and maybe other cards. Smiley


Best regards,
Yawei
Back to top
 
 
View Profile   IP Logged
rehzad-zhao
New Member
*
Offline



Posts: 3
shenzhen china
Re: Calculate INL DNL SNR by .measure command
Reply #4 - Dec 2nd, 2005, 2:33am
 
Thinks Yawei, I attempt to do it now. Could you provide some details about what you have said. Or give me some document about it. My email is:
rehzadzhao@yahoo.com

Best regards
zhao
Back to top
 
 
View Profile   IP Logged
jim
Junior Member
**
Offline



Posts: 14

Re: Calculate INL DNL SNR by .measure command
Reply #5 - Dec 28th, 2005, 5:39am
 
Dear Yawei ,

Could you please provide some details about how to record ADC digital output to a text file using .measure, .print and how to calculate INL DNL...using Matlab? My email is: fujj_2003@163.com

Thanks a lot!

Best Regards,

Jim
Back to top
 
 
View Profile   IP Logged
chuzi
Junior Member
**
Offline



Posts: 12
BeiJing China
Re: Calculate INL DNL SNR by .measure command
Reply #6 - Dec 28th, 2005, 11:34pm
 
Rehzad and Jim,
   I am just doing the same thing you do. My way is use .stim to collect data into a text file, then import to matlab, you can find .stim in hspice manual.
   hope it helps,
                                chuzi
Back to top
 
 
View Profile   IP Logged
jim
Junior Member
**
Offline



Posts: 14

Re: Calculate INL DNL SNR by .measure command
Reply #7 - Dec 29th, 2005, 2:28am
 
Hi chuzi,

Thanks for your reply, Could you please provide a example about using .stim to collect data into a text file for me? Thanks in advance.

Best Regards,

Jim
Back to top
 
 
View Profile   IP Logged
chuzi
Junior Member
**
Offline



Posts: 12
BeiJing China
Re: Calculate INL DNL SNR by .measure command
Reply #8 - Dec 29th, 2005, 5:07pm
 
Hi Jim,
   I use it in this way:
.stim tran VEC filename=SDADCtest.data ovar1=v(y1) ovar2=v(y2) ovar3=v(y3) from=10us to=1010us +npoints=20001
.tran 100p 1010us
VEC means vector, from=10us is circuits settle time, npoints=20001 is the FFT's NP, then I choose 16384 points from it.
   Hope it helps.
   Best regards.
   chuzi
Back to top
 
 
View Profile   IP Logged
jim
Junior Member
**
Offline



Posts: 14

Re: Calculate INL DNL SNR by .measure command
Reply #9 - Dec 29th, 2005, 6:29pm
 
Hi chuzi,

Thanks a lot for your help!

Best Regards,

Jim
Back to top
 
 
View Profile   IP Logged
jim
Junior Member
**
Offline



Posts: 14

Re: Calculate INL DNL SNR by .measure command
Reply #10 - Feb 25th, 2006, 2:58am
 
Hi chuzi,

I use the method which you mention above, but Hspice didn't produce .data file.

BTW, is the .data file Binary code file?

Thanks in advance.

Best Regards,

Jim
Back to top
 
 
View Profile   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.