DOST-ASTI Electric Manual
DOST-ASTI Electric Manual
DOST-ASTI Electric Manual
System
Training Manual
(Version 6.03)
Loading Electric
Load Electric by either clicking the Electric icon on the desktop or by clicking on
Start Programs Electric.
The Electric Display
Shown below is a typical Electric display with some of its essential features.
Components Menu
Pulldown Menu
Editing Window
Messages Window
Status Area
The editing window or design window is the largest window that initially says No
facet in this window (this indicates that no circuit is being displayed in that window).
The messages window is a text window that is typically found at the bottom of the
screen. This is used for all textual communication.
The pulldown menu contains a list of command options.
The components menu shows a list of nodes or components (in black outline) and
arcs or wires (in red outline) that can be used in the design. The selected arc is highlighted
with a bolder red outline.
The status area provides useful information about the design state.
SCHEMATIC
Setting the Schematic Technology
1. Click on Technology Change Current Technology from the pulldown menu.
2. Select schematic, analog as the technology (you will have to scroll down to find it).
3. Click OK. Notice that the symbols in the components menu will change to a
schematic set.
4. Click on the 4 Port box in the components menu. This will convert all the
transistors in the components menu to 4-port transistors.
Changing the Lambda Size
1. Click on Technology Change Units.
2. Change Lambda Size to 2000.
3. Change Display Units to Microns.
4. Change Internal Units to Half-Millimicrons.
5. Click OK.
Creating a New Library
1. Click on File New Library on the pulldown menu.
2. Type the library name that you want to create.
3. Click OK.
4. To save the new library, click on File Save Library on the pulldown menu.
5. On the Library File Creation window, browse through the file folders and select the
folder where you want to save the library.
6. Click OK. A message confirming that the new library has been saved will be
displayed in the message window.
Creating a New Schematic Facet
1. Click on Facets Edit Facet.
2. Select the appropriate library.
3. Click New Facet.
4. Type the facet name that you want to create. Set the facet view to schematic.
5. Click OK.
Adding Components
1. Select the desired device in the components menu by using the left mouse button. A
white outline will appear around the chosen component.
2. Click on the design window to drop the component.
Selecting Components and Ports
1. To select a component, left click on the node or component in the
design window. A box that highlights the component appears, which
indicates that it has been selected.
In the second and third figure on the right, DC voltage sources are
shown with highlights indicating that these components were selected.
2. Ports are the connection sites on nodes where the wires connect. A
single node could have several ports. To select a port, click inside the
figure of the node near the location of the desired port.
The second and third figures on the right are voltage sources with the
positive and negative terminals selected, respectively.
Table 1
Export Pin
Vdd
Gnd
Input
Output
Export
Characteristic
Power
Ground
Input
Output
Adding Wires
1. In the components menu, check if the wire arc (blue line) is highlighted (with a bold
red outline). If it is not highlighted, click on the wire arc to select it.
2. Select the wire starting point by left clicking the component near the desired port.
Make sure that the desired port is highlighted, as discussed in Selecting Components
and Ports, before proceeding to the next step.
3. To create the wire, right click on another device port (to connect two device ports) or
anywhere on the design window (to create a wire segment). Once a wire has been
created, the other end is highlighted.
Adding Voltage/Current Sources
1. In the components menu, click the Spice node to access the Spice list.
2. Choose Voltage/Current Source from the Spice list.
3. Click on the design window to drop the voltage/current source.
4. Type the appropriate SPICE card parameters in the SPICE Card window. Table 2 is
a list of SPICE card formats for the different types of sources.
5. Click OK.
Adding Voltage/Current Meters
1. In the components menu, click the Spice node to access the Spice list.
2. Choose Voltage/Current Meter from the Spice list.
3. Click on the design window to drop the voltage/current meter.
4. To plot the voltage across a device, connect the voltage meter in parallel to that
device. To plot the current through a device connect the current meter in series to
that device.
Choosing the Circuit Analysis
1. In the components menu, click the Spice node to access the Spice list.
2. Three options (transient, DC and AC) are available for the circuit analysis. Choose
the appropriate analysis from the Spice list.
3. Click on the design window to drop the chosen analysis.
4. Type the appropriate SPICE card parameters in the SPICE Card window. Table 3 is
a list of SPICE card formats for the different analyses.
5. Click OK.
Table 2
Source Type
DC
Syntax
DC Value
Parameters
Pulse
PULSE(V1 V2 TD Tr Tf PW Pd)
Piecewise
linear (PWL)
PWL(T1 V1 T2 V2 T3 V3)
Sinusoid
Table 3
Analysis
Syntax
Parameters
Transient
DC
AC
With linear
frequency
variation
With decade
variation
With octave
variation
LAYOUT
Setting the Layout Technology
1. Click on Technology Change Current Technology from the pulldown menu.
2. Select mocmossub as the technology (you will have to scroll down to find it).
3. Click OK. The symbols in the schematic menu will change to a mocmos subset.
Changing the Lambda Size
1. Click on Technology Change Units.
2. Change Lambda Size to 350.
3. Change Display Units to Microns.
4. Change Internal Units to Half-Millimicrons.
5. Click OK.
Creating a New Layout Facet
1. Click on Facets Edit Facet.
2. Select the appropriate library.
3. Click New Facet.
4. Type the facet name that you want to create. Set the facet view to layout.
5. Click OK.
Adding Nodes
1. Select a node from the components menu by using the left mouse button.
2. Click on the design window.
Note: Nodes in the mocmossub components menu are the ones in blue outlines.
Adding Arcs
1. Select an arc in the components menu.
2. Choose the arc starting point by left clicking the node near the desired port. Make
sure that the desired port is highlighted before proceeding to the next step.
3. To create the arc, right click on another node port (to connect two node ports) or
anywhere on the design window (to create an arc segment). Once an arc has been
created, the other end is highlighted.
Note: Arcs in the mocmossub components menu are the ones in red outlines.
SIMULATION
Simulating the Circuit Behavior Using WinSpice
1. Run WinSpice by clicking on Start Programs WinSpice.
2. Open the *.cir file in WinSpice.
3. Wait until WinSpice starts displaying the simulation data. Press Esc to skip the
viewing of data points. WinSpice will automatically plot in a single window all
voltages and currents that were specified in the schematic.
Plotting Waveforms in Separate Windows
There are 2 ways to plot the parameters in separate windows.
Through the cir file:
1. Open the *.cir file using Notepad or any other text editor program.
2. Add the following line for each parameter to be plotted in a separate window:
.PRINT <analysis type> <parameter> <node name in parenthesis>
3. Run the simulation in WinSpice.
Example:
Plotting several parameters in one window,
The above picture shows the transient response of Va, Vb and Vout superimposed in
one plot. To plot each parameter in separate windows, delete the above code and
rewrite it as:
.PRINT TRAN V(Va)
.PRINT TRAN V(Vb)
.PRINT TRAN V(Vout)
Open Library
Save All Libraries
Quit
Cut
Copy
Paste
Duplicate
Undo
Redo
Rotate 90 Degrees Counterclockwise
Select All
Edit Facet
Down Hierarchy
Up Hierarchy
Look Inside Highlighted
Create Export
Fill Window
Zoom Out
Zoom In
Fit to Screen
Focus on Highlighted
Left
Right
Up
Down
Toggle Grid
Delete Window
Get Info
10
Ctrl-O
Ctrl-S
Ctrl-Q
Ctrl-X
Ctrl-C
Ctrl-V
Ctrl-M
Ctrl-Z
Ctrl-R
Ctrl-J
Ctrl-A
Ctrl-N
Ctrl-D
Ctrl-U
Ctrl-P
Ctrl-E
Ctrl-9
Ctrl-0
Ctrl-7
Ctrl-9
Ctrl-F
Ctrl-4
Ctrl-6
Ctrl-8
Ctrl-2
Ctrl-G
Ctrl-W
Ctrl-I
11
Unconnected Nodes
Error in x.cir on line x : mnodex Vout Vin 0 * N L=0.35U W=0.80U
Error in x.cir on line x : mnodex Vdd Vin Vout * P L=0.35U W=3.20U
Only level 9 B3S0I can have 5 nodes
Note: * in the beginning of a line denotes it is a comment in the program and is therefore not an error, while an *
within a command denotes a missing node in the program
3. Check the schematic for unconnected nodes in the transistors. For this example, the
bulk nodes are unconnected. Connect the bulk correspondingly (to ground for NMOS
and to Vdd for PMOS).
4. Save the schematic and recreate the SPICE netlist. Check if the line is correctly
modified by opening the *.cir file again.
Corrected Example: Mnode5 Vout Vin 0 0 N L=0.35U W=0.80U
Mnode6 Vdd Vin Vout Vdd P L=0.35U W=3.20U
Missing Model Files
Unable to find definition of model 1 default assumed
Error: no unlabeled parameter permitted on mosfet
Error: unresolved model or device references: -p n
To remove this type of error, follow these steps.
1. Open the *.cir file using Notepad or any other text editor program.
2. Check if the model files for NMOS and PMOS are at the top most part of the file.
Example:
.model P PMOS
+
+
.model N NMOS
+
+
12
TIPS
Checking for Connectivity
Click on a component. All connections to the component should appear highlighted.
Example:
Notice that all the nodes connected to ground are highlighted. An example of an
unconnected wire is shown below:
The ground in black circle is not connected to the rest of the nodes connected to ground. If
this is the case, do the following:
1. Save the library (Ctrl-S).
2. Open the same library without closing the current facet.
3. Check for connectivity. The nodes concerned should now all be highlighted.
13
Transistor Layout
1. Overlapping two nodes does not automatically connect them. This will only generate
spacing errors. Make sure to connect them first using an arc and then move them closer
as in the example below:
a. Unconnected
b. Connected
c. Compress further
2. Try to move the node closer one step at a time while checking the message window
to see if a DRC error is generated. Or you can perform the DRC independently as
specified in the Layout section of this manual.
3. Checking their connectivity is the same as with the schematic. Clicking a node should
highlight all that is connected to it as in the figures below.
Connected
Unconnected
14
5. Uncheck ends extend (This option sizes the node / arc in proportion to the node
width).
6. Another cause of spacing errors is multiple components that are overlapping. One can
easily identify this by moving the component concerned and checking if there is an
extra component under it as in the example below.
In this case, the extra component is not connected to the other nodes and so it
generates the other spacing errors. Simply delete the extra component and run a
DRC again.
7. If there is still a spacing error, then the two nodes must be really too close. One of
the nodes should therefore be moved until the error disappears.
15
16
Metal-2
Metal-3
Metal-4
Metal-5
Metal-6
2-metals: 3 wide
3 wide
3 apart
4 apart
1 over via1 1 over via1
3-metals: 3 wide
3 wide
5 wide
3 apart
3 apart
3 apart
1 over via1 1 over via1/2 2 over via2
4-metals: 3 wide
3 wide
3 wide
3 wide
3 apart
3 apart
3 apart
3 apart
1 over via1 1 over via1/2 1 over via2/3 1 over via3
5-metals: 3 wide
3 wide
3 wide
3 wide
4 wide
3 apart
3 apart
3 apart
3 apart
4 apart
1 over via1 1 over via1/2 1 over via2/3 1 over via3/4 1 over via4
6-metals: 3 wide
3 wide
3 wide
3 wide
3 wide
4 wide
3 apart
3 apart
3 apart
3 apart
3 apart
4 apart
1 over via1 1 over via1/2 1 over via2/3 1 over via3/4 1 over via4/5 1 over via5
17