• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. spectrumMeas function

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 16389
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

spectrumMeas function

The Setlaz
The Setlaz over 12 years ago

Hi,

 

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 )
=> o_spectrumWaveform/g_value/nil

 

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,

Damien

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Damien,

    spectrumMeas is also documented in IC616 (in cdnshelp). If there's an issue with the documentation, please log a service request with customer support so that it can be corrected.

    Thanks,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Damien,

    spectrumMeas is also documented in IC616 (in cdnshelp). If there's an issue with the documentation, please log a service request with customer support so that it can be corrected.

    Thanks,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information