how to calculate dnl/inl for SAR ADC?

Status
Not open for further replies.

abhisek.dey007

Newbie level 4
Joined
Mar 17, 2010
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,320
Hi,
I have designed a 12 bit SAR ADC in cadence. Can anyone plz guide me how to get the dnl/inl of the ADC by exporting the data to matlab? My queries are-

1) Plz help me get a gud .m file for the purpose.
2) I have done the transient simulation of the SAR ADC putting an ideal DAC at the end of this. I've saved the data(including the input ramp data) in tabular form in .csv file. Is that okay?
3) How to use this .csv file to run the matlab code for dnl/inl calculation?
 

Joannes

thnx for the matlab code. can u tell me how i feed that .csv file data in to this code?

one more thing,wat's the meaning of this part?
error('must specify ADC output')
 

The .csv format is not easily read by matlab. You will need to edit the file, remove the first line and replace the comma that separates the time and data with a space or a tab. At this point you can use the load function in matlab (type help load for its syntax). Play around...
abhisek.dey007 said:
one more thing,wat's the meaning of this part?
error('must specify ADC output')
If the input variable is not supplied the program cannot proceed and shows an error.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…