Professional Documents
Culture Documents
ECE 515 Design of 3D Integrated Systems: Mixed Signal Simulation Using Cadence AMS
ECE 515 Design of 3D Integrated Systems: Mixed Signal Simulation Using Cadence AMS
Lecture 23:
Mixed Signal Simulation using Cadence
AMS
1
AMS Design Configuration
Cadence Virtuoso AMS is a mixed language, mixed signal
simulator
Cells in the library typically have multiple views or
representations
E.g., schematic, symbol, Verilog, layout
2
AMS Configuration Window Setup
Views available for cell that can be used in simulation
Source:
4
Configuration Window
Example: Inverter
We can first use inverter Verilog model which is a very abstract
model in simulation to save time
Then, we use Verilog-A model which may contain certain
electrical characteristics of the inverter circuit in simulation
Finally, we use transistor-level implementation which contains
more details in the design
// VerilogA for inverter Real vout_val;
Integer logic1;
`include “constants.vams” Analog begin
`include “disciplines.vams” logic1 = V (vin) > vtrans;
// Verilog HDL @ (cross(V(vin) – vtrans, 1)) logic1 =1;
// for inverter Module inv (vin, vout); @ (cross(V(vin) – vtrans, -1)) logic1=0;
Input vin;
Module inv (vin, vout); Output vout; Vout_val =(! Logic1) ? Vlogic_high ; vlogic_low;
Input vin; Electrical vin, vout;
Output vout; Parameter real vlogic_high = 5; V(vout) <+ transition ( vout_val, tdel, trise, tfall);
Parameter real vlogic_low = 0;
Assign vout=~vin; Parameter real vtrans = 2.5; End
Parameter real tdel = 0.1n from (0:inf);
endmodule Parameter real trise = 0.1n from (0:inf); endmodule
Parameter real tfall = 0.1n from (0:inf);
5
OSS/Irun Simulation
OSS-based netlister reads simulation information and uses
irun for one-step flow.
What is irun?
1-step command to
compile, elaborate, and
simulate your design
It is used exclusively in
the OSS netlister flow
6
OSS/Irun Simulation
Simulation mode
Batch
Interactive
If we select “batch”
mode, the simulation
looks like what we see in
ADE window
If we select “interactive”
mode, simulation results
will be plotted in digital
simulator “SimVision”
7
AMS Simulation with SDF annotation
How to simulate analog circuits with synthesized
gate-level Verilog block?
We need to consider back annotation timing delays
What is back annotation?
The process of putting delays to the cells in a netlist
during netlist simulations is called back annotation.
Verilog description
Results
8
AMS Simulation with SDF annotation
What is SDF?
Standard Delay Format
An IEEE standard for the representation and
interpretation of timing data for use
An efficient way for dynamic timing verification
Source: 9
An Mixed Signal Simulation Example
I2C Master I/O Pad Master I/O Pad Master I2C Slave
(Verilog Code) (Transistor Netlist) (Transistor Netlist) (Verilog Code)
ESD, pad
capacitor, pull-up
resistors
10
AMS Simulation with SDF annotation
A Design Example
11
AMS Simulation with Synthesized gate-level Verilog
12
AMS Simulation Example
Click “simulation” tab and select “Options” – “AMS
simulator”.
13
AMS Simulation Example
Under the main page,
we need to include
two Verilog files
I2C gate level
Verilog file
Standard cell
library which is
used in synthesis
process
At bottom of this page,
we need to type
“+define+NTC
+define+RECREM”,
which is used in timing
setup during AMS
simulation
14
AMS Simulation Example
Then, we switch to “SDF”
tab, where we include SDF
command file for backend
timing annotation.
After we start
simulation, we need to
pay attention to the
Irun.log, which shows
possible error
messages and
progress.
16
AMS Simulation Irun.log
For example, we can find the back annotation is
used in the simulation from the message “SDF
statistics: No. of path delays …
Annotated … 100%”
17
AMS Simulation Example
SimVision Simulation Control Window
18
AMS Simulation Example
SimVision Waveform Plot Window
19
AMS Simulation Example
Console of SimVision Simulator
20
AMS Simulation Example
SimVision Waveform Plot Window
21
AMS Fast Simulation
Advanced Performance Options
Mixed signal simulation is controlled, and limited by the analog
solution.
The faster the analog solution, the faster the overall mixed
signal solution
One way to speed up mixed signal simulation is to make
analog engine faster
22
AMS Simulation Example
Simulation speedup tricks: APS is Cadences latest
For this simulation time, multi-threaded spice simulator.
AMS only, conservative - 3 hours Watch this video for more details:
https://www.youtube.com/watch?v=StzINZ2Ocb8
AMS+APS, conservative- 30 minutes
AMS+APS, moderate 20 minutes
23
Reference
Cadence Virtuoso AMS Designer Workshop, Feb 2012
24