I'm running Cadence 6.15.162 and I use VIVA to evaluate DAC dynamic performances with the Spectrum Assistant.
It's all fine using the GUI, but I would like to write an OCEAN scripts... But when I use spectrum() function, it says :
*WARNING* The spectrum function is deprecated. Instead, use the spectrumMeas function
Fine... Let's look at the OCEAN Reference Manual... but nothing about spectrumMeas()
Fortunately, I found on the Online Support it is slightly documented in VIVA manual, from which I (partly) reconstruct the following function prototype :
spectrumMeas( o_waveform t_startTime t_stopTime x_numSamples x_noiseBins n_startFreq n_endFreq
t_windowName n_adcSpan t_measType )
Here is what suggest an error :
*Error* _spectrumMethod: can't handle _spectrumMethod("foo" nil nil nil nil "Rectangular" 0 nil nil nil)
Obviously, my prototype is not entirely correct (the argument do not seem to be in the right order)
By the way, I'm still missing Signal bins, Peak Sat. Level, Harmonics, Analysis type which are available in the Spectrum Assitant form in VIVA.
Also, the small amount of documentation about spectrumMeas() that is returned when I intentionally write the function with an error says :
*Error* The specified spectrum measurement type nil is incorrect.
Specify one of the following measurement types: sinad,
sfdr(db), snhr, enob.
It turns out that "thd" seems to be a valid argument as well. On the other hand, in OCEAN manual, there was an example with "all" which is no longer available.
Is it possible to get thd(db) ? What about all the other measurements displayed in the Spectrum Assistant ? (Signal Powerm DC Power, Noise Floor/Bin, Noise Floor/rtHw, Total Harmonic Power, Peak Harmonic Power)
Is it possible to get up-to-date documentation on this function ?
Thanks a lot,