• 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 16387
  • 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
  • The Setlaz
    The Setlaz over 12 years ago

    Alright, I just found Ocean Reference Manual 6.1.6 released in May 2013 on the Online Support with the function spectrumMeasurement() which seems to work fine with Cadence 6.1.5.162 and which completely corresponds to what I was looking for in my initial post.

     

    Though, I'd like to point out a difference in the implementation of the function compared to the given prototype for 6.1.6 :

    The prototype given in Ocean Reference 6.1.6 states :

    g_isNoiseAnalysis Boolean that specifies whether the analysis type is Signal
    Analysis or Noise Analysis.

    Fact is the function does not expect a boolean argument and returns :
    *Error* _drSpecMeas: argument #11 should be an integer (type template = "ggnnnnnxSnxxS") - nil

    I have to specify '0' for "nil"

     

    Thanks,
    Damien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • jshi
    jshi over 11 years ago
    Hi Andrew: I am also looking for setting up spectrumMeas properly. can you pls post an example here? searched cadence.com site, there is no avail. Thanks JF
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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