Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction
Altium Designer is a circuit capture (or drawing), simulation, and printed circuit board (PCB) layout
software. It is similar to a number of others, such as Mentor Graphics PADS and Cadence OrCAD. There
are also a number of other packages that have schematic and PCB layout but not simulation, such as
Autodesk EAGLE and KiCad. Many of the concepts and techniques you will learn in these tutorials can
be applied to any of these.
A schematic sheet is where you draw your circuit, much like you would on paper. Each sheet is also a file
(.SchDoc). The parts (or components) you place on a schematic come from libraries, which Altium calls
“integrated” libraries because they contain a schematic symbol, simulation model, and PCB footprint.
Note that most parts have all three items defined, but not every part.
Connections between parts are called nets. A net is really like a node from your circuit theory course—it
is a connection of two or more components. In this document, we’ll refer to nets simply as “wires”
because most people are more familiar with that word.
On the schematic, wires (or nets) labeled with the same name are automatically connected together.
This can help keep a schematic from becoming cluttered and hard to read because you don’t need to
draw as many wires, but it can also create problems if you are not careful with how you name your
wires!
This is also true of multi-page schematics. All of the schematic sheets (files) within a project are
considered to be one large circuit. Thus, if you name a wire “Va” on one sheet and “Va” on another
sheet, Altium will consider those wires as connected, even though it’s not drawn that way.
This is why you want a separate project for each design. For most of your lab work, your schematics are
simple enough to fit on one page (sheet). If you try to include separate circuits on multiple sheets in the
same project, you run the risk of making connections that you did not intend.
Because Altium uses multiple files for a single project, it is important to keep your files organized. You
should put each project in its own folder with the same name as the project. Within this “project
folder,” you will have the project file, one or more schematic files, and a number of other files
automatically created by Altium.
• DC (also called “Operating Point” or “Bias Point”) – All signals are constant. None of them vary
with time. This is like standard DC analysis of a circuit.
• Transient – Signals are varying with time. The result is a plot of signals versus time.
• AC Sweep (also called “AC Small Signal” or “Sinusoidal Steady-state”) – This is the frequency
response of a circuit. The signals are all sinusoids, so they are varying with time, but the time
dimension isn’t very interesting. We are more interested in how the circuit behaves at different
frequencies. The result is a plot of amplitude and/or phase versus frequency.
• Mixed analog and digital – Many packages now allow both analog and digital components, even
microcontrollers or FPGAs with code “programmed” into them. The simulation tool will
execute the code and determine how the signals from the digital device change at the same
time that it is performing analog circuit analysis. Pretty cool!
SPICE uses a variation of nodal analysis to determine node (net) voltages and then calculates other
quantities from these. Because the software uses node voltages, one node must always be designated
as the reference or “ground.” All other voltages are computed with respect to this “ground” node. (We
call it “ground” even though it is not typically connected to the ground/floor/dirt. This term originated
with power system wiring, like in a house, where there is an actual connection into the ground/dirt.)
The most common simulation mistake is not including a ground designator in your circuit. You should
also label all wires (nets) because this makes the simulation results easier to understand as plots are
labeled with those same names (vs. a default name, like “NetR1_2”).
Altium does allow you to have multiple Simulation Profiles within a project. Each profile is a set of
simulation parameters, including which types of simulations to run and values for parameters like length
of time and frequency range. However, for most circuits in lab, you will not need this extra flexibility.
We will simply have a single circuit and a single simulation profile in each project.
You can find the Baylor template in one of several places (as of this writing):
i. On your course Canvas site (if your instructor has uploaded it)
ii. ECE Lab website: https://www.ecs.baylor.edu/ece/index.php?id=865397
iii. \\ada\group\Production\PCB-Documents\Altium Design Files\Altium files
6. Select File → New → Project → PCB Project. This will create a project file
(some_default_name.PrjPCB) in the Projects tab. The asterisk (star) next to the name indicates
that it has not yet been saved.
7. Select File → New → Schematic. This will create a schematic file (Sheet1.SchDoc) as a “Source
Document” under the project (shown below left). If it appears as a “Free Document” (shown
below right), click and drag it under the project file.
CORRECT! WRONG!
If you correctly set the template (previous page), you should see the Baylor logo in the lower-
right corner of the sheet:
8. Right-click on the project file and choose Save Project. You will get a standard file browser
window (shown below). Navigate to the location that you want to save the file (e.g. your H:
drive on the ECS network). Right-click in the browser window (green arrow), select New (red
arrow), and then Folder (blue arrow). Name this folder with your project name.
9. Double-click the folder to open it. Make your project File Name the same as the folder (not
required, but good practice). Click Save.
10. Right-click your schematic file and choose Save. A file browser window should appear with the
project folder already open. If not, navigate to the project folder. It is recommended that you
change the default name of the schematic (e.g. name it “Lab02_Sheet1.SchDoc”) so that if it
ever becomes separated from the project, you will know what it is.
11. Click the Properties button on the far right (green arrow) to open the Properties panel. If you do
not have a Properties button, click the Panels button (red arrow) and then click Properties (blue
arrow).
Notice that the date and filename are automatically populated. Click anywhere on your
schematic and the Properties panel will automatically hide itself.
13. You are almost ready to start drawing your circuit. Click the Libraries button on the far right
(green arrow below). This will open the Library panel where you can search for parts and add
new part libraries if needed.
14. Click the first drop down arrow to view the installed libraries (red arrow). You should have at
least the “Miscellaneous Devices” and “Simulation Sources” libraries installed. If not, click the
Libraries… button at the top (blue arrow).
a. Change the main Library Path (red arrow) to something similar to that shown below.
b. Install libraries from another location (blue arrow). Choose Install from file…, navigate
to the location shown below (or another location given by your instructor), and select
the file you want to install.
Note: The “Simulation Sources” library is in the “Simulation” folder within the main Library
folder.
Note: You can see more of the list by dragging the dividers between each window within the
dialog. You can also drag the column dividers in the list.
Drag here
Type here
Drag here
17. Double-click on “Res1” in the list and move your cursor over your schematic. BEFORE you click
to place it, press Tab. This will “pause” placement and bring up the Properties dialog for that
part. You can now change the Designator from “R?” to “R1”. Making this change before placing
the part allows Altium to automatically increment the Designator number (i.e. after placing this
resistor, the next one will automatically change to “R2”). Click the pause icon to resume
placement.
19. Click on R2 (the part itself, not the text). Press Spacebar to rotate it 90 degrees. This also works
while placing parts. Your schematic should look like this:
20. Next, we will add a source. Sources are found in the “Simulation Sources” library. Return to the
Libraries dialog, choose that library, delete the “RES” that you typed earlier, and find the “VSRC”
component. Double-click to select it for placement, then press Tab to open its Properties.
Update the Designator to “V1” (green arrow).
Click the Parameters tab (red arrow). Type “5V” (without a space!) for the Value parameter
(blue arrow). Next to the Value parameter, click the “eye” icon (purple arrow) to make the
value visible so it will be displayed on your schematic. Place one source on your schematic, then
press Escape.
21. We need to add a ground or reference node identifier. To add a ground (reference) node
identifier, click the GND Power Port symbol on the upper toolbar. Place two of these.
22. Now you can wire your components together. The shortcut for placing a wire is Place Wire (P,
W). You should now have the following.
a. It improves the readability of the circuit because wires with the same name are
automatically connected together, so you don’t have to draw as many wires.
b. It makes the simulation results easier to understand because plots are labeled with
those same names (vs. a default name, like “NetR1_2”).
In Altium, wire names are called “net labels.” To place them, the shortcut is Place Net Label (P,
N). (You might remember this better by thinking “place name”.) BEFORE placing the name,
press Tab to change it. Label as shown below. You are now ready to simulate.
• Not connecting wires that need to be (Note: right vs. wrong this depends on the circuit you are
trying to create.)
Next Steps
If you want to do a basic DC simulation of your circuit, read the section below. For more advanced
simulation options, see the tutorial: Altium - Simulation Tutorial.
If you want to create a PCB, see the tutorial: Altium - PCB Tutorial Abbreviated
Method 1
24. Select Design → Simulate → Mixed Sim. The following dialog appears. By default, both
Operating Point Analysis and Transient Analysis are checked. Uncheck Transient (green arrow).
25. Change the three-drop-down settings to match the ones shown here. Select the signals in the
list of Available signals that need to be included in the simulation and click the > button to move
them to the list of Active Signals as shown here. Click OK.
Intentional Failures
We will now try some changes to see how the software fails.
Designator
27. Delete the Designator from R1 (red arrow). You can do this by double-clicking on the part (to
bring up the component Properties dialog) or the “R1” text (to bring up a Parameter Properties
dialog).
28. Re-run your simulation. An error message should appear along with the Messages window.
There is one Error message (red arrow) and one Warning (green arrow). Both tell us that a part
is missing its DESIGNATOR parameter.
29. Double-click either the Error or the Warning to highlight the problem part on the schematic
(shown below). Fix the issue by replacing the “R1” designator.
SUMMARY: You need both a Designator and a Value for every component.
33. Re-run your simulation. You’ll notice the simulation runs and opens a new simulation output
(sdf) window, but the Messages window displays some odd information. The two Error
messages say that the wires we named “have no driver.” And depending on how you setup your
simulation, you may not be getting all of the results you want. All of this is the result of not
having the schematic within a project, where the simulation setup information is contained.
(Notice the Warning below that states that “Free Documents simulation setup will not be saved
between sessions.”)
34. Fix this problem by dragging your schematic file back into your project. Re-running your
simulation now should produce correct results.
Method 2
35. Select Design → Simulate → Mixed Sim. The following dialog appears. By default, both
Operating Point Analysis and Transient Analysis are checked. Uncheck Transient (green arrow).
Click OK.
36. This will add a new tab to the main window that contains the results of your simulation (shown
below). You’ll notice that this window has “sub-tabs” of its own at the bottom. These tabs
correspond to the different simulations, so the current one is named “Operating Point” (green
arrow) as expected.
We are going to add signals, or “waves” as Altium calls them, to the simulation results. To do
this, click the Sim Data tab in the bottom left (red arrow). Highlight all of the signals shown
(blue arrow) by clicking on the top one, holding the Shift key, and clicking on the bottom one.
Click Add Wave to Plot (yellow arrow). This will place them in the display list with their value
(figure at right). You can click-and-drag the signal (wave) name to reorder the list.
From this toolbar, you can access the Analyses Setup dialog (wrench icon), run the simulation
(sheet with play icon), and more.
39. Now place Current (“I”) and Power (“P”) probes on R1 and R2. Note that you must place them
right at the end of the component pin, i.e. where the component and wire meet. The “x” under
your cursor will get larger when you are in the right place.
40. Click the Run Active Simulation Profile icon on the toolbar (red arrow) or press F9 (shortcut).
You should get exactly the same list as in Method 1. Note: By default, Altium keeps the
previous results display setup, so you may need to close the results tab (.sdf file) to see any
changes you’ve made. You can change this behavior in the Analyses Setup dialog under SimView
Setup (default is “Keep last setup”).
To show pin numbers, double click on R2 to bring up the Properties dialog. Click the Pins tab
(green arrow) and then click the eye icon to make each pin number visible.
This will display the pin numbers on the schematic (as shown on left below).
42. Pull the wires away and then rotate R2 so that pin 1 is on top (as shown at right above). Re-run
the simulation. The current value will now be positive.
Netlist File
43. While looking at your schematic, go to Design → Netlist for Project → XSpice. This will start the
process of generating a netlist, but the first thing that appears is your simulation settings. Don’t
change anything, simply click OK.
44. The netlist file has now been generated but does not automatically open. Under the Projects
tab in the left-hand sidebar, expand the files under your project. Expand Generated and
AdvancedSim Netlists. Your file will be there (red arrow) with a .nsx extension.