Product Documentation
Virtuoso ADE Explorer User Guide
Product Version IC23.1, November 2023

10


Real-Time Tuning in Simulations

The Real-Time Tuning (RTT) assistant in ADE Explorer helps you edit the values of variables and parameters and the simulation results are dynamically updated to reflect the changes that have been made. In this mode, you can run the simulation once and fine-tune your results later by changing the variable values and simultaneously viewing the updated results. The output waveforms are displayed in the Virtuoso Visualization and Analysis XL graph window that can also open up as an assistant in ADE Explorer and displayed to the right of the ADE Explorer or design window. The output waveforms are updated as soon as you change the parameter values in the RTT assistant. You can also change the plotting mode to control the display of waveforms or compare waveforms generated after changing variable and parameter values. The available plotting modes are append, replace, new window, and new subwindow.

Real Time tuning does not support string parameters.

This section covers the following topics:

Opening the Real-Time Tuning Assistant

The Real-Time Tuning pane opens as a dockable assistant in schematic and Explorer. By default, when you launch this assistant, it is displayed on the schematic tab. You can click the maestro tab to view this assistant in ADE Explorer.

You can open the RTT assistant through one of the following ways:

You cannot tune the design using the Real Time Tuning assistant when the design variable includes cyclic dependency; for example, a=1, b=a+c, and c=a+b.

In addition, the specifications are not evaluated when you are in the RTT mode.

For more information about how to work with the RTT mode, see the next sections.

RTT Graphical User-Interface

The below figure demonstrates the RTT graphical user-interface and its main elements:

Working with the RTT Assistant

Consider the setup shown in the figure below in which you define the AC and DC analyses, four design variables and four parameters:

Now, open the Real Time Tuning assistant using the steps explained in the Opening the Real-Time Tuning Assistant section. The schematic view appears and Real Time Tuning assistant is displayed with the following values:

The Tuning menu also appears when the Real Time Tuning assistant is displayed. This menu includes the following commands:

In the Real Time Tuning assistant, perform the following steps to tune the design and view the updated waveforms instantly in the graph window:

  1. Click the Play button to put the simulator into listening mode, which means RTT is ready to action according to the design and parameter values you change. When the play button is clicked, an animated spinner appears on this button, which indicates the progress of the simulation run. In addition, the status is also displayed in the status bar at the bottom, indicating the simulation stages, such as simulating, plotting and so on.
    When RTT is opened for the first time, clicking this button first runs the simulation on the values defined in the Setup and plots the results in the graph window.
    When the simulator is in listening mode and you perform some changes in the design, if you change the variable and parameter values in RTT assistant, the simulation will now run on the updated design.
    When the simulation is complete, the button icon is changed to a pause button .
  2. In the next step, update the design variables and parameters values through one of the following ways:
    • Use the slider bars available for each variable and parameter, which appear when you hover mouse pointer over a value. These bars display the minimum and maximum range values that can be specified for the selected variable. You can drag the slider in between these values and when you drop, the value of the selected variable is updated. To change the range values, double-click the displayed value and type a new value. By default, the slider bar for only selected variable or parameter appears. To display all the slider bars, set the following .cdsenv variable to t:
      envSetVal("maestro.rtt" "sliderOnMouseOver" 'boolean "nil")
    • Double-click the value displayed for the selected design variable or parameter and type the new value. You can also type a value greater than the maximum range displayed on the slider bar. The new value is displayed with red background as shown in the figure below. If this specified value is valid, the simulation runs successfully.
    The values that you change are displayed in bold and the unchanged values are displayed in italics. This makes convenient to distinguish between the new and old values.
    After changing the value for a parameter or a design variable, if you want to change the value with the one specified in the design, double-click in the value field. A button appears as highlighted in the below figure. Click this button to replace the displayed value with the original value. You can also double-click the specified maximum and minimum values in the slider bar and then specify new values.
    Ensure that the maximum value you specify is greater than the given minimum value. Similarly, minimum value should be less than the given maximum value. Otherwise, an error message appears.
    After you change a value, if you place the mouse pointer on the changed value, a tooltip appears that shows the parameter or variable name, its new and the original values.
    When you change the variable or parameter value, the updated value is passed to the simulator and an instant simulation run takes place. This simulation is fast because the simulation run does not generate the netlist again.
    If the parameter you are tuning is a sweep parameter, then the minimum and maximum values are displayed at the two ends of the slider bar and you can move the slider to select values based on the specified step size. For example, in the below figure, for parameter V2/vo, the sweep defined is 10:2:20. The slider bar shows minimum value as 10, maximum value as 20, and you can specify only values that are at the interval of 2, such as 12, 14, 16, 18. The maximum of 100 points (step values) can be selected through the slider.

    In the RTT mode, the change in value of temperature also initiates a simulation run.
    To set the path of simulation results directory where the intermediate simulation results are saved for the changed values, you can set the following environment variable in CIW or .cdsinit file:
    envSetVal("maestro.rtt" "useCustomizedSimDir" 'string "./")
    If you do not set this variable, simulation results are saved at the default memory location, /dev/shm/simulation/<lib>/<cell>/spectre/<view>.
  3. When the simulator is in listening mode, the play button is changed to a pause button. This indicates that you can change only one value at a time and plots are updated in the graph window accordingly. To change multiple values together, click the pause button again. The button icon is changed as shown in the figure below. This indicates that the simulation run is on hold and does not happen every time when you change a value.
    Now when you are done with all the changes, click this button again to continue the simulation run.
    At any point of time, you can click the stop simulation button ( ) to bring back the play button to its default value and stop running simulation after the values are changed.
    To bring back the previous values, use the Undo and Redo buttons available at the bottom of the assistant.
    After changing values, if you want to bring back the default values from the previously-saved setup, click the Load values from Setup button ( ).
  4. As soon as you update the values in RTT, the updated simulation results are plotted in the Virtuoso Visualization and Analysis XL graph assistant. You can also set the following environment variable in CIW or .cdsinit file to open graph as a window in Explorer.
    envSetVal("viva.application""vivaWindowMode"'string "window")
    The default value is:
    envSetVal("viva.application""vivaWindowMode"'string "assistant")
    By default, the graph assistant is displayed at the right of the ADE Explorer window.
    You can use the drop-down menu ( ) available on the toolbar to change the mode in which you want to display output waveforms. The available modes are Append, Replace, New Window and New Subwindow. For more information about the ViVA graph assistant, see Virtuoso Visualization and Analysis XL User Guide.
    You can also view the updated simulation results in waveform info-balloons displayed on the schematic design. For more information, see Viewing Waveform Info-Balloons on Schematic.
    The nets in the schematic are displayed in the same color as that of the waveform plots in the graph window. See the yellow highlights in the figure below.

Backannotating Variables and Parameters from RTT

After tuning the design using the Real Time Tuning assistant, values of the updated parameter and design variables are displayed in bold, as shown in the following figure..

  1. To send these updated values back to ADE Explorer and the schematic, select one of the following options from the Save back drop-down menu:
    1. Explorer: updates the values of design variables and parameters in the setup assistant.
    2. Backannotate: Updates the parameter values in the schematic.
      The design variable values are not updated in the schematic.
    3. Explorer and Backannotate: Updates the values of the design variables and parameters in the setup assistant, and that of parameters in the schematic.
      You can control the default selection by setting the value of the environment variable, saveToMode.
  2. Click Save back.
    The following dialog box is displayed.
  3. Click Yes to confirm the changes.

Some Useful Points

Viewing Results in Virtuoso Visualization and Analysis XL

When the simulation run is complete, the plots are updated in Virtuoso Visualization and Analysis XL Graph. When the vivaWindowMode environment variable is set to Assistant, the ViVA graph assistant appears to the right of the Explorer or design window.

When you are working with the RTT mode in Schematic Editor, the Virtuoso Visualization and Analysis XL graph appears as shown in the figure below:

After changing the values in RTT assistant, you can zoom in a graph portion to view and analyze results at specific points on the graph. Now, if you change a parameter in the RTT assistant, the graph is updated as per the new values and is displayed with the same zoom settings that you set previously.

For information about the graphical-user-interface of ViVA Graph assistant, see ViVA Graph Assistant.

Running RTT with Other Simulators

When you use Spectre from MMSIM14.1ISR3 release or onwards (with or without APS mode enabled), the RTT assistant works in the interactive mode. The netlist and full simulation run take place only for the first time when you click the Play button. After that when you change the parameter or variable values in the assistant, the instant simulation run takes place and the corresponding output waveforms are simultaneously updated in the ViVA XL Graph assistant or in the waveform info-balloons on schematic.

When you use a Spectre version older than MMSIM14.1ISR3 release or use any other simulator, such as AMS, HSPICE, UltraSim, the RTT runs in a batch mode. This means, every time when a value is changed, a new netlist is generated and full simulation run takes place. Due to this reason, the simulation is slower and you may notice a delay in the display of output waveforms in the ViVA XL Graph assistant and info-balloons on schematic. A warning message is also displayed informing that maximum tool performance can be achieved only if you use Spectre from MMSIM14.1ISR3 release or onwards.

If you are using Spectre version prior to MMSIM14.1ISR3, the RTT simulations are run in the batch mode.

Viewing Waveform Info-Balloons on Schematic

After a simulation run is complete, the output expressions are evaluated and resultant waveforms are plotted in the Virtuoso Visualization and Analysis XL graph. You can also view these waveforms in the schematic design in the form of waveform info-balloons or thumbnails.

This section covers the following topics:

The Waveform Thumbnails video is available on Cadence Online Support that demonstrates how to use and configure waveform thumbnails to let you view simulation plots directly on the schematic canvas.

Enabling Waveform Info-Balloons

To enable the display of waveform info-balloons in schematic, do one of the following:

Notice that info-balloons in the above figure display a drop-down for the legend inside the trace. This drop-down includes a list of waveforms generated for the sweep values for each leaf. When the simulation includes sweep variables, the legend drop-down displays a list of waveforms generated for all sweep values. This drop-down also maintains a history of waveforms generated for the previous simulation runs.

In addition, the Zoom in by 2, Zoom out by 2, and Zoom Fit buttons are displayed in the info-balloon.

Moving and Resizing Waveform Info-Balloons

You can move or resize only pinned waveform info-balloons. To move and resize the waveform info-balloon, do one of the following:

Pinning Waveform Info-Balloons

By default, you can view only one info-balloon at a time because they are displayed only when you place the pointer over an instance. If you want to view and analyze more than one waveform in the design, you can pin the selected info-balloons so that they continue to display.

To pin the info-balloon for a particular instance, do one of the following:

Clearing Pinned Waveform Info-Balloons

To clear waveforms displayed in the pinned info-balloons:

Changing Analysis Type for Waveform Info-Balloons

The waveform info-balloons display the plots for only one analysis at a time. To change the type of analysis, select the required analysis type in the drop-down list available on the Annotations toolbar.

The waveform info-balloons for only the selected analysis are displayed in the schematic.

For example, if you choose ac analysis type in the drop-down list, the new info-balloon you add shows the plots for AC analysis and all pinned balloons are also changed to show the plots for AC analysis. You can use the Freeze Analysis option to lock the analysis type, which is explained in the next section.

Using Waveform Info-Balloon Context-Sensitive Menu Options

When you right-click anywhere in the waveform info-balloon, the following context-menu options appear:

Viewing Legend in Info-Balloons and ViVA Graph Assistant

When you run a single-point simulation, the legend on the waveform info-balloons display the name of the net. If you run a multi-point simulation, the legend also display the sweep values along with the net names.

Consider an ADE Explorer setup in which you have the following three design variables:

Now, if you run a simulation, the output waveforms are plotted in the ViVA Graph assistant and also displayed in the waveform info-balloons, as shown in the figures below. The color of waveforms in the info-balloon is same as that of the color in the ViVA Graph assistant.

Now, if you change a variable value, say vplus to 3.0, and rerun the simulation, the waveforms are updated in the ViVA Graph assistant and the pinned waveform info-balloons. When the plotting mode is set to append, notice that the legend drop-down in the ViVA Graph assistant and info-balloons display both the new (3) and previous (2.8) values of the changed variable, vplus. The other two design variables remain unchanged, and therefore, are not displayed in the legend.

If you specify a sweep for the vplus design variable (vplus=0:2:6), the waveform info-balloons display the waveforms generated for sweep values and the name of the net, as shown in the figure below.

The color of waveforms in the info-balloon is same as that displayed in the ViVA Graph assistant. Also, if you select a waveform in the info-balloon, the same waveform is highlighted in the ViVA Graph assistant. For example, in the above figure, the out signal at vplus=4 is highlighted in the waveform info-balloon and ViVA Graph assistant.

Viewing RTT Simulation Results in Waveform Info-balloons

After updating the design variables and parameter values in the RTT assistant, you can view the output waveforms instantly in the ViVA Graph assistant. If the waveform info-balloons are enabled in the schematic design and you change a variable and parameter value using RTT assistant, the plots in waveform info-balloons are also updated to reflect the change in output waveforms. These updated waveforms in info-balloon are plotted in different colors in append mode. The highlighted waveform color shows that this waveform is generated by the recent simulation run.

When you tune the design in RTT, the legend drop-down in the info-balloon includes the previous and new values of the variables you changed. For example, consider an example in which you have three design variables, CAP=230u, wp=100u, and vplus=2.8u, in the ADE Explorer setup. When you click the Play button for the first time, a simulation run takes place. The legend of the output waveforms in the ViVA graph assistant and info-balloons display only the net name. Now, if you change a variable, say wp to 107u and vplus to 4, the info-balloon legend drop-down includes both the old and new values as shown in the below figure:

The third variable, CAP, is not displayed in the legend because its values are not bechanged. Now, if you change the value of other variable, say CAP, the legend displays the previous and new values of all the changed variables. In addition, when you can select one of the waveforms in the legend drop-down list, the corresponding plots are selected in the info-balloon and in ViVA Graph assistant.

Notice that the color of waveforms from the previous runs becomes dimmer every time when a new simulation is run. The waveform with the brightest color indicates the latest plot. Alternatively, you can set the dimSameColor environment variable to nil to display these waveforms in different colors. The default value of this variable is t.

Similarly, the ViVA Graph assistant legend also displays the values for only changed variables (see the figure below).

Points to Note:


Return to top
 ⠀
X