• 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. Ocean/Spectre measurement question

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 1907
  • 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

Ocean/Spectre measurement question

Octavian
Octavian over 10 years ago

Hello,

I'm trying to setup an ocean expression for measuring the delay between two events. I want something like "measure the delay between when clock goes high and when output crosses a threshold (i.e. 50mV) ". In hspice I would use the trig-targ construct but I could not find something similar for ocean/spectre.

I tried using the cross function but that starts counting events at the beginning of the simulation and gets tripped by glitches which occur before the clock edge. I guess I'm looking for a way to delay the start of the search until the clock signal has toggled. Is there something like this available?

Thanks,

--Tavi 

  • Cancel
  • skillUser
    skillUser over 10 years ago

    Hi Tavi,

    I think that you can use something like the clip function to restrict the input between a certain time, and then you can apply the cross function to the output.

    Hopefully this is what you were looking for?

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 10 years ago

    Hi Tavi,

    Just to add to Lawrence's good answer, you might want to use the cross function in combination with the clip function. Since you are looking to start your measurement after a clock has started, you could clip the waveform you want to measure starting at the N'th crossing of your clock (N is the threshold crossing you want to start looking at the waveform to measure). The resulting expression might look like the following with the two waveforms called "clockin" and "output_wave", a simulation stop time of TSTOP, and a switching threshold of "vthreshold".

    cross(clip( output_wave cross( clockin vthreshold N 'rising) TSTOP) vthreshold 1 'rising)

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Octavian
    Octavian over 10 years ago

    Thanks everybody. This answers my question.

    • 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