Lab Manual:: Institute of Aeronautical Engineering (Autonomous)
Lab Manual:: Institute of Aeronautical Engineering (Autonomous)
(Autonomous)
Dundigal, Hyderabad - 500 043
Lab Manual:
Prepared by
Content iv
1 INTRODUCTION 1
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.1 Student Responsibilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.2 Responsibilities of Faculty Teaching the Lab Course . . . . . . . . . . . . . 1
1.1.3 Laboratory In-charge Responsibilities . . . . . . . . . . . . . . . . . . . . . . 2
1.1.4 Course Coordinator Responsibilities . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Lab Policy and Grading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Course Goals and Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Use of Laboratory Instruments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.5 Data Recording and Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.5.1 The Laboratory Note book . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.5.2 The Lab Report / Work Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.6 Cover page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.7 Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.8 Equipment used . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.9 For each partof the lab: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.10 Conclusions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.11 Probing further questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 LAB-1 ORIENTATION 6
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2 Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Prelab Preparation: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4 Equipment needed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4.1 Software Requirements: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.5 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 LAB-2 MOSFETS 7
3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.3 Prelab Preparation: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.4 Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.5 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.5.1 Depletion Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.5.2 Enhancement Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.6 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.7 Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.8 Further Probing Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
i
4.2 Objective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.2.1 Educational . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.2.2 Experimental . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.3 Prelab Preparation: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.4 Equipment needed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.5 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.6 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.7 Further Probing Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
ii
8 LAB-7 Latches 51
8.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.2.1 Educational . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.2.2 Experimental . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.3 Prelab Preparation: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.4 Equipment needed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.4.1 Hardware Requirements: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.5 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8.6 PROCEDURE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.7 output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
8.8 Further Probing Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
9 LAB-8 Registers 54
9.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9.2.1 Educational . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9.2.2 Experimental . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9.3 Prelab Preparation: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9.4 Equipment needed . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9.5 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9.6 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.7 Simualtion Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
9.8 Further Probing Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
iii
11.2.2 Experimental . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
11.3 Prelab Preparation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
11.4 Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
11.5 Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
11.6 Further Probing Experiments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
A Appendix A - Safety 90
B Appendix B - CADENCE 95
iv
INTRODUCTION
1.1 Introduction
This Laboratory course is intended to enhance the learning experience of the student in topics
encountered in AECB27. In this lab, students are expected to gain experience in simulation
and physical layout of analog and digital circuits used in VLSI applications. The VLSI Design
lab consists of a number of experiments illustrating the circuit design of MoSFET amplifiers,
Ring Oscillators, Latches Registers and Complex Logic Gates,. The physical layout design of
Inverters and Complex Logic gates is also covered. How the student performs in the lab depends
on his/her preparation, participation, and teamwork. Each team member must participate in
all aspects of the lab to insure a thorough understanding of the equipment and concepts. The
student, lab teaching assistant, and faculty coordinator all have certain responsibilities toward
successful completion of the lab’s goals and objectives.
1
1.1.3 Laboratory In-charge Responsibilities
The Laboratory In-charge should ensure that the laboratory is properly equipped, i.e., the
Faculty teaching the lab receive any equipment/components necessary to perform the experi-
ments.He/She is responsible for ensuring that all the necessary equipment for the lab is available
and in working condition. The Laboratory In-charge is responsible for resolving any problems
that are identified by the teaching Faculty or the students.
1. Write the work sheets for the allotted experiment and keep them ready before the beginning
of eachlab.
4. Analyze the resultsand get the work sheets evaluated by the Faculty.
5. Upload the evaluated reports online from CMS LOGIN within the stipulated time.
Grading Policy:
The final grade of this course is awarded using the criterion detailed in the academic regula-
tions. A large portion of the student’s grade is determined in the comprehensive final exam of
the Laboratory course (SEE PRACTICALS),resulting in a requirement of understanding the
concepts and procedure of each lab experiment for successful completion of the lab course.
2
the student should learn how to record experimental results effectively and present these results
in a written report.
1. To gain proficiency in designing analog and digital circuits using cadence software
MOSFET
CMOS inverter and NMOS inverter
Ring oscillator
Logic gates
4x1 multiplexer, latches and registers.
Differential amplifier
Common source amplifier and common drain amplifier
Basic current mirror, cascode current mirror amplifiers
3. To develop communication skills through:
3
1.5.2 The Lab Report / Work Sheet
Reports are the primary means of communicating your experience and conclusions to other
profes- sionals. In this course you will use the lab report to inform your LTA about what you
did and what you have learned from the experience. Engineering results are meaningless unless
they can be communicated to others. You will be directed by your LTA to prepare a lab report
on a few selected lab experiments during the semester. Your assignment might be different from
your lab partner’s assignment. Your laboratory report should be filled in worksheets provided
by the Institute.
Graphs should be presented as figures. All the figures should have titles and should be
numbered. Figure captions appear below the figure. Graphs should have labeled axes and
clearly show the scales and units of the axes.
1.7 Objective
Clearly state the experiment objective in your own words.
Secondly, describe the experimental setup and procedures. Do not follow the lab manual in
listing out individual pieces of equipment and assembly instructions. That is not relevant
information in a lab report! Instead, describe the circuit as a whole (preferably with
diagram), and explain how it works. Your description should take the form of a narrative,
and include information not present in the manual, such as descriptions of what happened
during intermediate steps of the experiment.
Thirdly, explain your findings. This is the most important part of your report, because
here, you show that you understand the experiment beyond the simple level of completing
it. Explain (compare expected results with those obtained). Analyse (analyze experi-
mental error). Interpret (explain your results in terms of theoretical issues and relate to
your experimental objectives). This part includes tables, graphs, and sample calculations.
When showing calculations, it is usual to show the general equation, and one worked ex-
ample. All the results should be presented even there is any inconsistency with the theory.
It should be possible to understand what is going on by just reading through the text
paragraphs, without looking at the figures. Every figure/table must be referenced and
discussed somewhere in the text.
4
Finally, provide a summary of what was learned from this part of the laboratory ex-
periment. If the results seem unexpected or unreliable, discuss them and give possible
explanations.
1.10 Conclusions
The conclusion section should provide a take-home message summing up what has been learned
from the experiment:
Briefly restate the purpose of the experiment (the question it was seeking to answer)
Identify the main findings (answer to the research question)
Note the main limitations that are relevant to the interpretation of the results
Summarise what the experiment has contributed to your understanding of the problem.
1.11 Probing further questions
Questions pertaining to this lab must be answered at the end of laboratory report.
5
LAB-1 ORIENTATION
2.1 Introduction
In the first lab period, the students should become familiar with the location of equipment and
components in the lab, the course requirements, and the teaching instructor. Students should
also make sure that they have all of the co-requisites and pre-requisites for the course at this
time.
2.2 Objective
To familiarize the students with the lab facilities, equipment, standard operating procedures,
lab safety, and the course requirements.
2. During this period, the instructor will briefly review the equipment which will be used
throughout the semester.
6
LAB-2 MOSFETS
3.1 Introduction
The Metal Oxide Semiconductor Field Effect Transistor (MOSFET) is one type of FET tran-
sistor. In these transistors, the gate terminal is electrically insulated from the current carrying
channel so that it is also called as Insulated Gate FET (IG-FET). Due to the insulation between
gate and source terminals, the input resistance of MOSFET may be very high such (usually in
the order of Mega ohms).
3.2 Objective
Plotting the (i) output characteristics (ii) Transfer characteristics of an n-channel and p-channel
MOSFET with Cadence.
7
Figure 3.1: Depletion mode MOSFETs
3.6 Procedure
Start by creating a new schematic cell view in your existing or newly created library. Creation
of new library and cell view is already covered in “First Look at Cadence” page.
Schematic creation
Create a new schematic cell view where we shall instantiate a NMOS and apply some Vgs
and Vds and plot the drain currents at different operating points.
8
In a new schematic editor window, press “i”. This will invoke a new subwindow called
Add an instance window.
Figure 3.3:
We can browse for an instance called N-18-MM inside the UMC-18-CMOS library, and
select the symbol view from the browser window.
Figure 3.4:
Now the NMOS is attached to our mouse cursor and we can place the NMOS by just
9
clicking on an empty space on the schematic editor window.
A window shown below will appear where can can change the W and L of the transistor
and even rotate the transistor in all ways and direction by the Rotate, Sideways and Up-
side Down keys.
The top terminal of the NMOS is the drain, bottom one is the source (clear from the
arrow), the terminal on the left is gate and on centre right is body.
Figure 3.5:
Now we have to add dc supply sources. One Vdc source for gate to source voltage and one
for drain to source voltage.
Again invoke add an instance menu by pressing i and browse for an instance called “vdc”
inside analogLib.
Note that analogLib can be sorted by categories by ticking the show category option at
the top of the browser window.
Vdc can be found under analogLib ¿ Sources ¿ Independent ¿ Vdc. Draw the schematic
as shown below.
The wires can be drawn by pressing “w” then click on starting point, then click on ending
point. NOTE that a gnd! instance has to be added to the schematic.
Else the simulator will not be able to resolve the voltages as no reference would be specified
then.
10
Figure 3.6:
Also the W and L of the transistor can be changed at any time by selecting the transistor
and pressing q. the query page “q” is generally used to set properties of all the components
and devices invoked from the library manager.
Once the schematic is ready, press the “Check and Save” button on top left in the schematic
editor window (tick symbol button).
This will check for errors and save and will report if there are any errors or warnings.
Errors cannot be ignored but warnings may be ignored if you are aware and sure that the
warning is harmless.
Also select component parameter below. this will make some more options appear.
Click on select component twice.
This will take you to schematic, click on a voltage source for vgs, then in new popup
window select dc voltage and then OK.
11
Figure 3.7:
Come back to the analysis window by using ALT-TAB and give the start = 0 and stop
1.8V (Since maximum supply is 1.8V for our process).
Now select the drain terminal of the NMOS transistor by clicking on it and then press Esc.
The Final analysis window will look like shown below.
Figure 3.8:
12
Come back to Analog Environment and notice that the output is added and select Simu-
lation and Run or just press the Netlist and Run button on the right (third button from
down).
Now simulation will start and a plot window will appear as shown below
Figure 3.9:
The X-axis is Vgs and the Y-Axis is Id. The Id Vgs curve shown above is for the specified
value of vds (specified to variable vds in analog environ ment window).
Figure 3.10:
13
Parametric Analysis
We can also plot Id Vgs characteristics for more than one value of Vds on the same graph
at the same time. Such plots can be achieved by parametric analysis.
Just like earlier, from analog environment, we select vgs voltage source in component
parameter sweep in DC Analysis. Sweep it from 0 to 1.8V.
Figure 3.11:
To eliminate variable name errors, in this window, choose Setup click on Variable name
and then open sweep 1.
Then select vds as the parametric sweep variable. Give in the range and the number of
steps as shown above.
Then click Analysis click on Start. Simulation will run, and the above shown graph for Id
Vs. Vgs for various vds will be plotted.
3.7 Result
Understand the basic operation and characteristics of MOS transistors.
14
3.8 Further Probing Experiments
1. To plot the (i) output characteristics (ii) Transfer characteristics of an n-channel Depletion
MOSFET.
2. To plot the (i) output characteristics (ii) Transfer characteristics of an p-channel Depletion
MOSFET.
15
LAB-3 CMOS INVERTER
4.1 Introduction
CMOS is also sometimes referred to as complementary-symmetry metal–oxide–semiconductor.
The words ”complementary-symmetry” refer to the fact that the typical digital design style with
CMOS uses complementary and symmetrical pairs of p-type and n-type metal oxide semicon-
ductor field effect transistors (MOSFETs) for logic functions. Two important characteristics of
CMOS devices are high noise immunity and low static power consumption. Significant power is
only drawn while the transistors in the CMOS device are switching between on and off states.
Consequently, CMOS devices do not produce as much waste heat as other forms of logic, for ex-
ample transistor-transistor logic (TTL) or NMOS logic, which uses all n-channel devices without
p-channel devices
4.2 Objective
4.2.1 Educational
Learn the conditions for optimum performance of inverters.
Understand the working of inverters using the volt- ampere and threshold voltage characteris-
tics of MOSFETS.
4.2.2 Experimental
Learn to select the required components from analog library of Cadence software.
Determine the effect of bypass Capacitor on frequency response.
Learn to select the required gates from GPDK library of Cadence software.
4.5 Background
CMOS inverters (Complementary MOSFET Inverters) are some of the most widely used and
adaptable MOSFET inverters used in chip design. They operate with very little power loss and
16
at relatively high speed. Furthermore, the CMOS inverter has good logic buffer characteris-
tics, in that, its noise margins in both low and high states are large. This short description of
CMOS inverters gives a basic understanding of the how a CMOS inverter works. It will cover
input/output characteristics, MOSFET states at different input voltages, and power losses due
to electrical current. A CMOS inverter contains a PMOS and a NMOS transistor connected
at the drain and gate terminals, a supply voltage VDD at the PMOS source terminal, and a
ground connected at the NMOS source terminal, were VIN is connected to the gate terminals
and VOUT is connected to the drain terminals.(See diagram). It is important to notice that
the CMOS does not contain any resistors, which makes it more power efficient that a regular
resistor-MOSFET inverter. As the voltage at the input of the CMOS device varies between 0
and 5 volts, the state of the NMOS and PMOS varies accordingly. If we model each transistor
as a simple switch activated by VIN, the inverter’s operations can be seen very easily:
4.6 Procedure
Below steps explain the creation of new library “myDesignLib” and we will use the same through-
out this course for building various cells that we going to create in the next labs. Execute Tools
– Library Manager in the CIW or Virtuoso window to open Library Manager.
17
Figure 4.2: CMOS inverter cellview
In the Library Manager, execute File - New – Library. The new library form appears..
In the “New Library” form, type “myDesignLib” in the Name section.In the field of Direc-
tory section, verify that the path to the library is set -Database-cadence-analog-labs-613
and click OK.
Figure 4.3:
18
In the next “Technology File for New library” form, select option Attach to an existing
techfile and click ok.
Figure 4.4:
In the “Attach Design Library to Technology File” form, select gpdk180 from the cyclic
field and click OK.
Figure 4.5:
After creating a new library you can verify it from the library manager.
If you right click on the “myDesignLib” and select properties, you will find that gpdk180
library is attached as techlib to “myDesignLib”.
Creating a Schematic Cellview In this section we will learn how to open new schematic
window in the new myDesignLib” library and build the inverter schematic as shown in the
figure at the start of this lab.
19
Figure 4.6:
Figure 4.7:
Click OK when done the above settings. A blank schematic window for the Inverter design
appears.
In the Inverter schematic window, click the Instance fixed menu icon to display the Add
Instance form.
After you complete the Add Instance form, move your cursor to the schematic window
and click left to place a component.
Use the Edit— Move command if you place components in the wrong location.
20
Library name Cell Name Properties/Comments
gpdk180 pmos For M0: Model name =
pmos1, W= wp, L=180n
gpdk180 nmos For M1: Model name =
nmos1, W= 2u, L=180n
You can rotate components at the time you place them, or use the Edit— Rotate
command after they are placed.
Adding pins to Schematic
Type the following in the Add pin form in the exact order leaving space between the pin
names.
Pin names Direction
vin Input
vout Output
Make sure that the direction field is set to input/output/inputOutput when placing the
input/output/inout pins respectively and the Usage field is set to schematic.
Select Cancel from the Add – pin form after placing the pins. In the schematic window,
execute Window— Fit or press the f bindkey.
Adding Wires to a Schematic
Figure 4.8:
21
In the Inverter schematic window, execute Create — Cellview— From Cellview.
The Cellview From Cellview form appears. With the Edit Options function active, you
can control the appearance of the symbol to generate.
Verify that the From View Name field is set to schematic, and to View name field is set
to symbol, with the Tool/Data Type set as Schematic Symbol.
Figure 4.9:
Figure 4.10:
22
Figure 4.11:
Click Delete icon in the symbol window, similarly select the red rectangle and delete that.
Execute Create – Shape – polygon, and draw a shape similar to triangle.
After creating the triangle press ESC key.
Execute Create – Shape – Circle to make a circle at the end of triangle.
You can move the pin names according to the location.
Execute Create — Selection Box. In the Add Selection Box form, click
Automatic.A new red selection box is automatically added.
After creating symbol, click on the save icon in the symbol editor window to save the
symbol.
In the symbol editor, execute File — Close to close the symbol view window.
Building the Inverter-Test Design: Creating the Inverter-Test Cellview
You will create the Inverter-Test cellview that will contain an instance of the Inverter
cellview. In the next section, you will run simulation on this design
23
Figure 4.12:
Figure 4.13:
Click Create — Wire Name or press L to name the input (Vin) and output (Vout) wires
as in the below schematic.
24
myDesignLib Inverter Symbol
analogLib vpulse v1=0, v2=1.8,td=0
tr=tf=1ns,ton=10n, T=20n
analogLib vdc, gnd vdc=1.8
Set the environment to use the Spectre® tool, a high speed, highly accurate analog
simulator. Use this simulator with the Inverter-Test design, which is made-up of analog
components.
The Model Library file contains the model files that describe the nmos and pmos devices
during simulation.
In the simulation window (ADE), Execute Setup - Model Libraries. The Model Library
Setup form appears. Click the browse button to add gpdk.scs if not added by default as
shown in the Model Library Setup form.
Remember to select the section type as stat in front of the gpdk.scs file. Your Model
Library Setup window should now looks like the below figure.
Figure 4.14:
To view the model file, highlight the expression in the Model Library File field and Click
Edit File.
To complete the Model Library Setup, move the cursor and click OK. The Model Library
Setup allows you to include multiple model files. It also allows you to use the Edit button
to view the model file.
Choosing Analyses This section demonstrates how to view and select the different types
25
of analyses to completethe circuit when running the simulation. In the Simulation window
(ADE), click the Choose - Analyses icon. You can also execute Analyses - Choose. The
Choosing Analysis form appears. This is a dynamic form, the bottom of the form changes
based on the selection above.
Figure 4.15:
To set up for DC Analyses: a. In the Analyses section, select dc. b. In the DC Analyses
section, turn on Save DC Operating Point. c. Turn on the Component Parameter. d.
Double click the Select Component, Which takes you to the schematic window. e. Select
input signal vpulse source in the test schematic window. f. Select “DC Voltage” in the
Select Component Parameter form and click OK. g. In the analysis form type start and
stop voltages as 0 to 1.8 respectively. h. Check the enable button and then click Apply.
Figure 4.16:
26
Click OK in the Choosing Analyses Form.
Setting Design Variables Set the values of any design variables in the circuit before
simulating. Otherwise, the simulation will not run.
Set the value of the wp variable: With the wp variable highlighted in the Table of Design
Variables, click on the variable name wp and enter the following: Click Change and notice
value(expr) 2u
Click OK or Cancel in the Editing Design Variables window. Selecting Outputs for
Plotting
Figure 4.17:
Execute Simulation – Netlist and Run in the simulation window to start the Simulation
or the icon, this will create the netlist as well as run the simulation.
27
Figure 4.18:
Figure 4.19:
When simulation finishes, the Transient, DC plots automatically will be popped up along
with log file.
Saving the Simulator State We can save the simulator state, which stores information
such as model library file, outputs, analysis, variable etc. This information restores the
simulation environment without having to type in all of setting again.
In the Simulation window, execute Session – Save State. The Saving State form appears.
Set the Save as field to state1-inv and make sure all options are selected under what to
save field.
Click OK in the saving state form. The Simulator state is saved. Loading the Simulator
State
Parametric Analysis yields information similar to that provided by the Spectre® sweep
feature, except the data is for a full range of sweeps for each parametric step. The Spectre
sweep feature provides sweep data at only one specified condition.
You will run a parametric DC analysis on the wp variable, of the PMOS device of the
Inverter design by sweeping the value of wp.
Run a simulation before starting the parametric tool. You will start by loading the state
from the previous simulation run.
28
Figure 4.20:
Run the simulation and check for errors. When the simulation ends, a single waveform in
the waveform window displays the DC Response at the Vout node.
Starting the Parametric Analysis Tool
In the selection window, double click left on wp.The Variable Name field for Sweep 1 in
the Parametric Analysis form is set to wp.
Change the Range Type and Step Control fields in the Parametric Analysis form. These
numbers vary the value of the wp of the pmos between 1um and 10um at ten evenly
spaced intervals. Execute Analysis—Start: The Parametric Analysis window displays
Figure 4.21:
the number of runs remaining in the analysis and the current value of the swept variable(s).
Look in the upper right corner of the window. Once the runs are completed the waves can
window comes up with the plots for different runs. Note: Change the wp value of pmos
device back to 2u and save the schematic before proceeding to the next section of the lab.
To do this use edits property option.
29
Figure 4.22:
2. Determine the output and transfer characteristics of N MOS inverter with PMOS load.
30
LAB 4 – RING OSCILLATOR
5.1 Introduction
A ring oscillator is a device composed of an odd number of NOT gates in a ring, whose output
oscillates between two voltage levels, representing true and false. The NOT gates, or inverters,
are attached in a chain and the output of the last inverter is fed back into the first.
5.2 Objective
5.2.1 Educational
Design ring oscillator using inverters.
Understand the principle of operation of ring oscillators
5.2.2 Experimental
Plot the output characteristics of ring oscillator
Learn how to form circuit symbol and then use it next level
5.3 Prelab Preparation:
Read Appendix B and Appendix C of this manual, paying particular attention to the methods
of using computer. Prior to coming to lab class, complete Part 0 of the Procedure.
31
5.6 Procedure
Design the Ring Oscillator schematic as shown in Figure with following parameters. Design
procedure is similar to CMOS inverter (Exp 2).
1. For this first design basic CMOS Inverter as shown below. The schematic of an CMOS
Inverter in which the PMOS transistor and NMOS transistor connected together to form
CMOS Inverter. When low input is given, for example (0), PMOS gets ON and high
output (1) is obtained . Similarly, when high input (1) is given, NMOS gets ON and low
output (0) is obtained.
32
Figure 5.2:
Figure 5.3:
3. Input pin (Vin) is formed at the left side of the Inverter. Supply Voltage pin (Vdd) is
given at the top, Ground pin is provided at the bottom. Output pin (Vout) is at the right
side of the Inverter.
33
Test setup of an Inverter:
1. Test setup of an Inverter is shown in above Figure .The supply voltage and the input
voltage is given as 1.2 volt. The Capacitor C is held at the output for the purpose of
storing the charges. Now form the ring oscillator using INVERTER as shown below.
Figure 5.4:
2. The Ring Oscillator shown in below Figure has three stages Inverter. In this ring oscillator,
the output of the first inverter is given to the input of the second inverter and the second
inverter output is given as the input of the third inverter. The output of the third Inverter
is fed back to the input of the first Inverter, since this is an oscillator. In below Figure, The
Transient response of the Ring Oscillator is shown, in which the oscillations are present due
to noise in the form of non uniform waveform. The waveform formed has the maximum
peak voltage of 1.2 V.
3. we need to configure the environment to run our first simulation. In the Analog Environ-
ment window select Analyses Choose. Select “dc” and then“Component Parameter”.
Select “Select Component” and then click on the desired voltage source in the schematic
to sweep. In this case we want to sweep the input voltage source which is V0 in Figure
1-14. Select “dc” as the variable to sweep when the popup window opens. We wish to
sweep the source from the negative supply to the positive supply, so input -1.5 into “Start”
and 1.5 into “Stop”. Select OK.
34
Figure 5.5:
5.7 Output
Figure 5.6:
35
5.8 Further Probing Experiments
1. Draw the output characteristics of 5 stage ring oscillator and compare with 3 stage oscil-
lator.
2. Draw the output characteristics of 7 stage ring oscillator and compare with 5 stage oscil-
lator
36
LAB-5 LOGIC GATES
6.1 Introduction
The basic logic gates are the building blocks of more complex logic circuits. These logic gates
perform the basic Boolean functions, such as AND, OR, NAND, NOR, Inversion, Exclusive-
OR, Exclusive-NOR. These gates can be extended to have more than two inputs. A gate can
be extended to have multiple inputs if the binary operation it represents is commutative and
associative. These basic logic gates are implemented as small-scale integrated circuits (SSICs)
or as part of more complex medium scale (MSI) or very large-scale (VLSI) integrated circuits.
6.2 Objective
6.2.1 Educational
1. Design complex logic gates using NAND and NOR gates.
6.2.2 Experimental
1. Plot the output characteristics of logic gates
2. Learn how to form circuit symbol and then use it next level
2. Cadence software
6.5 Background
A generalized CMOS logic circuit consists of two transistor nets nMOS and pMOS. The pMOS
transistor net is connected between the power supply and the logic gate output called as pull-up
network , Whereas the nMOS transistor net is connected between the output and ground called
as pull-down network. Depending on the applied input logic, the PUN connects the output node
to VDD and PDN connects the output node to the ground.nMOS transistor net is connected
between the output and ground called as pull-down network. Depending on the applied input
37
logic, the PUN connects the output node to VDD and PDN connects the output node to the
ground.
Figure 6.1:
The transistor network is related to the Boolean function with a straight forward
design procedure:
Design the pull down network (PDN) by realizing, AND(product) terms using series-connected
nMOSFETs. OR (sum) terms using parallel-connected nMOSFETS.
Design the pull-up network by realizing,AND(product) terms using parallel-connected PMOS-
FETs. OR (sum) terms using series-connected PMOSFETS.
Add an inverter to the output to complement the function. Some functions are inherently
negated, such as NAND,NOR gates do not need an inverter at the output terminal.
6.6 Procedure:
Schematic Entry Objective: To create a new cell view and build A NAND gate Use the
techniques learned in the Lab2.1 to complete the schematic of NAND gate. This is a table of
components for building the NAND gate schematic.
38
Library name Cell Name Properties/Comments
gpdk180 Pmos Model Name = pmos1,pmos2;
gpdk180 Nmos Model Name =nmos1,nmos2;
Type the following in the ADD pin form in the exact order leaving space between the pin
names.
Figure 6.3:
Building the NAND Test Design: To build NANDtest circuit using your NAND gate
Using the component list and Propertiesor Comments in the table, build the nand-test
schematic as shown below.
39
Library name Cellview name Properties or Comments
myDesignLib cmos-nand Symbol
analogLib Vpulse Define pulse specification as
In lab 2.1
analogLib vdd,vss,gnd vdd=1.8 ; vss= 1.8
Figure 6.4:
40
Figure 6.5: output of NAND gate
41
Figure 6.6:
Figure 6.7:
42
6.7.2 Building the XOR Gate Test Design:
To build cmos-xor-test circuit using your cmos-xor Using the component list and Proper-
ties/Comments in the table, build the cmos-xor-test schematic as shown below.
Figure 6.8:
43
Figure 6.9: output of xor gate
6.8 Result:
Designed and verified dynamic characteristics of NAND and XOR gates.
44
LAB-6 4x1 MULTIPLEXER
7.1 Introduction
A multiplexer is a device that selects between several analog or digital input signals and forwards
the selected input to a single output line. The selection is directed by a separate set of digital
inputs known as select lines. A multiplexer of q inputs has lnq select lines, which are used to
select which input line to send to the output.
7.2 Objectives
7.2.1 Educational
Design complex multiplexers using transmission gates.
Understand the operation of 4 x1 and 8 X 1 multiplexers.
7.2.2 Experimental
Plot the characteristics of a 4x1 digital multiplexer using pass transistor logic
Develop 2 X 1 multiplexers and form circuit symbol so that it can be used for higher order
multiplexers.
45
we will create a transistor schematic and a polygon layout as you are already familiar with, but
we will also create a ”symbol” view that looks like the symbols used above. Then, when we
create higher levels of schematics, such as the 4:1 mux, we can instantiate the 2:1 schematics,
the same as we would do in the layout.
7.6 Procedure
Create transistor level schematic for 2:1 mux using transistor schematic symbols, run simula-
tions to verify design.
Create layout for 2:1 mux by instantiating transistors, check DRC, LVS to verify layout.
Create symbol for 2:1 mux and 4:1 Mux.
Create transistor level schematic for 4:1 mux using 2:1 mux schematic symbols, run simulations.
Create layout for 4:1 mux by instantiating 2:1 mux layouts, check DRC, LVS.
Create symbol for 4:1 mux.
The design flow is repeated in the same manner for each cell in the hierarchy, and this proce-
dure can be repeated indefinitely to create very large/complex designs.
Below is shown the schematic view for the 2:1 mux in this example.
Remember to set the I/O type of your pins to either input or output as appropriate, and to do
”Check and Save” on your schematic before creating the symbol.
Note that the VDD and VSS pins are needed for the connections to the bulk terminals of the
NMOS and PMOS devices.
Even though they don’t appear connected in the schematic, they are connected by reference
when their names were used for the ”bulk node” field when instantiating the transistors.
You would also have to physically make these connections in the layout.
Note that we have used a very useful feature in the schematics editor.
Rather than explicitly wiring control signals S and SB around, we simply create wire stubs and
label them S or SB appropriately.
Cadence knows that all nets with the same name are considered connected. Labels are created
with keystroke ”l” and you must click directly on the wire being labeled when placing the labels
in figure7.2.
46
Figure 7.2: 2x1 multiplexer
that it is more recognizable when we use it in other layouts, and separate the power supply pins
from the inputs.
We can do this by deleting the green box and redrawing four lines in the shape of a trapezoid.
All of these shapes are just for visual purposes - they have no meaning in terms of electrical
design.
The only part of the symbol that is really important to the design are the red squares - these
are the pins, and they are where you will connect wires to when drawing schematics.
You can move these around, but be careful not to delete or rename them.
47
It is always good to perform a ”Check and Save” after making edits - it will make sure that
you have exactly the same pin names in the symbol and the schematic.
Here is the modified symbol view:
Now we are ready to create the schematic for the 4:1 mux.
Start by creating a new schematic view as usual. Then chose ”instantiate”, and browse for
your 2:1 mux cell.
Click three times in your schematic to instantiate three copies of the mux.
You should have ”symbol” selected as the cellview when doing this instantiation.
You will then have something like this:
When creating layouts, you will usually perform a parallel task where you instantiate 3 copies
of the 2:1 mux layout into the 4:1 mux layout, but this is not shown here.
48
Next we connect the muxes according to the original schematic drawing at the top of this
page:
Just as in the 2:1 mux, we need to name all of the pins.
Let’s consider power first. We create the typical pins called VDD and VSS, and again use the
label tool (keystroke ”l”) to make all of the necessary power connections.
Now consider the input pins. We could just create four input pins called A, B, C, and D and
connect them to the four inputs, but this starts to become cumbersome as the number of inputs
grows.
We would like to have a single pin designation for ”Inputs 0 through 3”. This is done in Ca-
dence with bus notation.
When creating your input pins, select ”input” as the I/O type, but enter D(3:0) as the pin
name, and place this pin in the schematic as shown.
The schematic wire connected to pin D(3:0) actually represents four wires. This is very impor-
tant to remember.
When you do the layout, there must actually be four physical wires drawn that correspond to
the four schematic wires.
Also, we only want to connect one wire to each of our 2:1 mux inputs, as they are single signal
inputs.
If we just wire D(3:0) to all inputs as shown below, there is no way to know which input should
go to which mux.
If you perform a ”Check and Save”, you will get warnings about this.
This ambiguity is resolved by creating labels on what we want to be single wires indicating
which signal from D should be used.
Again, this is done with the label command (keystroke ”l”). Labeling the wires as shown below
designates which signal from vector D connects to which mux.
There is a shortcut for this: enter (0:3) as the label name and check the ”bus expansion on”
box before placing the labels, and the next four clicks place labels 0,1,2,3.
We can do the same thing for the two control bits and name the pin S(1:0) as shown below,
but this time use wire labels S(0) and S(1) to indicate both the bus name and the bit number
at the same time.
Also included is the output pin Q, and this is the complete schematic.
49
Now that the 4:1 schematic is done, we can do all the normal things: export the netlist for
simulation, create the layout and run LVS to compare against this schematic, etc.
When you export the netlist, it will actually create a netlist with all 12 transistors connected
appropriately.
Also, we will need a symbol view for this 4:1 mux for when we want to use it in turn in even
higher levels of the schematic hierarchy.
This is done the same way as for the 2:1 mux, by selecting Design-Create Cellview-From
Cellview, and optionally editing the resulting symbol shapes.
7.7 Result
Did the simulation and observed the MUX operation
50
LAB-7 Latches
8.1 Introduction
Latch is an electronic logic circuit with two stable states i.e. it is a bistable multivibrator. Latch
has a feedback path to retain the information. Hence a latch can be a memory device. Latch
can store one bit of information as long as the device is powered on. When enable is asserted,
latch immediately changes the stored information when the input is changed i.e. they are level
triggered devices. It continuously samples the inputs when the enable signal is on.
8.2 Objectives
8.2.1 Educational
Design positive latch using multiplexers.
Design negative latch using multiplexers.
8.2.2 Experimental
Plot the output characteristics of positive latch.
Form circuit symbol for 2 X 1 multiplexer and then use for negative latch.
51
the inverter for strengthening the output. Back to back connected inverters hold the data when
transmission gate is OFF and at the same time Mux sends the latched data to the inverter to
get the correct D at the output
8.6 PROCEDURE
1.Follow the procedure that has been followed till now to make schematic and do analysis on
simulation results.
52
Technology 180nm
Min. Gate Width: 600nm
Max.Gate Width: 1200nm
MOSFET model BSIM 3v3
Nominal Conditions: vdd=1.8v,T=27degrees
Duty cycle: 50%
Nminal Clock Frequency 125MHz
8.7 output
53
LAB-8 Registers
9.1 Introduction
The shift registers are used for temporary data storage. The shift registers are also used for
data transfer and data manipulation. The serial-in serial-out and parallel-in parallel-out shift
registers are used to produce time delay in digital circuits. The serial-in parallel-out shift register
is used to convert serial data into parallel data.
9.2 Objectives
9.2.1 Educational
Design registers using flip flops.
Understand the principle of operation of registers
9.2.2 Experimental
Verify data storage using Registers.
54
easier to use in larger circuits, since the inputs to a flip-flop often depend on the state of its
output.
9.6 Procedure
Draw the Schematic and follow the steps what we did till now and do the simulation .
55
2. Design negative latch using pass gates
56
LAB-9 Differential Amplifier
10.1 Introduction
A differential amplifier is a type of electronic amplifier that amplifies the difference between two
input voltages but suppresses any voltage common to the two inputs
10.2 Objectives
10.2.1 Educational
Design Differential amplifier using MOSFETS.
Explain the operation of Differential amplifiers.
10.2.2 Experimental
Plot the output characteristics of Differential amplifiers.
Learn how to form circuit symbol and then use it for Non invering amplifier.
10.3 Prelab
Read Appendix B and Appendix C of this manual, paying particular attention to the methods
of using computer. Prior to coming to lab class, complete Part 0 of the Procedure.
57
Figure 10.1: differential amplifier
10.6 Procedure
2. Click OK when done. A blank schematic window for the design appears.
58
Figure 10.3:
click left to place a component. This is a table of components for building the Differential
Amplifier schematic. After entering components, click Cancel in the Add Instance form or press
Esc with your cursor in the schematic window.
59
Pin Names Direction
Idc,V1,V2 Input
Vout Output
vdd, vss InputOutput
60
Figure 10.4: differential amplifier symbol
3. Click OK when done. A blank schematic window for the Diff amplifier test design appears.
61
Figure 10.5:
62
Figure 10.6: differential amplifier test schematic
Figure 10.7:
63
Figure 10.8:
64
Figure 10.9:
10.7 Result
Did the simulation and observed the Differential amplifier operation
65
10.8 Further Probing Experiments
1. Design opamp by using differential amplifier
66
LAB-10 NMOS AND CMOS INVERTER LAYOUT
11.1 Introduction
The design rules are formed to translate the circuit design concepts , (usually in stick diagram
or symbolic form) into actual geometry in silicon. The design rules are the effective interface
between the circuit/system designer and the fabrication engineer. The design rules also help
to provide a reliable compromise between the circuit or system designer and the fabrication
engineer. In general the circuit designers expect smaller layouts for improved performance and
decreased silicon area. On the other hand, the process engineer like those design rules that
result in a controllable and reproducible process. In fact there is a need of compromise for a
competitive circuit to be produced at a reasonable cost.
11.2 Objectives
11.2.1 Educational
Understand the lamda based and absolute design rules for optimum VLSI layouts.
11.2.2 Experimental
Do the layout design for NMOS inverter.
Do the layout design for CMOS inverter.
11.4 Equipment
Personal computer
Cadence software
11.5 Background
In this Lambda –base design rules all paths in all layers will be dimensioned in lambda units and
subsequently lambda can be allocated an appropriate value compatible with the feature size of
67
the fabrication process. These design rules are such that, if correctly obeyed, the mask layouts
will produce working circuits for a range of values allocated to lambda. For example,lambda
µ µ
can be allocated a value of 1.0 m so that minimum feature size on chip will be 2 m (2lambda).
Design rules, also, specify line widths, separations, and extensions in terms of lambda.
Creating Layout View of Inverter
1. From the Inverter schematic window menu execute Launch – Layout XL. A Startup Op-
tion form appears.
2. Select Create New option. This gives a New Cell View Form
5. LSW and a blank layout window appear along with schematic window.
3. To rotate a component, Select the component and execute Edit –Properties. Now select
the degree of rotation from the property edit form.
4. To Move a component, Select the component and execute Edit -Move command. Making
interconnection.
6. Move the mouse pointer over the device and click LMB to get the connectivity information,
which shows the guide lines (or flight lines) for the inter connections of the components.
7. From the layout window execute Create – Shape – Path-Create wire or Create – Shape –
Rectangle (for vdd and gnd bar) and select the appropriate Layers from the LSW window
and Vias for making the inter connections.
Creating Contacts-Vias.
You will use the contacts or vias to make connections between two different layers.
68
Figure 11.1: inverter layout
69
Figure 11.2: inverter layout
If there are no errors in the layout then a dialog box appears with No DRC errors found
written in it, click on close to terminate the DRC run.
ASSURA LVS In this section we will perform the LVS check that will compare the
schematic netlist and the layout netlist.
Running LVS Select Assura – Run LVS from the layout window. The Assura Run LVS
form appears. It will automatically load both the schematic and layout view of the cell.
Change the following in the form and click OK.
70
Figure 11.3:
3. Click use template at the bottom of the New Configuration form and select Spectre in the
cyclic field and click OK. The Global Bindings lists are loaded from the template.
Figure 11.4:
4. Change the Top Cell View to schematic and remove the default entry from the Library
List field.
5. Click OK in the New Configuration form.The hierarchy editor displays the hierarchy for
this design using table format.
71
Figure 11.5:
Figure 11.6:
6. Click the Tree View tab. The design hierarchy changes to tree format.
2. In the form, turn on the both cyclic buttons to Yes and click OK.
The Inverter-Test schematic and Inverter-Test config window appears. Notice the window
banner of schematic also states Config: myDesignLib Inverter-Test config.
72
Figure 11.7:
Figure 11.8:
4. Now you need to follow the same procedure for running the simulation. Executing Session–
Load state, the Analog Design Environment window loads the previous state.
5. Click Netlist and Run icon to start the simulation.The simulation takes a few seconds and
then waveform window appears.
6. In the CIW, note the netlisting statistics in the Circuit inventory section. This list includes
all nets, designed devices, source and loads. There are no parasitic components. Also note
down the circuit inventory section.
3. Place the cursor in the text box for Signal1, select the wave button and select the input
waveform from the waveform window.
4. Repeat the same for Signal2, and select the output waveform.
5. Set the Threshold value 1 and Threshold value 2 to 0.9, this directs the calculator to
calculate delay at 50 percent i.e at 0.9 volts.
73
Figure 11.9:
6. Execute OK and observe the expression created in the calculator buffer. Click on Evalu-
ate the buffer icon to perform the calculation, note down the value returned after execution.
Figure 11.10:
4. Click on the Recompute the hierarchy icon, the configuration is now updated from schematic
to av-extracted view.
74
5. From the Analog Design Environment window click Netlist and Run to start the simulation
again.
6. When simulation completes, note the Circuit inventory conditions, this time the list shows
all nets, designed devices, sources and parasitic devices as well.
7. Calculate the delay again and match with the previous one. Now you can conclude how
much delay is introduced by these parasites, now our main aim should to minimize the
delay due to these parasites so number of iteration takes place for making an optimize
layout.
Generating Stream Data Streaming Out the Design
1. Select File – Export – Stream from the CIW menu and Virtuoso Xstream out form appears
change the following in the form.
3. In the StreamOut-Options form select under Layers tab and click OK.
4. In the Virtuoso XStream Out form, click Translate button to start the stream translator.
Figure 11.11:
3. In the StreamOut-Options form select under Layers tab and click OK.
4. In the Virtuoso XStream Out form, click Translate button to start the stream translator.
5. From the Library Manager open the Inverter cellview from the GDS-LIB library and notice
the design.
6. Close all the windows except CIW window, which is needed for the next lab.
75
11.6 Further Probing Experiments
1. Design Layout design for Ring oscillator in NMOS design style
2. Using CMOS design style do the layout design for Ring oscillator
76
LAB-11 LAYOUT OF 2-INPUT NAND, NOR GATES
12.1 Introduction
The design rules are formed to translate the circuit design concepts , (usually in stick diagram
or symbolic form) into actual geometry in silicon. The design rules are the effective interface
between the circuit/system designer and the fabrication engineer. The design rules also help to
provide a reliable compromise between the circuit/system designer and the fabrication engineer.
In general the circuit designers expect smaller layouts for improved performance and decreased
silicon area. On the other hand, the process engineer like those design rules that result in a
controllable and reproducible process. In fact there is a need of compromise for a competitive
circuit to be produced at a reasonable cost.
12.2 Objective
12.2.1 Educational
Understand the lamda based and absolute design rules for optimum VLSI layouts.
12.2.2 Experimental
Do the layout design for two input NAND Gate
Do the layout design for two input NOR Gate
12.3 Prelab Preparation:
Read Appendix B and Appendix C of this manual, paying particular attention to the methods
of using computer. Prior to coming to lab class, complete Part 0 of the Procedure.
77
12.6 Procedure
Use the techniques learned in the Lab2.1 to complete the layout of NAND gate. Complete the
DRC, LVS check using the assura tool.
Figure 12.1:
78
LAB-12 COMMON SOURCE AMPLIFIER
13.1 Introduction
When the input signal is applied at the gate terminal and source terminal, then the output
voltage is amplified and obtained across the resistor at the load in the drain terminal. This is
called a common source amplifier. Here source acts as a common terminal between the input and
output. It is also known as a voltage amplifier or a trans-conductance amplifier. It produces
current gain and voltage gain according to the input impedance and output Impedance. To
produce voltage gain along with high input impedances FET’s are used in these circuit.
13.2 Objectives
13.2.1 Educational
Design common source amplifier using NMOSFETs.
Understand the operation of MOSFET amplifiers.
13.2.2 Experimental
Plot the output characteristics common source amplifier using NMOSFETs.
Plot the transfer characteristics common source amplifier using NMOSFETs.
13.4 Equipment
Personal computer Cadence software
13.5 Back ground
N-channel eMOSFET I-V Characteristics
With a fixed VDS drain-source voltage connected across the eMOSFET we can plot the values
of drain current, ID with varying values of VGS to obtain a graph of the mosfets forward DC
characteristics. These characteristics give the transconductance, gm of the transistor. This
transconductance relates the output current to the input voltage representing the gain of the
transistor. The slope of the transconductance curve at any point along it is therefore given as:
79
Figure 13.1: NMOSFET I-V characteristics
gm = ID/VGS for a constant value of VDS. So for example, assume a MOS transistor passes
a drain current of 2mA when VGS = 3v and a drain current of 14mA when VGS = 7v. The
ratio between drain current-Id and gate to source voltage(vgs) is called the transistors static or
DC transconductance which is short for “transfer conductance” and is given the unit of Siemens
(S), as its amps per volt. Voltage gain of a mosfet amplifier is directly proportional to the
transconductance and to the value of the drain resistor.
13.6 Procedure
13.6.1 Schematic entry
Use the techniques learned in the inverter to complete the schematic of Common Source
Amplifier.
This is a table of components for building the Common Source Amplifier schematic.
80
Library name Cell Name properties/comments
gpdk180 Pmos Modelname=pmos1;W=50u;L=1u;body type:integrated
gpdk180 Nmos Modelname=nmos1;W=10u;L=1u;body type:integrated
Type the following in the ADD pin form in the exact order leaving space between the
pin names. Symbol Creation Objective: To create a symbol for the Common Source
Amplifier
Use the techniques learned in the inverter to complete the symbol of cs-amplifier. Building
the Common Source Amplifier Test Design Objective: To build cs-amplifier-test
circuit using your cs-amplifier
Using the component list and Properties/Comments in the table, build the cs-amplifier-test
schematic as shown below.
81
Library name Cellview name Properties/Comments
myDesignLib csamplifier Symbol
analogLib vsin Define pulse specification as
AC Magnitude= 1; DC Volt-
age= 0;Offset Voltage= 0;
Amplitude= 5m;Frequency=
1K
analogLib vdd,vss,gnd vdd=2.5 ; vss= -2.5 vbias=-
2.5
Use the techniques learned in the inverter to complete the simulation of cs-amplifier, ADE
window and waveform should look like below.
82
Figure 13.5: Common source amplifier symbol in cadence
13.7 Output
83
13.8 Further Probing Experiments
1. Design common source amplifier using PMOSFETs enhancement type
84
LAB-13 COMMON DRAIN AMPLIFIER
14.1 Introduction
In the Common Drain Amplifier configuration, the drain terminal is at AC ground. The input is
applied between the gate and drain terminals, while the output is measured between the source
and drain terminal. Since the drain terminal is common between the input and output side, it
is known as Common Drain Amplifier
14.2 Objectives
14.2.1 Educational
Design common drain amplifier using NMOSFETs Understand the operation of MOSFET
amplifiers.
14.2.2 Experimental
Plot the output characteristics common drain amplifier using NMOSFETs Plot the transfer
characteristics common drain amplifier using NMOSFETs
14.4 Equipment
Personal computer Cadence software
14.5 Background
Figure below shows the source follower circuit in which drain terminal of the device is common.
In this circuit the drain terminal is directly connected to VDD. In CS amplifier analysis we
have seen that in order to achieve the high voltage gain the load impedance should be as high
as possible. Therefore for low impedance load the buffer must be placed after the amplifier to
drive the load with negligible loss of the signal level. The source follower thus worked as a buffer
stage. The source follower is also called as the common drain amplifier. In this circuit, the
signal at the gate is sensed and drives the load at the source which allows the source potential
to follow the gate voltage. The small signal equivalent circuit of the source follower is shown in
Figure below.
85
Figure 14.1: small signal equivalent circuit of the source follower
14.6 Procedure
14.6.1 Schematic Entry
Objective: To create a new cell view and build Common Drain Amplifier Use the techniques
learned in the Lab1 and Lab2 to complete the schematic of Common Drain Amplifier.
86
Type the following in the ADD pin form in the exact order leaving space between the pin
names.
87
Figure 14.4: source follower test symbol
88
Figure 14.5: output
89
Appendix A - Safety
Electricity, when improperly used, is very dangerous to people and to equipment. This is espe-
cially true in an industrial environment where large amounts of power is used, and where high
voltages are present [1]; in environments where people are especially susceptible to electric shock
such as maintenance of a high voltage system (while in operation) or in hospitals where electrical
equipment is used to test or control physiological functions [2, 3]; and in an experimental or
teaching laboratory where inexperienced personnel may use electrical equipment in experimental
or nonstandard configuration.
Engineers play a vital role in eliminating or alleviating the danger in all three types of en-
vironments mentioned above. For conditions where standard equipment is used in standard
configurations, govern- mental agencies and insurance underwriters impose strict laws and regu-
lations on the operation and use of electrical equipment including switchgear, power lines, safety
devices, etc. As a result, corporations and other organizations in turn impose strict rules and
methods of operation on their employees and contractors. Engineers who are involved in using
electrical equipment, in supervising others who use it, and in designing such systems, have a
great responsibility to learn safety rules and practices, to observe them, and to see that a safe
environment is maintained for those they supervise. In any working environment there is al-
ways pressure to “get the job done” and take short cuts. The engineer, as one who is capable
of recognizing hazardous conditions, is in a responsible position both as an engineer and as a
supervisor or manager and must maintain conditions to protect personnel and avoid damage to
equipment.
Because of their non-standard activities, experimental laboratories are exempt from many of
these rules and regulations. This puts more responsibility on the engineer in this environment
to know and enforce the safest working procedures.
The knowledge and habit-forming experience to work safely around electrical equipment and the
ability to design safe electrical equipment begins with the first student laboratory experience
and con- tinues through life. This includes learning the types of electrical injuries and damage,
how they can be prevented, the physiology of electrical injuries, and steps to take when accidents.
90
Physiology of Electrical Injuries
There are three main types of electrical injuries: electrical shock, electrical burns, and falls
caused by electrical shock. A fourth type, ’sunburned’ eyes from looking at electric arcs, such
as arc-welding, is very painful and may cause loss of work time but is usually of a temporary
nature. Other injuries may be indirectly caused by electrical accidents, e.g., burns from explod-
ing oil-immersed switch gear or transformers.
Although electric shock is normally associated with high-voltage AC contact, under some circum-
stances death can occur from voltages from substantially less than the nominal 120 Volts AC
found in residential systems. Electric shock is caused by an electric current passing through a
part of the human body. The human body normally has a high resistance to electric currents
so that a high voltage is usually required to cause lethal currents. This resistance is almost all
in the skin, but when the skin is wet its resistance is much lower. When a person is hot and
sweaty or is standing in water, contact with 120 Volts or less is likely to cause a fatal shock.
Electric shock is not a single phenomenon but is a disturbance of the nerves that is caused by
electric current. A current through a part of the body such as the arm or leg will cause pain and
muscle contraction. If a victim receives an electric shock from grasping a live conductor, a cur-
rent of greater than 15 to 30 mA through the arm will cause muscle contractions so severe that
the victim cannot let go. Similar currents through leg muscles may cause sudden contractions
causing the victim to jump or fall, resulting in possible injuries or death. It is also possible for a
prolonged period of contact of more than a minute or so to cause chest muscles to be contracted,
preventing breathing and resulting in suffocation or brain damage from lack of oxygen.
The predominant cause of death by electric shock is generally attributed to ventricular fibrilla-
tion, which is an uncontrolled twitching or beating of the heart that produces no pumping action
and therefore no blood circulation. Unless corrective action is taken, death follows quickly from
lack of oxygen to the brain. While the amount of current that will cause fibrillation depends on
several variables, 0.5 to 5A through the body will normally cause the very small current through
the heart that causes fibrillation in most people. Larger currents than this through the heart
causes contraction or clamping of the heart muscle and resulting death unless corrective action
is taken. Prolonged contact of more than a minute or so may cause chest muscles to contract,
preventing breathing and resulting in suffocation or brain damage from lack of oxygen.
Death by electric shock is most often attributed to ventricular fibrillation, which is an uncon-
trolled twitching or beating of the heart that produces no pumping action and therefore no
blood circulation. Unless corrective action is taken, death follows quickly from lack of oxygen to
the brain. While the amount of current that will cause fibrillation depends on several variables,
0.5 to 5 amperes through the body will normally cause the very small current (approximately
1 mA) through the heart that is sufficient to cause fibrillation in most people. Larger currents
than this through the heart cause contraction or clamping of the heart muscle, resulting in death
unless corrective action is taken.
Electric burns may be caused by electric currents flowing in or near parts of the body. Such burns
are similar to burns from ordinary heat sources, except that those caused by high-frequency cur-
rents are generally deeper and take longer to heal the other burns. Electrocution will often leave
severe burns at the points where the current entered and left the body.
91
for most conditions, since they result in known voltages at other points in the circuit and provide
easier and better protection against faulty conditions in the circuit. The disadvantage is that a
person standing on a non-insulated floor can receive a shock by touching only one conductor.
Almost all electric power generation, transmission, and distribution systems are grounded to pro-
tect people and equipment against fall conditions caused by windstorms, lightning, etc. Resi-
dential, commercial, and industrial systems such as lighting and heating are always grounded for
greater safety. Communication, computer, and similar systems are grounded for safety reasons
and to prevent or reduce noise, crosstalk, static, etc. Many electronic equipment or instruments
are grounded for safety and noise prevention, also. Common examples are DC power supplies,
oscilloscopes, oscillators, and analog and digital multimeters.
Ungrounded circuits are used in systems where isolation from other systems is necessary, where
low voltages and low power are used, and in other instances where obtaining a ground connec-
tion is difficult or impractical. In the ungrounded circuit, contact with two points in the circuit
that are at different potentials is required to produce an electrical shock. The hazard is that
with no known ground, a hidden fault can occur, causing some unknown point to be grounded,
in which case, touching a supposedly safe conductor while standing on the ground could result
in an electric shock.
1. When hooking up a circuit, connect to the power source last, while power is off.
2. Before making changes in a circuit, turn off or disconnect the power first, if possible.
4. When changing an energized connection, use only one hand. Never touch two points in
the circuit that are at different potentials.
5. Know that the circuit and connections are correct before applying power to the circuit.
6. Avoid touching capacitors that may have a residual charge. The stored energy can cause
a severe shock even after a long period of time.
The above rules and the additional rules given below also serve to protect instruments and other
circuits from damage.
Protecting Equipment
1. Set the scales of measurement instrument to the highest range before applying power.
2. Before making changes in a circuit, turn off or disconnect the power first, if possible.
3. When using an oscilloscope, do not leave a bright spot or trace on the screen for long
periods of time. Doing so can burn the image into the screen.
4. Be sure instrument grounds are connected properly. Avoid ground loops and accidental
grounding of “hot” leads.
5. Check polarity markings and connections of instruments carefully before connecting power.
92
6. Never connect an ammeter across a voltage source, but only in series with a load.
7. Do not exceed the voltage or current ratings of circuit elements or instruments. This
particularly applies to wattmeters, since the current or voltage rating may be exceeded
with the needle still reading on the scale.
When connecting electrical elements to make up a network in the laboratory, it easy to lose
track of various points in the network and accidentally connect a wire to the wrong place. One
procedure to help avoid this problem is to connect first the main series loop of the circuit, then
go back and add the elements in parallel.
Types of Equipment Damage Excessive currents and voltages can damage instruments and
other circuit elements. A large over- current for a short time or a smaller over-current for a
longer time will cause overheating, resulting in insulation scorching and equipment failure.
Blown fuses are the most common equipment failure mode in this laboratory. The principal
causes for these failures include:
incorrectly wired circuits;
accidental shorts;
switching resistance settings while power is applied to the circuit;
changing the circuit while power is applied;
using the wrong scale on ammeter;
connecting an ammeter across a voltage source;
using a low-power resistor box (limit 1/2 amp) when high power is required;
turning on an auto-transformer at too high a setting.
Some type of insulating material, such as paper, cloth, plastic, or ceramic, separates conduc-
tors that are at different potentials in electrical devices. The voltage difference that this material
can withstand is determined by design (type, thickness, moisture content, temperature, etc.).
Exceeding the voltage rating of a device by an appreciable amount can cause arcing or corona,
resulting insulation breakdown, and failure.
Some electrical devices can also be damaged mechanically by excessive currents. An example
is the D’Arsonval meter, the indicator in most analog metering instruments. A large pulse of
over current will provide mechanical torque that can cause the needle to wrap around the pin at
the top of the scale, thereby causing permanent damage even though the current may not have
been on long enough to cause failure due to overheating.
93
1. Shut off all power and remove victim from the electric circuit. If the power cannot be shut
off immediately,use an insulator of some sort, such as a wooden pole, to remove victim
from the circuit. Attempts to pull the victim from the circuit with your hands will almost
always result in your joining the victim in the electric shock.
2. If you are qualified in CPR, check for ventricular fibrillation or cardiac arrest. If either is
detected, external cardiac massage should be started at once. Whether you are qualified in
CPR or not, notify EMS and the ECE Department at once, using the telephone numbers
listed below.
3. Check for respiratory failure and take appropriate action. This may have resulted from
physical paralysis of respiratory muscles or from a head injury. Sometimes many hours
pass before normal respiration returns. Artificial respiration should be continued until
trained EMS assistance arrives.
4. Check for and treat other injuries such as fractures from a fall or burns from current
entry and exit sites. Investigations are always after accidents. As an engineer you will be
involved as a part of the investigating team or in providing information to an investigator.
Information obtained and notes written immediately after the emergency will aid this
investigation and assist in preventing future accidents of a similar nature.
Investigations are always made after accidents. As an engineer, you will be involved as a
part of the investigating team or in providing information to an investigator. Information ob-
tained and notes written immediately after the emergency will aid the investigation and assist
in preventing future accidents of a similar nature.
Emergency Numbers
Fire / EMS: 911 or (864) 656-2222
Student Health Center: (864) 656-2233
ECE Department Office: (864) 656-5650
94
Appendix B - CADENCE
The Cadence tool kit consist of several programs for different applications such as schematic
drawing, layout, verification, and simulation. These applications can be used on various com-
puter platforms. The open architecture also allows for integration of tools from other vendors or
of own design. The integration of all this tools is done by a program called Design Framework
II (DFW). The DFW-application is the cornerstone in the Cadence environment. It provides a
common user interface and a common data base to the tools used. This makes it possible to
switch between different applications without having to convert the data base.
Cadence User Interface In Cadence the user interface is graphic and based on windows, forms,
and menus. The main windows of DFW are: Command Interpreter Window (CIW) is control-
ling the environment. Other tools can be started from here and it also serves a log window
for many applications. Library Manager gives a view of the design libraries and the different
constructions that exists therein. Design Window (DW) shows the current design. It is possible
to have several DW opened at the same time with different, or the same, tools. Text Window
(TW) show text. It can be a log or report that was asked for, or an editor. The menus in
Cadence are mostly pull-downs, i.e. the menu will appear when the title are clicked with the left
button on the mouse. There are also pop-up menus that appear in the background of the design
window on a middle button press. The forms are used for entering some specific information
that is needed by the function called, the size of a transistor for instance.
95
Appendix C - LAMDA BASED DESIGN RULES
96