Home > Community > Forums > Custom IC Design > spectrumMeas function

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 spectrumMeas function 

Last post Thu, Feb 27 2014 3:46 PM by jshi. 3 replies.
Started by The Setlaz 27 May 2013 08:59 AM. Topic has 3 replies and 1473 views
Page 1 of 1 (4 items)
Sort Posts:
  • Mon, May 27 2013 8:59 AM

    • The Setlaz
    • Top 500 Contributor
    • Joined on Wed, Dec 5 2012
    • Saggart, Dublin
    • Posts 36
    • Points 520
    spectrumMeas function Reply

    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

    • Post Points: 5
  • Mon, May 27 2013 10:04 AM

    • The Setlaz
    • Top 500 Contributor
    • Joined on Wed, Dec 5 2012
    • Saggart, Dublin
    • Posts 36
    • Points 520
    Re: spectrumMeas function Reply

    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

    • Post Points: 20
  • Tue, May 28 2013 7:17 AM

    Re: spectrumMeas function Reply

    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.

    • Post Points: 20
  • Thu, Feb 27 2014 3:46 PM

    • jshi
    • Not Ranked
    • Joined on Tue, Jul 22 2008
    • Posts 2
    • Points 10
    Re: spectrumMeas function Reply
    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
    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by The Setlaz at 27 May 2013 08:59 AM. Topic has 3 replies.