• 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. How to plot temperature vs time in Viva?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 9497
  • 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

How to plot temperature vs time in Viva?

StephanWeber
StephanWeber over 3 years ago

Hi,

I am using veriloga and cds_set_temperature to make T varying vs time. I could plot the internal variable to get T = f(t), but I wonder if there is a more direct way? I am using icavd 20.1.500.22 and spectre 21.1.0.246.isr4.

Bye Stephan

  • Cancel
Parents
  • ShawnLogan
    ShawnLogan over 3 years ago

    Dear Stephan,

    My thought may be obvious to you, and if it is, please accept my apology in advance!

    However, the conventional method to provide the temperature as an output for plotting in ViVA involves either including a file containing the following:

    save temp

    and then including this file in the netlist. Alternately, you may accomplish the same thing graphically by:

    1. Place an unconnected wire in your schematic and set its name to "temp"

    2. Add node "temp" as an output to be saved

    Either of these will save the temperature as an output that can be plotted. As an example, I used the latter methodology and performed a transient simulation where I used temp as a dynamic parameter to vary its value with time. The example and setup instructions are contained in the note at URL:

    www.dropbox.com/.../saving_temp_vs_time_example_081822v1p0.pdf

    I hope this was not obvious to you and, perhaps, provides some insight Stephan!

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephanWeber
    StephanWeber over 3 years ago in reply to ShawnLogan

    Looks cool, but is there also a solution for simple AC or DC simulation? I can't see temperature in Results Browser.

    Bye Stephan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to StephanWeber

    How would that help for AC or DC simulation anyway? The temperature won't change during AC or DC unless you sweep temperature, in which case it's the xval() of any output.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to StephanWeber

    How would that help for AC or DC simulation anyway? The temperature won't change during AC or DC unless you sweep temperature, in which case it's the xval() of any output.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • StephanWeber
    StephanWeber over 3 years ago in reply to Andrew Beckett

    Cool hint. In the mean time I made a little veriloga module:

    `include "constants.vams"
    `include "disciplines.vams"

    // may show little glitches, might be a Spectre bug?
    // In DC: showing only Tj from simulator
    // In Tran: Showing dynamic T

    // Test for static Tj simulation: ok
    // Test for Tj as dynamic parameter: not tested
    // Test for Tj set by cds_set_temperature: works basically, but short glitches possible!

    module Tmonitor(t); // in should represent T in Celsius

    input t;
    electrical t;

    real temper=0;

    analog begin

    //@initial_step V(t) <+ $temperature-273.15;

      temper = $temperature-273.15; // function itself is in Kelvin
      V(t) <+ temper;
     
    end

    endmodule

    • 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