Advanced Design System
Advanced Design System
2005 Aug
Course Topics
1:Circuit Simulation Fundamentals 2:DC Simulation and Circuit Modeling 3:AC Simulation and Tuning 4:S-Parameter Simulation and Optimization
2005 Aug
2005 Aug
To create a new project: click the folder icon or File > New Project and name it.
2005 Aug
NOTE: A new schematic becomes a .dsn file in the networks directory only after you save it with a name.
ADS automatically creates these directories for every project. But they are empty until you create the schematics, simulate to produce data, and display the results.
2005 Aug
Schematic window
Move, copy, delete, undo Use icons to create, open, and save designs.
Rotate , ,
ADS has many palettes with many components for creating schematics and simulation setups!
2005 Aug
2005 Aug
Pin / Gnd
2005 Aug
2005 Aug
10
2005 Aug
11
Before you simulate: You can name the dataset file. If not, default dataset = schematic name. Dataset files (.ds) are in the DATA directory. Data Display windows (.dds) are in the PROJECT directory. To simulate: use F7 key, click Simulate, or click the gear icon on the schematic.
display result
2005 Aug
12
2005 Aug
Data displays open empty the first time, unless you use a template. You insert plots, lists, equations using the default dataset file or other dataset files that are specified explicitly.
2005 Aug
14
15
marker
Insert > Templates Create Pages Zoom into plots Scroll through lists
2005 Aug equation ,
16
Tuning allows you to tweak parameter values and see the results!
2005 Aug
17
To delete ADS files, use the Main Window command: File > Delete Design
2005 Aug
18
NOTE: Archive files become .ZAP files. They can include all networks, data, and display files (entire project).
2005 Aug
19
Course Topics
1:Circuit Simulation Fundamentals 2:DC Simulation and Circuit Modeling 3:AC Simulation and Tuning 4:S-Parameter Simulation and Optimization
2005 Aug
20
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 message) error
2005 Aug
21
DC simulation controller
Palette and editor (dialog box)
Sweep: allows you to sweep a parameter but it must be declared as a variable. Note the dialog entry automatically puts quotes on the controller (screen) entry. VAR
Initialize Vce!!
2005 Aug
22
DC Parameter
23
Schematic Annotation of DC values DC Immediately after DC simulation, click: Simulate > Annotate
Solution.
No controller settings necessary!
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.
2005 Aug
24
2005 Aug
25
To edit the label, double click it, Or use the command: Edit > Wire/Pin Label Attributes
2005 Aug
26
Component parameters can be assigned to a varable: VAR. VARS can be used with optimization, parameter sweeps, and other applications!
2005 Aug
27
Analog Models
Model Cards: use a built-in symbol and model card which lists all the parameters that you can modify. This example is a BJT model.
2005 Aug
28
Case Sensitivity:
UNIX is always case sensitive: PC is usually case sensitive: For example, insert R after the first insert, PC will recognize either r or R. But m=milli, M=mega, V=volts, and VARS are case sensitive all of the time!
2005 Aug
29
In this tab, you set Hot Keys for components, library items, controllers, and sources.
2005 Aug
30
Try this now: click the F5 key, select the component, move the cursor and the text will follow!
2005 Aug
31
2005 Aug
32
2005 Aug
33
Description for library annotation Component instance name: Q Symbol: SYM_BJT_NPN Passed parameter for Bf = beta
2005 Aug
34
35
Course Topics
1:Circuit Simulation Fundamentals 2:DC Simulation and Circuit Modeling 3:AC Simulation and Tuning 4:S-Parameter Simulation and Optimization
2005 Aug
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
2005 Aug
37
AC Simulation Controller
Set on-screen parameters in the Display tab
AC is a linear or small signal simulation and freq is defined in the cintroller not the source.
2005 Aug
38
AC Noise calculations
Click here: Again, use the Display tab to see your settings onscreen.
Nodes are Wire/Pin Labels. NOTE: Port Noise can be included in the simulation, but it does not apply to NF.
Sort by name or by value: in the dataset. Blank gives you all contributors.
2005 Aug
39
40
2005 Aug
41
Schematic
MeasEqn: pre-simulation
Use for calculations on schematic and are available in the dataset by default. Use node labels and functions.
Eqn; post-simulation
Use for calculations in the data display. Use node voltages, functions, and any dataset data.
2005 Aug
Data display
42
2005 Aug
43
2005 Aug
44
b. Save the schematic. Notice the top window border of the schematic shows the schematic name as untitled. Click the icon (shown here) and the Save Design As dialog will appear. Type in the name lpf and click Save. This will save it in the networks directory of lab1 project. NOTE on saving designs After naming the schematic, the Save icon will not bring up this same dialog box. Instead, it will save the named design. To save the design with a different name, use the command: File > Save Design As. c. In the Lumped Components palette, select (click) the capacitor C shown here (not the C model). Then click the Rotate By Increment icon as needed for the correct orientation and then click to insert the capacitor as shown on the schematic. Next, insert another capacitor.
Rotate
45
d. Continue creating the low-pass filter as shown by inserting the inductor and grounds (icons are shown here). Then wire the components together. This will give you practice with schematic capture. You can try using the copy, move and other icons or commands. e. After the filter is built, edit the value of C2 to be 3 pico-farads. To do this, double click the capacitor symbol or select the capacitor and use the icon (shown here). When the dialog box appears change the value: C=3.0 pF, click Apply and OK. f. Next, select the Simulation-S_Param palette and insert the S-parameter simulation controller (gear icon). Use the ESC key to end the command. g. Then insert the port terminations: Term Num=1 and Term num=2 shown here.
2005 Aug
46
h. Use Component History: After the circuit is built, delete capacitor C2 and then reinsert it by typing or selecting (history) the capital letter C in the Component History field and press Enter. Next, edit the value directory on the schematic by highlighting the value and typing over it with the value (3.0 pF). Verify that it has changed by looking at the value in the edit dialog box.
47
NOTE: If you scroll up, you will see more simulation information
c. If no simulation errors occurred, close the Status window. You can always get the status window back using the schematic window command: Window > Simulation Status.
2005 Aug
48
d. The Data Display window will appear with the name lpf in the top left corner this is the same name as your schematic. Also, you are looking at page1 which is blank at this time. Examine the picture below the next steps will show how to display the simulation data.
The default DATASET name appears here. Rectangular Plot This palette is where you choose a plot type, list table, or equation to insert.
2005 Aug
49
e. To create the plot, click on the Rectangular Plot icon and move the cursor (with outlined box) into the window and click. When the next dialog box appears, select the S(2,1) data and click the Add button. Then select dB as the format for the data. Click OK in both boxes.
2005 Aug
50
g. Put a marker on the trace: Click the menu command: Marker > New. Select a point on the trace and click to insert the marker. Select the marker or the marker text and move the marker using the cursor or the keyboard arrow keys. Also, move the marker text by selecting it and positioning it as desired. Try deleting the marker or putting another marker on the trace.
2005 Aug
51
a. Position the Data Display and the Schematic windows so you can see them both on the screen. If necessary, re-size thewindows and use View All. b. Now, in the lpf schematic, select both components C1 and L1 using the SHIFT or Ctrl key as shown here.
c. Now, start the tuner by clicking the command: Simulate>Tuning or click the Tune Parameters icon (shown here).
Immediately, the status (simulation) window will appear along with the Tune Control dialog box (shown here). Go ahead and tune the filter using the default settings and watch the updated traces appear in the Data Display.
2005 Aug
52
Move the slider or click on the buttons to tune values. Notice how the new traces appear on the s_data plot after each change.
Each tuning creates another trace. The marker moves to the most recent simulated (tuned) trace which is thicker than the others. This trace is the s_data dataset which is changed each time you tune (simulate).
2005 Aug
53
d. Change the tuning range: In the Tune Control dialog, click Details and watch the dialog change from brief to detailed. Type in a larger range such as 6 and then tune the filter again. You should be able to see a greater range of responses.
e. Continue tuning until you are satisfied with the results click the Update button to have the C and L unit values updated on the schematic. If you click the Component button you will notice that it allows you to add other parameters to the tuning . The Brief button returns to the smaller (brief) Tune Control dialog.
2005 Aug
54
f. When you are satisified with the tuned response, simply click the Cancel button and the plot will contain the final tuned trace similar to the one shown here. It is not important to achieve any particular goal in this lab exercise but simply to learn how to use the Tuner.
g. Save the data display and the schematic using the Save icon. Then close both windows so that only the ADS Main window remains.
2005 Aug
55
NOTE: The BJT_NPN symbol shows Model = BJTM1. This means the symbol will use that specific model (model card) for simulation.
2005 Aug
56
c. Double click on the BJT_Model card. When the dialog appears, click Component Options and in the next dialog, click Clear All for parameter visibility then click Apply. This will remove the Gummel-Poon parameter list from the schematic. Keep this dialog open. d. Next, in BJT_Model dialog, select the Bf parameter and type in the word beta as shown here. Also, click the small box: Display parameter on schematic for Bf only and then click Apply. Beta is now a parameter of this circuit - later on you will tune it like a variable.
2005 Aug
57
e. Set Vaf (Forward Early Voltage) = 50 and display it. f. Set Ise (E-B leakage) = 0.02e-12, and display it also. Then close the dialog with OK. The device now has some more realistic parameters. g. For the BJT device, remove the unwanted display parameters (Area, Region, Temp and Mode) by unchecking the box. This will make the schematic less crowded with parameters that you are not using.
2005 Aug
58
a. Insert lumped L and C components: Insert three lead inductors of 320 pH each and two junction capacitors of 120 fF each. Be sure to use the correct units (pico and femto) or your circuit will not have the correct response. Tip: type L or C in component history to get the components onto your cursor without using the palette. b. Add some resistance R=0.01 ohms to the base lead inductor and display the desired component values as shown. c. Insert port connectors: Click the port connector icon (shown here) and insert the connectors exactly in this order: 1) collector, 2) base, 3) emitter. You must do this so that the connectors have the exact same pin configuration as he ADS BJT symbol. d. Edit the port names as show here: change P1 to C, change P2 to B, and change P3 to E. e. Clean up the schematic: Position the components so that the schematic looks organized this is good practice. To move component text, press the F5 key, select the component, use the cursor to position the text.
2005 Aug
59
NOTE: you must number the ports (num=) exactly as shown or the device will not have the correct orientation for the symbol that will be used.
2005 Aug
60
a. To see the default symbol, click: View > Create/Edit Schematic Symbol. When the dialog appears, click OK and the default symbol will appear. b. Next, a box or rectangle with three ports is generated. This is the default symbol. However, delete this symbol using the commands: Select > Select All. Then click the trash can icon or delete key. c. Return to the schematic click: View > Create/Edit schematic.
2005 Aug
61
2005 Aug
62
c. Click Save AEL File to write these changes but do not close this dialog yet because you still need to set other parameters. d. Go to the Parameters tab. In the Parameter Name area, type in beta and assign a default value of 100 by clicking the Add button. Be sure the box to Display the parameter is checked as shown here. Click the OK button to save the new definitions and dismiss the dialog. e. In the schematic window, Save the design. In the next steps, you will see how the Design Parameters will be used.
The parameter beta is now recognized as a variable of this circuit. Its value can now be passed (assigned) from an upper level hierarchy when you use bjt_pkg as a subcircuit. NOTES: multiplicity_M You can define multiple components in parallel. You can also copy parameters from another device or file. 2005 Aug
63
2005 Aug
64
This is where you will connect the device (bjt_pkg) in the next few steps.
2005 Aug
65
b. Save the design and then click the Component Library icon (shown here). c. When the dialog opens, select the amp_1900 project as shown and click on the bjt_pkg sub-circuit. Insert it into the schematic as shown here. Every circuit that you build will be available in the project library as a sub-circuit.
d. Connect the bkt_pkg component as shown. You may have to adjust the wires and text (F5) to make it look good. Also, you can now close the library window and save the dc_curves design again it is good practice to save often.
2005 Aug
66
Parameter sweep used for multiple variable sweeps. Note that DC1 is the name (SimInstance Name) of the simulation controller. VarEqn is required to initialize variables.
2005 Aug
67
9. Open a new design and check all your files in the Main window.
a. Save the current schematic: dc_curves. In the same window, create a new design (without a template) named: dc_bias. Then save the design by clicking on the Save Current Design icon (shown here) so that it is written into the ADS database.
2005 Aug
68
b. Now, check the ADS Main Window: you should have 3 designs in the networks directly: bjt_pkg, dc_curves, and dc_bias. You may have to double-click on the file browser networks to refresh the browser. c. In the File Browser area, click on the plus / minus boxes and the up arrow (or two dots). This allows you to see the files you have created in this project. Remember: you can only work in one project at a time, but you can copy files from other projects and bring them in. Try clicking the plus (expand) and minus (contract) boxes. Try the up arrow. Project and directory path are shown here.
d. Finally, try the Show / Hide all windows feature. This is used for security or to find other open windows that are not ADS. In this case, only the Main window remains.
2005 Aug
69
a. Insert the bjt_pkg using library icon or the component history. Now push into the bjt_pkg and click File > Design Parameters. Reset the beta parameter default to160, pop out and delete the bjt_pkg and reinsert it beta is now 160 whenever you use the modeled circuit.
2005 Aug
70
b. From the Probe components palette or component history, insert an I_Probe and rename it IC instead of I_Probe1 as shown here. c. From the Sources-Frequency domain palette or using component history, insert a dc supply and current source and set their values as shown: Vdc = 3V and Idc = IBB as shown here. d. Wire the components together and add the ground (ground icon). e. Insert a DC simulation controller or DC. Edit (double click) the controller and go to the Sweep tab and assign: IBB: 10uA to 100uA in 10uA steps. Then go to the Display tab and check the settings to be displayed as shown. Then click Apply and OK. f. Insert a VAR (click icon) variable equation. Use the cursor on the screen to set IBB=0 A to initialize (declare) the variable to be swept. g. Insert a wire label VBE at the base. The voltages at that node will appear in the dataset for use in calculating bias resistor values. h. Simulate and plot the data. When the data display opens, insert a list of VBE and IC.i only. Because you swept IBB to get these values, IBB will automatically be included.
2005 Aug
71
NOTE on results: As you can see, with 3 volts across the device, 40 uA of base current results in about 799mV across the base-emitter junction, with about 3.3 mA of collector current. If you want, draw a box around the values at 40 uA IBB. i. Save the design and data display.
b. Select the Rb Eqn and use the keyboard Ctrl C and Ctrl V to copy/paste it it will become Rb1. c. Highlight the Rb1 equation as shown and change it to become Rc: Rc = 2 / IC.i. The total DC supply will be 5 volts. Therefore, with 3 volts VCE, 2 volts remain for the collector resistor.
2005 Aug
72
d. Insert a new List and scroll down to the Equations menu (shown here), and add Rb and Rc. Then edit both column headings on the list with a bracketed [3] as shown. This references the 40uA IBB using its index value [3]. Index values begin at zero: 0, 1, 2, 3, etc. You can also use Plot Options to add a label to the list as shown:
Bias Resistor Values @ 40 uA IBB
2005 Aug
73
d. Change the instance R names to RC and RB as shown. Insert the cursor and type over to rename it to RC.
NOTE on components with artwork: Later on (after the last lab), you can easily and quickly change to lumped components with artwork by changing the component name for example, change R to R_Pad1, C to C_Pad1, L to L_Pad1, etc. Then you can create a layout of the schematic. For now, use lumped without artwork. e. Set the V_DC supply: Vdc = 5V. Wire the circuit and organize it.
2005 Aug
74
f. Delete the DC simulation controller and put a new one in its place this is faster and more efficient than removing the sweep settings. Because there is no sweep, you do not have to set anything to check DC values.
c. Annotate the current and voltage by clicking on the menu command; Simulate > Annotate DC Solution. If necessary, move components or component text (F5 key) to clearly see the values of voltage and current. Be sure that you have the same values dhown here. If not, check your work, including the sub-circuit.
2005 Aug
75
d. Clear the annotation, click: Simulate > Clear DC Annotation and then Save all you work. Close all windows if nor doing the optional steps that follow.
2005 Aug
76
Lab3: AC Simulations
1. Copy & Paste (Ctrl+C / Ctrl+V) from one design to another.
a. Open the last design (dc_net) and copy the circuit shown highlighted here by dragging the cursor around the area this is known as rubber banding. With the items highlighted, copy then by using the keyboard keys Ctrl+C or the Edit > Copy command. Using Ctrl+C is preferred because it eliminates mouse clicks.
2005 Aug
77
b. Use the File > New Design command to create a new schematic and name it: ac_sim. Then use Ctrl+V or use Edit > Paste and insert (ghost image) the copy by clicking into the new schematic. c. Save the ac_sim design. You must save it or it will not be written to the database. d. Click the command Window > Designs Open. This command gives you access to designs that are open in memory but not visible in a window or not saved in memory. When the dialog appears, select dc_net and click Ok. Then close dc_net design using File > Close Design (no need to save the changes). e. In the empty schematic window, reopen the ac_sim design using the File > Open Design icon. This gives you a list of all the designs in the project. If a design is created but not saved initially, it will not be in this list and you will need to use the command Window > Designs Open to access it.
78
c. Insert a V_AC source from the Sources-Freq Domain palette. Ground the source. Then add a 50 ohm load resistor and ground to the output.
d. Modify the Pin/Wire (node) labels. Click the Name icon. Add Vcc as a label to both RC and the DC source. This will connect them electrically instead of a wire. e. Add Vin and Vout as shown. Also, if you did any OPTIONAL steps in lab3, remove VC and VBE by clicking on those labels when the dialog is blank (shown here) or use the command: Edit > Wire/Pin Label > Remove Wire/Pin Label. f. Verify that the circuit looks like the one shown here.
2005 Aug
79
2005 Aug
80
2005 Aug
81
c. Edit the AC simulation controller and go to the Output tab. The default is for all labeled node voltages (pin/wire labels) and all Measurement equations to be reported in the dataset. You will change this in the next steps. d. Uncheck the box for Node Voltages and click on the Add/Remove button.
2005 Aug
82
e. Select Vin and Vout from the list of available outputs and Add them as shown here then click OK. Only those node voltages will be written into the dataset after simulation and Vcc will not. This works for measuremnt equations also.
d. Click OK to dismiss the dialog you are now ready to simulate. NOTE on node name display: You can display the node names (Display tab NodeName check box) but it is not necessary.
2005 Aug
83
NOTE on equations If the measurement equation for voltage gain was not already calculated, you would write the data display equation with all the required values, for example: gain_dB=20* log (mag(Vout)/mag(Vin)). However, because that voltage gain was already calculated, it is easier to simply insert it here.
2005 Aug
84
b. Scroll down the list to values around 1900 MHz, using the arrow buttons as shown.
2005 Aug
85
c. Insert the cursor directly into the gain_voltage column and type in the dB function as shown. Then add parentheses so that it reads: dB (gain_voltage). This demonstrates the flexibility of the data display for operating (with ADS functions) directly on data and equations.
d. Click the data display Undo command to return to remove the dB function.
e. Edit the list (double click) and change it to a rectangular plot by selecting the icon.
2005 Aug
86
f. Insert the cursor directly onto the Y-axis label and change gain_voltage to dB(gain_voltage) similar to the way you did in the list. Then undo it. Again, this shows the power of functions and the data display. NOTE on dB values Converting the AC analysis voltage to dB is not the same as S-parameter analysis in dB that uses power (V and I) and also has a 50 ohm source Z.
2005 Aug
87
10. Plot the phase and group delay for the ac analysis data.
a. Insert a rectangular plot of the phase of Vin and Vout put markers on 1900 MHz (type in the value). The phase is not 180 degrees due to the bjt_pkg parasitics. Move the markers and see the phase closer to180 at lower frequencies. You may want to Hot Key the new marker command using the DDS Options > Hot Key similar to schematic.
b. Insert a new equation to calculate group delay. As shown here, use the phase of Vout and the diff function then plot the equation. The diff function calculates the difference between points on the slope. The minus sign gives the result in decreasing value. Place a marker on the trace and notice that it will be on either side of 1900 MHz (+/- 50 MHz) because of the diff function.
2005 Aug
88
c. Go back to the schematic, change the step size to 10 MHz, simulate again and watch the plot update.
d. Edit (double click) the marker. In the readout tab, set Format to Engineering with 2 significant digits as shown here. Notice the marker value changes to pico (pico-seconds) and the independent value resolves to 1.90 GHz.
e. OPTIONAL-Try grouping the group delay equation and the plot so they stay together when you move them. Use the Shift key and select the plot and the equation. Then click: Edit > Group. They should now move together in the data display.
2005 Aug
89
Course Topics
1:Circuit Simulation Fundamentals 2:DC Simulation and Circuit Modeling 3:AC Simulation and Tuning 4:S-Parameter Simulation and Optimization
2005 Aug
90
S-parameters
Usually given in dB as 20 log of the voltage ratios of the waves at the portsincident, reflected, or transmitted S11-Forward Reflection (input match impedance) S22-Reverse Reflection (output match impedance) S21-Forward Transmission (gain or loss) S12-Reverse Transmission (leakage or isolation) S11 and S22 are best viewed on a Smith chart S21 and S12 are easier to understand and simply plotted
2005 Aug
91
SHORT
OPEN
Bottom Half Capacitive Reactance (-jx)
100
Z0(characteristic impedance)=50+j0
92
93
Next slide
2005 Aug
94
These are These are ignored if Sweep ignored ifplan is selected Sweepplan is selected
95
96
Matching Networks
Matching meansMoving toward the center of the Smith Chart
Parallel L Series L
Series C
Series R Parallel R
2005 Aug
97
2005 Aug
98
2005 Aug
99
2005 Aug
100
Gradient , Quasi-Newton , Random , Discrete , Genetic Gradient Minimax , Minimax , Random Minimax
2005 Aug
102
ri = Wi |mi Si|
Si is the simulated ith response Mi is the desired response for the ith measurement Wi is the weighting factor for multiple goalshigher number is greater
Simulations continue until the maximum iterations is reached or the reeor function(summation of the residuals)reaches zero (same as 10dB)
2005 Aug
103
Using both RANDOM and GRADIENT can reach the desired goal or in some cases , a hybrid type such as Genetic
2005 Aug
104
105
2005 Aug
106
2005 Aug
107
108
2005 Aug
109
110
2005 Aug
111
2005 Aug
112
2005 Aug
113
2005 Aug
114
2005 Aug
115
c. Change the ideal inductors (DC_Feed) in the same manner and set L= 120 nH for each. According to the XL and L_val table , the reactance at 1900 MHz is about 1.5k , which is reasonable at this point in the design.
2005 Aug
116
2005 Aug
117
2005 Aug
118
2005 Aug
119
2005 Aug
120
2005 Aug
121
match
h. Move the cursor into the lower right corner of the window and click on each of the components in the Schematic as shown here. You will see the value for the inductor and capacitorapproximately L14 nH and C 400 fF or 0.4pF.
122
2005 Aug
2005 Aug
123
2005 Aug
124
2005 Aug
125
2005 Aug
126
127
2005 Aug
128
e. On screen , change the goal expression to dB(S(2,2)) as shown here. Now , you have two goals for the input and output match.
f. Set up the OPTIM controller. For this lab exercise , most of the default settings can remain , controller and set the MaxIter = 125 and set the FinalAnalysis = SP1. These settings mean that the optimizer will run for up to 125 iterations to achieve the goals. The Normalize goals setting means that all goals will have equal weighting. Also , a final analysis is automatically run with the last values so that you can plot the results without running another simulation.
2005 Aug
129
2005 Aug
130
2005 Aug
131
2005 Aug
132
2005 Aug
133
2005 Aug
134
2005 Aug
135
2005 Aug
136
d. With the new final component values and Simulate e. When the data display opens , plot the entrie Smatrix by selecting S in the dataset. Also plot the S11 and S22 on the Smith chart to verify the match is close to 50 ohms at 1900 MHz. With these results.
2005 Aug
137
2005 Aug
138
2005 Aug
139