Professional Documents
Culture Documents
R.E. Betz
School of Electrical Engineering and Computer Engineering
The University of Newcastle, Australia
Created: July 21, 2000
Last modied: March 19, 2002
Generated: March 19, 2002
Introduction
vd
vL
vR
vS
Saber ground
node
Figure 1: Simple single phase, half wave rectier, with an LR load.
simulation times we shall be using idealised components from the Saber parts
library. If one wanted to work out the power dissipation in semiconductor
components then the more realistic real component libraries would have to be
used, but use of these makes the simulation times considerably longer.
The circuit to be simulated is shown in Figure 1. It is a simple single phase
half wave rectier circuit. The only complication is that it has a load that
includes inductance.
The rst step in the circuit simulation process is to capture the circuit schematic.
This is achieved by using the SaberSketch section of the Saber suite. Figure 2
shows the initial screen that appears when SaberSketch is invoked (via the Start
menu).2
The sequence of steps to follow to set-up a design are as follows.
Create the design: This is achieved by selecting the FileNewDesign pulldown menu. If we wanted to open an existing design then one would use
OpenDesign, and then navigate to the desired le. Often if SaberSketch
starts it will load the last design le automatically.
2 The drawing area is shown in white in this gure. This has been done to prevent toner
wastage when this document is printed.
{
Zooming
controls
Grid
control
Select to
draw a line
Invoke SaberGuide
Parts
menu
works if a mouse driver that recognises the middle mouse button is installed.
number formats. Saber uses a set of multiplier factors which are shown in
Table 1. One can of course use whole numbers, and also scientic notation
if desired e.g. 25e-4 for 0.0025.
It should be noted that the ref property name contains a unique name for
the part on the schematic. Sometimes if a part is copied on the schematic
this name is not changed appropriately (this appears to be a bug in the
software). Therefore one gets duplicate part references, and consequently
the simulation fails. One has to manually change the ref name if this
occurs.4
The visibility eld allows one to nominate whether the property value (the
visibility button is half on), or the property name and property value (the
visibility full on), are to be displayed on the schematic. If the button is
o then nothing about that property is displayed on the schematic.
In a manner similar to the placement of the diode all the other components
are placed on the schematic. The wires that join the components are drawn
by moving the cursor over one of the component node points. The cursor
will change to a cross-hair and pressing and holding the left mouse button
will allow a wire to be drawn. There is a grid that wires and components
lie on, which makes drawing the lines very simple. If for some reason the
cursor does not change (for examples one is drawing a line not connected
to a component, then the wire drawing tool can be selected (see Figure 2).
A wire which does not terminate on a component node can be terminated
by double-left-clicking at the point where one wishes to stop the wire.
Place a Saber ground node: A schematic must contain a ground reference
designator for the simulator to be able to function. This symbol is called
Ground (Saber Node 0) in the parts library. This ground symbol can be
located in a number of places in the parts library tree. The ground is
connected to the point in the schematic from which all the voltages in the
design will be measured.
Wires: We have already mentioned how to draw wires on the schematic. One
can also select a wire and delete it by pressing delete on the keyboard, or
right clicking and selecting Delete Wire on the drop-down menu. One can
also alter the properties of a wire by right-clicking on the selected wire
and selecting Attributes... on the drop-down menu (see Figure 4 for an
example of the Attributes... window). For example, one can change the
name of a wire in the Name eld in the window, and then select whether
this name should be displayed on the schematic (which is often very handy
for documentation reasons).
Repeat the above steps until the complete circuit shown in Figure 1 has
been drawn. At this point we are now ready to start the simulation phase of
the exercise.
4 A part can be copied by selecting the component and then moving the cursor to the
place where one wishes to have the duplicate component, and then clicking the middle mouse
button.
Name
femto
pico
nano
micro
milli
kilo
mega
Scientic Notation
1015
1012
109
106
103
103
106
Saber shortcut
f
p
n
u
m
k
meg
In order to carry out the simulation of a design one now has to invoke the
simulator. This is achieved by pressing the SaberGuide button (see Figure 2).
One then gets the screen shown in Figure 5. Note the new toolbar at the top
of the screen. This toolbar allows one to control the Saber simulator from the
SaberSketch window.
The main tool used in SaberGuide is the DC/Transient button shown in
Figure 5. If one clicks on this button then the window shown in Figure 6
appears. The parameters circled should be lled out so that the end time and
time step of the simulation are set-up, and the simulator will automatically open
SaberScope upon the completion of the simulation. One can see that there are
a number of other tabs on the window. In more sophisticated simulations some
of these may have to be used. The only other one that we shall look at in this
simulation is the Input Output tab, which is shown in Figure 7. The circled
quantities have been altered from the default values. These alterations cause to
simulator to save all the signals in the design, and all types of variables (across
variables (i.e. voltages) and through variables (i.e. currents)).
Remark 1 One can also select specic signals for the simulator to save. This is
essential in large simulations otherwise the output les produced by the simulator
are huge. The signals can be selected using the Browse Design... selection from
the Input OutputSignal ListSelect sub-menu. Note that the simulator has
to be running to carry out this function, therefore it is necessary to start a
simulation and stop it (using the Stop button), and then reenter this menu to
carry out this function.
Once all this information has been lled out then one simply clicks OK at the
bottom of the window and the simulation will begin. It rstly netlists the design,
and if this is successfully completed it will work out the dc starting condition,
and then nally start the transient analysis. A rotating icon in the top right
corner of the Saber window indicates that the simulator is running. When it
nishes, which is very fast in the case of this simulation, the simulator will
automatically open up SaberScope to allow the results of the simulation to be
post-processed.
If SaberScope has not been set to automatically open then it can be opened
manually via the ResultsView Plotles in Scope... menu item.
If SaberScope opens automatically it loads the plot le just generated by the
simulator (because of the setting made in the DC/Transient screen), and then
displays the plot le opened in the Signal Manager window, and the signals in
this plot le in a second window named after the plot le. The SaberScope
opening window is shown in Figure 8.
Notice in the Diode LR cct.tr signal window that some of the signals have
a + next to them. This means that if one double-left-clicks on them then
another more detailed signal list will expand from this root. One can then
select one of these signals to plot, and then left-click the Plot button. Figure 9
shows the inductor component expanded, and the i(m) signal plotted.
Remark 2 From Figure 9 one can see the advantage of naming signals with
meaningful names, as opposed to the default names given to the signals by Saber.
The default names in the signal list window do not make much sense. When
one is scanning through the signal list for complex designs, it is much easier to
nd the signals/components of interest if the names make sense.
If one wishes to plot a number of variables, then left-click the desired signals holding down the Ctrl key on the keyboard, and then left-click Plot. The
selected signals will all be plotted on separate axes. One can also superimpose
several plots on the one set of axes. This can be achieved in two dierent ways,
7
DC and transient
analysis button
4.1
Manipulating Results
One of the very powerful features of the SaberScope system is its ability to
perform calculations on the results of the simulation, and also to take accurate
8
Changed fields
Changed
variables
10
4.2
Fourier Analysis
The Fourier Analysis facility allows one to get frequency response plots for data
produced by the simulator. A Fourier Analysis can only be performed after the
simulator has run, and therefore falls into the post-processing category.
In order to perform a Fourier Analysis one must rstly return to the SaberGuide window (dont close the SaberScope window, simply iconise it to keep
it out of the way). The following steps are carried out to perform a Fourier
Analysis on a periodic waveform.
1. Select the AnalysesFourierFourier... menu.
2. The left window in Figure 11 will show up. I have lled in some values
for this window. The Fundamental Frequency of the output waveforms is
known as it was set by the frequency of the sine wave source in the circuit.
The 80 millisecond time next to the Period End dialogue indicates that we
11
A Practice Exercise
Acknowledgment
This tutorial is partially based on a Saber tutorial written by Dr. B.J. Cook of
the Department of Electrical and Computer Engineering, University of Newcastle, Australia.
14