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


Contents

1

AMS-MATLAB/Simulink Cosimulation

Introducing AMS-MATLAB/Simulink Cosimulation

Understanding the Different Cosimulation Flows

Setting Up the AMS-MATLAB/Simulink Cosimulation Example

Modifying the Simulink Model

Increasing the Noise for the AWGN Channel

Adding the Simulink Coupler Module to the Testbench

Converting Complex Signals to Real and Imaginary Parts

Inserting an Ideal Gain Block in the Testbench Schematic

Rewiring the Testbench Schematic

Setting the Simulink Stop Time

Opening the Virtuoso Schematic

Creating the Coupler in the Schematic Window

Creating a Coupler Using the Fixed-Cell Method
Creating a Coupler Using the simulinkCoupler Method

Placing the coupler_2_3_a Instance on the Schematic

Viewing the Entire AMS-MATLAB/Simulink Signal Flow

Exiting MATLAB

2

Running Cosimulation from ADE Using the Fixed-Cell Coupler

Opening ADE and Setting Up the Analysis

Choosing xrun for Simulation

Setting Up Design Variables

Starting MATLAB before AMS Starts

Running Cosimulation from ADE

Changing a Value and Rerunning Cosimulation

Running Cosimulation by Starting the Two Simulations Separately

Starting MATLAB Immediately
Starting the Two Simulations Separately

3

Running Cosimulation from ADE Using the simulinkCoupler

Replacing the coupler_2_3_a with the simulinkCoupler

Specifying Automatic Generation of the Verilog-AMS Module

Viewing and Modifying the Verilog-AMS Module

4

Running Cosimulation from MATLAB/Simulink

Opening the Step 2 Tutorial Schematic

Specifying the Run Script

Running the Cosimulation from MATLAB/Simulink

5

Running Cosimulation from the Spectre AMS Designer Environment

Reversing Changes

Opening the Virtuoso Schematic and Configuration

Launching the AMS Environment from the Hierarchy Editor

Initializing the Run Directory for AMS

Specifying the Transient Stop Time

Specifying Values for Design Variables

Starting the AMS Simulation

A

Learning More about the Cosimulation Interface

Using Framed and Unframed Signals

Using the Sine Testbench with Unframed Coupling
Using the Sine Testbench with Framed Coupling

Running Event-Based and Fixed-Rate Simulation

Using the Coupler Module in Feedback Loops

Using the Loop Testbench with Unframed Coupling
Using the Loop Testbench with Framed Coupling

Running AMS-MATLAB/Simulink Cosimulation on Other Platforms

B

Troubleshooting

Possible Problems

Possible Simulink Errors


Return to top
 ⠀
X