... how many samples do i need to input ...
I think JoannesPaulus is right. See this Maxim Application Note:you actually need many more than 2^12... I would guess in the order of 500ksamples..
If you have access to a farm of computers you can run the simulations in parallel, this will break down the runtime down to weeks or even days.... your suggestion for taking ~0.5M semples will take me months...
have any idea how to do it ??
@erikl: the method you mention is totally new to me and could potentially cut simulation time by a huge amount. Do you have any reference I could use to learn how to choose the number of sine waves wrt the number of bits, for instance (your choice of 8 seems somewhat arbitrary).
I just used the method suggested by this **broken link removed**, s. only the short paragraph "Generic Setup for Testing Static INL and DNL" (p. 3). For the high-accuracy DAC, an ideal DAC (functional/behavioral) can be used.erik:it sounds interensing but as JoannesPaulus wrote, what is the method to choose the number of sin waves ? another thing is if i choose 8 sin waves (with FS=2V) the total number of samples (for a 12 bit ADC) will be 2^(12+3)~33k samples. ??
I am referring to the output of the ADC, of course. From the dft you can get, SNR, SNDR, THD, SFDR (somewhat representing your INL). In this case, if you choose your input frequency correctly (i.e. use coherent sampling), you need fewer samples to get a rather accurate estimate of the performance of your design.JoannesPaulus: what information can i get from the dft of the output? what output are you talking about? because i'm runinng the comparator and simply get a digital signal that is change. are you referring to this? what are you meant in "looking at the error of the modulo-time plot"?
I am referring to the output of the ADC, of course. From the dft you can get, SNR, SNDR, THD, SFDR (somewhat representing your INL). In this case, if you choose your input frequency correctly (i.e. use coherent sampling), you need fewer samples to get a rather accurate estimate of the performance of your design.
If you have access to a farm of computers you can run the simulations in parallel, this will break down the runtime down to weeks or even days.
Otherwise you could run the DNL/INL analysis in time domain mode: Simulate (say) 2³=8 full scale sine waves with about 2^n samples per sine wave length (it is important that the sample and the sine frequencies be mutually prime). By this you need to simulate just 2^(n+3) samples, and you'll receive results which will give you quite a good idea about the DNL/INL behavior vs. code, s. the picture below:
View attachment 49770
No script, sorry! This has all be done manually within SPECTRE's ADE and its calculator - years ago. But it's easy: just plot the DNL results (ADC-output re-converted by an ideal DAC into an analog value - ADC-input) vs. transient sim. time.is there's a chance you can send me the script for your INL/DNL (the one you created the figures you attached..)??
No script, sorry! This has all be done manually within SPECTRE's ADE and its calculator - years ago. But it's easy: just plot the DNL results (ADC-output re-converted by an ideal DAC into an analog value - ADC-input) vs. transient sim. time.
Yes, once you have designed the ADC, you will need to run simulations using sine waves. Of course, for a dual-slope ADC you can make sure that the comparator is good enough checking the offset, accuracy and so forth but you must still simulate the effect of all the other components (current sources, capacitors, reset circuit...). In order to correctly simulate the SNR, I suggest you choose a frequency (f) with the following formula: f=D*fs/2^N, where D is a suitable odd number, fs is the sampling frequency and 2^N is the number of samples.what do you mean "choose the input frequency correctly"? do you mean that i need to insert a periodic signal to the input (like a sin wave??). i'm asking that because in my simulations i'm runing only the comparator (the input signal is like a DC, i.e. after S&H). can you explain to me (if you can a step-by-step) how to find the dynamic parameters and to do thoes dynamic testing.
yes.regarding to the DNL/INL test. i'm sampling ~40k sampling (i have 3000 steps~11.5 bit), so my resolution is ~15.2 bit. what i need to do with this data-base in order to get to the DNL? do i just transfer it to matlab and process the matlab script attached before??
You should search for Boris Murmann web site. He has a matlab code that generates the DNL/INL plots.is there's a chance you can send me the script for your INL/DNL (the one you created the figures you attached..)??
See my answer above.what is the input for the ADC to find the dynamic parameters? what im asking is what input should i use to the ADC (sin wave? in what freq? a ramp? or simply a DC?) and how much samples do i need?
Use an ideal 12bit DAC with FS=4096×670µV=2.74Vmy problem is because my ADC has ~3000 steps (with FS=2V--> ~670uV for each step) how can i do an ideal DAC that does 3000 steps (~11.55 bits).
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?