Ads Circuit Simulation
Ads Circuit Simulation
STEP 2: Simulate
Netlist is automatically sent to the simulator. Simulation results (data) are written to a dataset.
Layout / Momentum.
Open a schematic
Display opens
Default Dataset
Sim
ula te
Project Directory
First step:
To create a project, click: File > New Project and name it: lab_1
data
networks
filename.dsn
filename. ael (application extension language) filename. atf (compiled ael) mom_dsn (Momentum only) synthesis (used for E-Syn & DSP) verification (used for DRC)
File commands:
View commands:
Spice or IFF
Click + box to expand or box to collapse.
Sets the initial palettes and simulations. For now, use: Analog/RF design.
AEL
Main window preferences are global, they apply to all projects. The Schematic window has its own preferences.
Schematic window...
Schematic window
Save your work often... All icons have labels (balloon help).
A new schematic becomes a .dsn file in the networks directory only after you save it.
Also use Window > Open Designs
Click to wire:
VAR is a declaration (initialization). Component parameters can be assigned a value using a variable equation. Variables can be used with optimization, parameter sweeps, and many ...
Answer: _______
However, some rules apply to both, for example: m = milli, M = Mega, V = volts & variable names are always case sensitive!
By the way, right mouse button has some commands:
Simulate...
S-Parameter DC
NOTE: all palettes have many of the same components (Prm Swp) and specific Meas Eqns.
HB
10
Some simulations, like HB, require more setup. DC requires no setup in most cases. S-param requires Terms. Edit on-screen or double click for dialog box.
Display the parameters: Display tab lists all the settings you can show onscreen.
11
Uncheck this box if desired. NOTE: Dataset files (.ds) are in the DATA directory. Data Displays (.dds) are in the PROJECT directory & read datasets.
12
Data displays open empty the first time, unless you use a template. Also, the default dataset shows here. If you change the dataset, the data changes, but not the format of plots or equations.
13
STEPS: 1) Select the type: plot or list. 2) Select the data or equations. 3) Options - edit data or plot. 4) Save/name the DDS window.
Traces can be edited for color and thickness. Explicit dataset..path if not default.
14
Simulate > Tuning... Tuning allows you to tweak values and see the results!
15
hpeesofde.exe - closes the ADS program (same as exit) Hpeesofsim.exe - stops the simulation hpeesofdds.exe - end to stop the data display server These 2 work together! hpeesofdss.exe - end to stop the dataset server
UNIX users kill processes - PC users end processes
PC task manager NT: ctrl-alt-delete In a UNIX window, use: ps -ef | tail and you can kill (xxx) a processes.
NOTE: Archive files become .ZAP files (like .ZIP files). They can include all networks, data, and display files (entire project).
When you leave this class, archive the projects to C:\temp and then copy the ZAP to the A drive. Be sure to delete the datasets or it will not fit on a floppy disk (not necessary if you e-mail a zap file). For any ADS problems, call support and send the ZAP file. In the United States call: 1 - 800 473-3763.
16
17
Insert a library device & simulation template: Get S-parameters for all swept bias points!
18
Topic 2:
19
20
Write an equation for the parameter. Also, some parameters can be optimized.
For example, you can build an amplifier in circuit, and connect it in a system design. In this class, you will do this!
This is Hierarchy!
21
NOTE: the steps shown here are an OPTIONAL exercise in the last lab exercise in this course.
22
23
24
25
Class Exercise
(after lab 2)
26
If you dont like mouse clicks, HOT KEY your keyboard. Its global for all projects
Try this now: click the F5 key, select the Mixer component, move the cursor and the text will follow!
Follow these steps to set Zoom Area command: 1. Select the command 2. Type in a letter: z (not case sensitive) 3. Click: Assign 4. Click: Apply 5. Now,try the Z hot key to verify it works.
27
S = Simulate > Setup A = Activate D = Deactivate X = Edit > Move > Move & Disconnect and any others you want ...
You will be able to use these hotkeys for all the labs in this project.
28
You can also Read the .prf file into other projects.
Topic 3:
29
DC Simulation You get steady-state DC voltages and currents according to Ohms Law: V= IR
Capacitors = treated as ideal open circuits Inductors = treated as ideal short circuits Topology check: dc path to ground (if not => error message) Kirchoffs Law satisfied: sum of node current = 0 Convergence simulator algorithms (modes) can be set
DC simulation controller
Simulation Controller and Editor (dialog box)
Sweep: allows you to sweep a parameter but it must be defined as a variable. Note the dialog entry automatically puts quotes on the controller (screen) entry.
VAR
30
...more on DC
Back Annotation
No settings necessary!
Immediately after DC simulation, currents and voltages are available. Click: Simulate > Annotate DC Solution.
Simulate > Clear it here
Minus sign used for current flowing out of a connection. Otherwise, current flows into a connection or device. DC Simulation Controller is required in all simulations if you want DC annotation.
31
32
Filters: also, build 1900 MHz BPF for the input and a LPF for the IF output
Later on, test the AMP for TOI, distortion, noise, compression, GSM & CDMA modulation response, and more in labs 3 through 9.
YOUR JOB: Build, test, and refine the circuits to meet specifications.
Model the device with package parasitics Create a sub-circuit to model your components:
Model Card
Port connector numbers: Num= must be set in specific order as shown - this is necessary to use ADS built in transistor symbol.
Insert a device and a model: GummelPoon BJTM1. Bf will be a passed parameter. Vaf is changed as shown.
NOTE: BJTM1 is the model card name that will be used for simulation. Library devices do not require this mapping.
33
Default Symbol
Schematic view
Symbol view
To use a built-in ADS symbol that looks like an NPN BJT use File > Design Parameters. Or, draw your own symbol!
Its easy to use a built-in symbol:
You define the sub-circuit general and specific parameters: Description for library annotation Instance name: Q Symbol: SYM_BJT_NPN Passed parameter for Bf = beta
34
Insert the model in a new schematic Insert the sub-circuit from the library.
NOTE: DC controller sweeps the X-axis and the Parameter Sweep, sweeps the Y-axis.
35
Finally, calculate and test the bias network Calculate resistor values, verify the DC specs for Ib and Ic, and sweep temperature!
Topic 4:
36
AC Simulation
You get linear small-signal response and you get Noise values:
DC analysis performed (unseen) Nonlinear devices are linearized Kirchoffs Law satisfied: sum of node current = 0 Noise contributors defined and listed Budget analysis available (for named nodes) Signal voltages are peak - noise voltages are RMS
AC Simulation Controller
AC is a linear or small signal simulation and freq is usually set in the controller not the source.
37
NOTE: Port Noise can be included in the simulation, but it does not apply to NF. Also, Port noise is turned on/off in the sources.
Sort by name or by value: in the dataset Blank gives you all contributors
Use specific sources for specific simulations Use AC sources for AC simulations!
Source parameter definitions:
V_AC is the component name SRC3 is the instance name (you can change this) Vac = polar (1,0)V is the default) Freq = freq is a global variable - you set the start & stop values in the simulation controller P_AC = is the component name PORT1 is the instance name (OK to change) Num=1 is the port number (use for S-parameters) Pac = polar (dbmtow(0),0) dbmtow is a function you enter the dbm value (*see note) I_AC is the component Iac=polar (1,0) mA is the default Arrow is the direction of current flow. More on AC source settings...
38
VAR:
pre-simulation schematic
Use for initializing sweep variables or other settings. VARs are not available in the dataset unless the OutVar function is used (later labs).
MeasEqn: pre-simulation Use for calculations to be available in the dataset (can use node names and functions).
Eqn: post-simulation Use for calculations in the data display (can include node voltages, functions, and any other dataset data).
data display
39
TIP for copy/paste in the Data Display Keyboard keys: Ctrl C copies to the buffer Keyboard keys: Ctrl V pastes from the buffer
YOU CAN COPY A PLOT FROM ONE DATA DISPLAY WINDOW TO ANOTHER ALSO!
UNIX users probably know this but it works for ADS on the PC also. Try copying a plot or equation now!
40
41
Use ideal DC blockers. Vcc is a node name. Vin and Vout nodes provide data (noise and voltage) for equations. V_AC source voltage = 1 V, cosine wave.
MeasEqn:
NOTE: Freq is a global variable. Here, Freq is controlled by the source. Use freq=freq, freq=10 MHz, or a variable: freq=F_RF.
Simulation results...
Two schematic MeasEqns: One Data Display eqn:
Write the same equation in Data Display as you did in schematic. Then put it in a list.
42
More AC results...
Calculate group delay with an equation using Phase data. Also, control marker readout formats.
Examine the data using the what function and the Variable Info.
43
Set up a variable in the sub-circuit and tune several parameters from the top level.
44
Topic 5:
S11 - Forward Reflection (input match - impedance) S22 - Reverse Reflection (output match - impedance) S21 - Forward Transmission (gain or loss) These are easier to understand and S12 - Reverse Transmission (isolation)
simply plotted.
45
SHORT
Zo (characteristic impedance) = 50 + j0
Z=0+j1
Z = real
/ imaginary
m1
S(1,1) = 0.8/ -65 Z0 * (0.35 - j1.5)
Z=0-j0.5 Z=0-j1
Z=0-j2
46
Sweep plan can also be used (see next slide). Either way, simulation data (S matrix) will be for the specified range and points.
NOTE: Insert the Options controller for a noise simulation = no error message on temperature.
47
48
Various topologies can be used: L, C, R Avoid unwanted oscillations (L-C series/parallel) Yield can be a factor in topology (sensitivity) Use the fewest components (cost + efficient) Sweep or tune component values to see S-parameters Optimization: use to meet S-parameter specs (goals)
In the lab, you will optimize the match for the amplifier.
49
L lel ral a P
Pa ra
lle lC
Se rie
sL
Ser ies R