I was wondering if there are any ways to calculate DNL of a DAC in Cadene without SKILL scripting or moving data to MATLAB.
The "DNL" function in the calculator seems hard to be used and haven't been successful to use. I have also tried to use vector subtraction that didn't work as well (subtract dac output value at "i+1" and "i")
I was just wondering if there is a simple way to find the DNL in cadence.
It would be helpful to share what you tried that didn't work when you tried the dnl() function in the the waveform calculator. Per the manual (Virtuoso Visualization and Analysis XL User Guide, Calculator Functions, Special Functions, dnl), the calculation is pretty much what you have said. dnl[k (or maybe k+1)] = (sig[k] - sig[k-1])/ideal_step - 1. Part of the trick in using this function is how to specify the time points. Make sure you read that part carefully. You either have to supply the sampling interval, a list of time points, or a clock waveform whose edges define the sampling points to the function. In addition, you need for your simulation to step the DAC through its codes.
Thanks for your reply!
The clock period and pulse width are 8u and 4u, respectively. So I set the "Sampling signal/list/step" to 8u. The result doesn't seem to be correct to me. Is there anything that I am missing?
Waveform--v("/out" ?result "tran") Sampling signal/list/step--8e-06 Cross Type--rising mode--auto Threshold--0.0 Delay--4.0e-06 Method--end Unit--abs No. of Samples--256