Product Documentation
Spectre AMS Designer Cosimulation with MathWorks MATLAB/Simulink
Product Version IC23.1, June 2023

5


Running Cosimulation from the Spectre AMS Designer Environment

AMS-MATLAB/Simulink cosimulation stands for cosimulation using the Spectre AMS Designer simulator and The MathWorks MATLAB®/Simulink®. ADE stands for the Virtuoso Analog Design Environment.
Use IC 6.1.3, IUS 8.1 or later, and MATLAB704R14 or MATLAB R2007b or MATLAB R2008a for this tutorial. The estimated time to complete this tutorial is about one hour.

You can run cosimulation from the Spectre AMS Designer environment. You do not need to start or use ADE.

This flow supports the fixed-cell coupler method only. For information about the fixed-cell coupler, see “Creating the Coupler in the Schematic Window”.

See the following topics for tutorial details:

Reversing Changes

If you are starting with the design as you finished with it in the previous section, you need to reverse the changes you made on the Function Block Parameters form for the SimulinkCoupler. To reverse your changes, do the following:

  1. In the testbench schematic window, double-click SimulinkCoupler.
    The Function Block Parameters form appears. Show advanced options is turned on.
  2. Scroll down to the Use AMS Designer run script field and select No.
  3. Click OK.

Opening the Virtuoso Schematic and Configuration

To open the Virtuoso schematic and configuration, do the following:

  1. Start the Virtuoso® software:
    virtuoso & 
  2. In the command interpreter window (CIW), choose File – Open.
    The File Open form appears.
  3. In the File group box, select the following:
    Field Selection

    Library

    AMSDcouple

    Cell

    tb_ieee_802_11a_demo_template

    View

    config

  4. Click OK.
    The Open Configuration form appears.
  5. Select yes for both Configuration and Top Cell View.
  6. Click OK.
    The configuration appears in the Virtuoso® Hierarchy Editor. The RF Transmitter System Testbench appears in a schematic window. The RF Transmitter System Testbench schematic contains the fixed-cell coupler you added in “Placing the coupler_2_3_a Instance on the Schematic”.

Launching the AMS Environment from the Hierarchy Editor

After you have opened the Virtuoso schematic and configuration, you can launch the AMS environment from the hierarchy editor as follows:

Initializing the Run Directory for AMS

The AMS Designer environment requires that you initialize a run directory. The tutorial files you installed include a run directory. To initialize AMS to use this tutorial run directory, do the following:

  1. In the Virtuoso® Hierarchy Editor, choose AMS – Initialize.
    The tb_ieee_802_11a_demo_template_run directory appears in the Directory field in the Existing Run Directory group box. You created this directory when you installed the tutorial files.
  2. Click OK.
    The AMS Designer environment uses this run directory. Other items on the AMS menu become available for selection.

Specifying the Transient Stop Time

To specify the transient stop time, do the following:

  1. In the Virtuoso® Hierarchy Editor, choose AMS – Detailed Setup – Analyses.
    The Choosing Analyses form appears.
  2. In the Stop Time field, type 1m to match the same simulation time in MATLAB.
  3. Click OK.

Specifying Values for Design Variables

To specify values for the design variables in this design in the AMS environment, do the following:

  1. In the Virtuoso® Hierarchy Editor, choose AMS – Detailed Setup – Design Variables.
    The Editing Design Variables form appears.
  2. If the GAIN_PA (gain) and CP_PA (compression point) design variables (for the RF power amplifier) do not already appear in the Design Variables table on this form, click Copy From.
  3. For each of the design variables (GAIN_PA and CP_PA), do the following:
    1. Click the design variable name.
      The design variable name appears in the Name field on the left side of the form.
    2. In the Value (Expr) field, type a value:
      • For GAIN_PA, type 35.
      • For CP_PA, type 24.
        The compression point design variable controls the power amplifier’s linearity/nonlinearity: The smaller the number, the larger the amplifier’s nonlinearity.
    3. Click Change.
      The design variable and its value appear in the Design Variables table on the right side of the form.
  4. Click OK.

Starting the AMS Simulation

To start the AMS simulation, do the following:

  1. Choose AMS – Netlist and Run.
    The Netlist and Run form appears. In the SIMULATION OPTIONS section of the form, notice that the Simulate option is GUI.
  2. In the CONNECT RULES section, remove the contents of the Library, Cell, and View fields.
    This tutorial does not require any connect rules.
  3. Click Run.
    The simulation starts.

Return to top
 ⠀
X