Você está na página 1de 4

Using S-Edit (Schematic Entry Tool) & T-SPICE (Analog Simulation Tool)

S-edit is a schematic entry tool that is used to document circuits that can be driven forward
into a layout of an integrated circuit. It also provides the ability to perform SPICE simulations
of the circuits using a simulation engine called T-SPICE. T-SPICE can be setup and invoked
from within S-edit.

Step 1: Setup the Directory Structure & download Libraries


a) Log onto a computer.
b) Go to a directory where all of our Tanner EDA projects.

Step 2: Start a New Design & Setup Libraries

a) Start S-Edit:
- Start All Programs Tanner EDA Tanner Tools v16.0 S-Edit v16.0

b) Start a New Design:


Using the pull down menus, create a new design:
- File New - New Design
A dialog will appear asking for a design name and location. When we give the name, Sedit
will create a folder of that name in the directory that you provide that will contain all of the
design files. We should give a descriptive name that represents each simulation we will be
running.
- Enter the name XXX and browse to our directory
- Click OK

c) Create a new Cell


A cell is a design element.
Using the pull down menus, create a new cell view:
- Cell New View:
- enter the cell name YYY. Ensure the design name is XXX and click OK. We can leave
the interface and view names view0.
A blank schematic page will appear. It is a good idea to save this right now.
d) Enter the symbol libraries:
First, you need to include a library which contains the symbols for all basic circuit elements
such as resistors, NMOS, capacitors, etc The libraries for all the basic symbols are in the
path C:\Users\PDA\Documents\Tanner EDA\Tanner Tools v16.0\Process\Generic_250nm.
- On the left side of the S-edit screen youll see a Libraries window, click on the Add
button.
- Browse to C:\Users\PDA\Documents\Tanner EDA\Tanner Tools
16.0\Process\Generic_250nm and go to following folder then add respective library files

Generic_250nm_AnalogLib
Generic_250nm_Devices
Generic_250nm_IO_Pads
Generic_250nm_LogicGates
Then click OK

We should see a set of libraries appear

Step 3: Setup the Devices, proper elements and their connections

Enter the NMOS (PMOS) transistor

- On the left, click on Devices in the upper window. This will display all of the symbols
available in this group. We can see all of the components that can be implemented on a
CMOS integrated circuit.
- On the bottom left window, click once on NMOS (PMOS). You should see the symbol of
the NMOS (PMOS) transistor shows up in the symbol viewer window at the bottom.
- To place the NMOS (PMOS), you will click on the Instance button. Two things happen
when you click on this button. First, a dialog will appear that will allow you to setup the
parameters for the NMOS (PMOS). Second, the symbol will attach to your mouse. We will
place the NMOS (PMOS) in the schematic first and then set its properties later. This is an
easier way to enter the device. Click in the schematic window to drop an instance of the
NMOS (PMOS). Hit the Esc button to end the insert-mode.
To setup the NMOS (PMOS), click on the NMOS (PMOS) symbol. You will see the
properties of the device on the left. We want to setup the following:
MMn1 (MMp1). The SPICE designation for MOS transistors is to have the name start with
an M. S-edit automatically appends an M to the name is the final name will be MMn1
(MMp1) in the cell0.sp file. But it is good practice to name all MOS transistors with Ms.
- W Set to 1.5u. This is the default.
- L Set to 0.25u. This is the default.

Enter a DC source for VGS or VDS or any input logic:

- Using the same process you used for the NMOS symbol, enter a SPICE Element: voltage
Source. This is a generic voltage source symbol that is configured as a DC, TRAN, PWL,
etc... in its properties dialog.
- Click on the dc voltage source and enter the following:
- Master Interface: DC (this is the default but this is how you would change it to something
else.
- This is where you will set the DC voltage (i.e.,2.5v).
However, usually for transfer characteristics we will use a parameter instead of a hardcoded
value. We will enter a parameter name here and then set up the parameter later. Enter
VDC_param for the value of V. When performing a DC sweep, you must use parameters
for the sweep.

Entering Vdd
- Using the same process as above, enter vdd from Misc: Vdd

Entering Grounds
- Using the same process as above, enter grounds from Misc: Gnd

Entering Wires
- You can enter wires by clicking on the wire icon at the top. Enter wires by clicking on a
symbol node and then dragging. Enter corners by clicking once where you want to turn.

Entering the Ports:


Ports are entered using the icons on the top of the S-edit window. Enter the following:
In Port: Name it IN
Out Port: Name it OUT

Entering the Pulse Voltage Source


All voltage sources are the same component in the SPICE Elements library. The default is
DC, but this can be changed to any other type of source in the properties dialog.
Name = Vin_Source
MasterInterface = Pulse
Period = 1ns
Pulse Width = 0.5ns
VHigh = 2.5v
VLow = 0v
Rise Time = 10ps
FallTime = 10ps

- Entering a Load capacitor from the Devices library


Name = Cload C =50fF

Step 4: Setup the Parameters that will be used during the DC sweep analysis

When we entered the VGS and VDS sources, we set their values to VGS_param and
VDS_param. We now need to setup these parameters.
Using the pull down menus:
- Setup SPICE Simulations
- On the left, click on Parameters
- On the right, click on the Add Parameters button (it is in the upper right corner next to the red
X)
Enter: Name: VGS_param
Value: 1v (for Example)
- On the right, click on the Add Parameters button
Enter: Name: VDS_param
Value: 2.5v (for Example)
We will overwrite these values during our sweep, but the parameters need to exist first.

Step 5: Setup the SPICE DC Sweep Analysis

Using the pull down menus:


- Setup SPICE Simulations
- On the left, click on DC Sweep Analysis
- On the right, enter the following for Source (this is what will be swept)
Source or Parameter Name: VDS_param
Start Value: 0
Stop Value: 2.5
Step: 0.1
Sweep Type: Lin
- On the right, enter the following for Source (this is what will be swept)
Source or Parameter Name: VGS_param
Start Value: 1
Stop Value: 1.5
Step: 0.5
Sweep Type: Lin

NOTE: The first parameter you setup in this dialog will be plotted on the independent
axis.

Você também pode gostar