Professional Documents
Culture Documents
2020
1. Open an “Terminal” through the “Applications -> System Tools -> Terminal”.
2. Using the linux command “ls” to see all the file and sub-directories under the
current directory.
P. 1/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
4. Using “ls” to make sure that the file “conf.sh” is under the current directory and
1. Add the rfLib that contains the behavior model of the simple receiver by typing
P. 2/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
[Note] Steps 1 and 2 are only needed to be done once. After the rfLib has been added,
it will be saved and we will see it in the library manger every time we open the
cadence.
$ source conf.sh
4. Open the Library Manager from the menu in the main window by clicking “Tools
Library Manager”
5. Create a new library named “tutorial” in the Library Manager by clicking “File
New Library”
P. 3/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
6. Now you can see a new library named “tutorial” appears in the Library Manager
P. 4/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
as:
8. Now you can see a new design named “simple_receiver” with a schematic appears
under the library “tutorial” and a new window of schematic will pop out:
P. 5/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
9. Now we can add instance of the receiver in the schematic window. Firstly, we add
a “LNA” from the “rfLib” library by clicking “Add Instance” or press “i” in the
schematic:
P. 6/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
10. Then put the instance of “MIXER_PB” from the “rfLib” library in the same way.
Also put the two instances of “psin” from the “analogLib” library and three
P. 7/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
11. Now we can connect all the components together by clicking “Add Wire
P. 8/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
13. Add input pin by clicking “Add Pin…” or press “p” in the schematic:
P. 9/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
14. Add the output pin using the same way and connect the two pins, and save the
schematic by clicking the “save and check” button in the left tool bars:
15. Setting the parameters (e.g. gain, input/output resistance, input referred IP3, noise
(1) Select the LAN symbol and press the button “q” in the keyboard. In the tab
(2) Select the MIXER symbol and press the button “q” in the keyboard. In the tab
P. 10/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
(3) Select the psin symbol at the left side and press the button “q” in the keyboard.
P. 11/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
(4) Select the psin symbol at the right side and press the button “q” in the
P. 12/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
keyboard. In the tab popped out, set the parameters as shown below:
The port name can be changed as well, you need to make sure you select only
current button first and change the name of the input and output port to rf and if,
respectively.
P. 13/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
P. 14/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
16. Save the schematic again by clicking the “save and check” button in the left tool
bars.
P. 15/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
P. 16/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
3. Then there will be three variables, double click each of them and set their values
1. Click on the rf source in the Schematic window and press q to edit the
properties of the voltage source. Make sure the source type is sine.
P. 17/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
4. Type 100n in the Stop Time field and click the button OK.
THE SCHEMATIC!!!
2. To run the simulation, choose Simulation - Netlist and Run in the Simulation
window.
P. 18/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
3. The output log file appears and displays information about the simulation as
it runs. If nothing happens, it means you didn’t check and save, look in the CIW
for a message that says the simulation completed successfully or where you did
sth. wrong.
4. Choose Results - Direct Plot – Transient Signal. To plot the voltage against
time, click on the net(s)(wires you connect) in the Schematic window and press
P. 19/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
5. The transient response of the receiver can then be read in the Waveform
P. 20/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
If you don’t finish your simulation and want to continue later, or if you want to
re-run the same simulation a while after, you don’t need to set the analyses again.
You can save your state and load it anytime you want to simulate.
Choose Cellview and change the name of the state in the Cellview Options state to
P. 21/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
If you want to load a state, In the ADEL, click session and load state, choose
Cellview in the Load State Option, and choose the state you want to load in the
Cellview Options
P. 22/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
1. In the Simulation window, use Analysis - Disable to disable any analyses you
ran previously.
4. Add Name lo, Expression flo, and Name rf, Expression frf into the
Fundamental Tones. At the lower right corner of the Fundamental Tones section,
highlight the Auto Calculate button. The Beat Frequency is now displayed as
5. In the Output harmonics cyclic field, choose Number of harmonics and type
30 in the field.
6. Highlight conservative for the Accuracy Defaults (errpreset) setting and type
P. 23/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
1. To run the simulation, choose Simulation - Netlist and Run in the Simulation
window.
2. When the simulation is finished, choose Results - Direct Plot – Main Form.
In the PSS Results form, click power, select Port (fixed R(port)) and highlight
3. Click on the port in the Schematic window and press ESC to finish the
selection. The Waveform Window display appears like the one below. Output
Gain)+10dB(Mixer Gain).
P. 24/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
I. Setting up the swept PSS analysis for calculating the 1db compression point
3. In the Fundamental Tones list box, make sure the Auto Calculate button is
highlighted.
4. The Beat Frequency is now displayed as 200M. The Beat Frequency button is
highlighted by default.
5. In the Output harmonics cyclic field, choose Number of harmonics and type
7. Highlight the Sweep button. There is a little change in the form after the
button is highlighted.
8. Type prf in the variable name field. Choose Start-Stop for the Sweep Range,
and then type -50 and 0 for the Start and Stop values, respectively, in the fields.
9. Choose Linear for the Sweep Type, and specify 5 for the Number of Steps.
10. The completed Choosing Analyses form looks like the one below.
P. 25/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
12. When the simulation is finished, choose Results - Direct Plot – Main Form.
This value specifies the point where the ideal amplification curve intersects the
output curve. If you do not specify a value, the plot defaults to the minimum
variable value.
15. In the Harmonic list box, highlight harmonic 1 (200 MHz). This is the IF
frequency.
P. 26/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
17. In the Schematic window, click on the output port and the Waveform
P. 27/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
P. 28/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
Setting up the PSS analysis for calculating the IP3 of the receiver
18. Click on the rf voltage source in the Schematic window and press q to edit
23. Add variable frf2 in the field Design Variables, as we did in part B. Its value
is set to be 5.22GHz.
24. In the Simulation window, choose Analyses – Choose and choose pss for the
25. In the Fundamental Tones list box, make sure the Auto Calculate button is
26. In the Output harmonics cyclic field, choose Number of harmonics and type
12 are IM3.
28. Highlight the Sweep button. Type prf in the variable name field. Choose
Start-Stop for the Sweep Range, and then type -50 and 0 for the Start and Stop
29. Choose Linear for the Sweep Type, and specify 5 for the Number of Steps.
30. The completed Choosing Analyses form looks similar to the simulation of
P. 29/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
1. When the simulation is finished, choose Results - Direct Plot – Main Form.
P. 30/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
4. Type -30 for Extrapolation Point (dBm). This value is the intercept point for the
ideal amplification extrapolation. If you do not specify a value, the plot defaults to
5. Highlight 12 240M in the 3rd Order Harmonic list box and 10 200M in the 1st
P. 31/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
J. Setting up the PSS and pnoise analysis for calculating the noise figure of the
receiver
1. Click on the rf source in the Schematic window and press q to edit the
properties of the voltage source. Change the field, source type, from sine to dc.
2. Type 27 in the field “Noise temperature”. (The default value is not 27oC, if
P. 32/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
4. Choose Analyses – Choose and pss for the Analysis in the Choosing Analyses
form.
5. In the Fundamental Tones list box, if the frf and frf2 tones are still there,
delete them first and only the flo can be left here. That is because we have already
set the source type to dc in the input port and frf and frf2 should not be effective.t
7. In the Output harmonics cyclic field, choose Number of harmonics and type
9. Make sure that the sweep button is now unchecked this time.
2. The Choosing Analyses form changes to let you specify data for a pnoise analysis.
4. Type 100M and 1G as the Start and Stop values, respectively in the fields (the
P. 34/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
5. In the Sidebands cyclic field, choose Array of indices and type 1 for the Array of
indices. With this setting, it means that RF frequency contributes noise to the
output.
7. In the Output Voltage option cyclic field, choose port for the Output value.
Highlight the Output Port Instance Select button. Then click on the IF voltage
8. In the input Voltage option cyclic field, choose port for the input value. Highlight
the Input Port Instance Select button. Then click on the RF voltage source in the
Schematic window.
9. Type 1 in the Reference Sideband field. This field specifies that RF frequency is
10. The completed Periodic Noise Analysis section of the Choosing Analyses form
P. 35/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
12. When the simulation is finished, choose Results - Direct Plot –Main Form.
13. Highlight pnoise for Analysis Type and highlight Noise Figure for Function.
14. Click on Plot in the PSS Results form. The Waveform window displays the noise
P. 36/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
The Y axis has extremely small range, you should enlarge the range and make the
To change the range of the Y axis, right click the area of the Y axis and select Axis
properites.
P. 37/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
Choose Scale, and change the Mode to manual. Then you can change the range of the
Y axis.
P. 38/39
Verilog-A SpectreRF Simulation Tutorial Notes 07 Dec. 2020
After changing the scale, the Noise figure will look like the picture below. You can
add a maker by select the wave of the noise figure and then press “m”.
K. Reference
Cadence manual.
P. 39/39