• 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. Display two area of a tran sim simultaneously?

Stats

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

Display two area of a tran sim simultaneously?

kenc184
kenc184 over 3 years ago

Supposing one is interested in looking at a signal at two disparate areas of a transient sim, such as an output on both a rising and falling edge of a stimulus signal.

Is it possible to have VIva display these two simultaneously?  For example, in a 2ms transient sim, to display 499us to 501us AND 1499us to 1501us with nothing in between?

If not, is it possible to open two viva windows, each displaying the above simulation times, and have both updated on every sim?

  • Cancel
  • ShawnLogan
    ShawnLogan over 3 years ago

    Dear kenc184,

    kenc184 said:
    Is it possible to have VIva display these two simultaneously?  For example, in a 2ms transient sim, to display 499us to 501us AND 1499us to 1501us with nothing in between?

    If I understood your question correctly, one possible method is outlined in the note at URL:

    https://www.dropbox.com/s/wlileo6ad1hy2ai/mutliple_views_of_waveform_in_viva_sml_082922v1p0.pdf?dl=0

    I only had time to outline this as a possibility and hope it is of some help. I've attached a text version of the short ocean script documented in the note. To use it as a model for you, load your simulation results and open your waveform of interest using, for example, the getData() command.

    Shawn

    Fullscreen plot_commands.txt Download
    newWindow()
    nand_out_p_norm = nand_out_p/vdda
    
    window_size = 0.20n
    center_time_1 = 0.50n
    center_time_2 = 2.250n
    
    sprintf(nand_out_p_1_label "nand_out_p about %.2f ns" center_time_1/1e-09)
    sprintf(nand_out_p_2_label "nand_out_p about %.2f ns" center_time_2/1e-09)
    
    nand_out_p_norm_clipped_1 = clip(nand_out_p_norm (center_time_1 - 0.50*window_size) (center_time_1 + 0.50*window_size))
    nand_out_p_norm_clipped_2 = clip(nand_out_p_norm (center_time_2 - 0.50*window_size) (center_time_2 + 0.50*window_size))
    
    sprintf( title_string2 "Example of Viewing Two Windowed Time Regions of a Waveform:  %.2f ns to %.2f ns and %.2f ns to %0.2f ns" (center_time_1 - 0.50*window_size)/1e-09 (center_time_1 + 0.50*window_size)/1e-09 (center_time_2 - 0.50*window_size)/1e-09 (center_time_2 + 0.50*window_size)/1e-09)
    
    awvPlotWaveform(currentWindow() list(nand_out_p_norm_clipped_1 lshift(nand_out_p_norm_clipped_2 (center_time_2 - center_time_1 + window_size))) ?expr list(nand_out_p_1_label nand_out_p_2_label) ?color list("y2" "y1") ?stripNumber list(1 1) ?yaxisLabel list("V" "V") )
    
    window = awvGetCurrentWindow()
    numMajDiv_x = 10
    awvSetXAxisMajorDivisions(window numMajDiv_x)
    numMajDiv_y = 10
    awvSetYAxisMajorDivisions(window 1 numMajDiv_y ?stripNumber 1)
    awvDisplaySubwindowTitle( awvGetCurrentWindow() title_string2 )
    awvSetOptionValue( "dateStamp" nil )
    
    
    

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

    Or if using ADE you could just have two output expressions with:

    clip(VT("/someSig") 499u 501u)
    clip(VT("/someSig") 1499u 1501u)

    That seems a little simpler...

    Andrew

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

    Dear Andrew,

    Thank you for your comment! Your solution is indeed simpler. I was trying to make the process of creating a plot a bit more general with variables for a window size and two time regions about which the window is applied. I was not sure how general a solution kenc184 was looking to find.

    Nevertheless, thank your reading my comment and proposing a "simpler" alternative!

    Shawn

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

    Thank you both Shawn and Andrew. You are very helpful, and so much faster than opening a support ticket!

    • 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