Vlsi Course File
Vlsi Course File
Lecture-1
UNIT-I
COURSE OUTCOMES
After completion of this course, students will be able to
1. Understand basic mos technology with high order effects and the scaling effects on mos transistor
circuit model parameters.
2. Compare different MOS inverters based on inverter parameters with speed and power dissipation
analysis.
3. Apply layout design rules to design layouts of CMOS circuits with the clear understanding of
interconnect issues
4. Describe different types of memories anddynamic CMOS VLSI circuits.
5. Use EDA tools for VLSI Circuit design and model a system using VHDL.
COURSE OBJECTIVES
The course provides for final year undergraduates a solid and fundamental engineering view of
digital system operation and how to design systematically well performing digital VLSI systems
exceeding consistently, customer expectations and competitor fears.
The aim is to teach the critical methods and circuit structures to identify the key of the circuitry on-
chip which dominates the performance, reliability, manufacturability, and the cost of the VLSI
circuit.
With the current utilization of the deep submicron CMOS technologies (0.25 micron and below
design rules) the major design pattern is associated with the fact that the interconnections (metal
Al or Cu wires connecting gates) and the chip communication in general is the main design object
instead of active transistors or logic gates.
The main design issues defining the make-or-break point in each project is associated with power
and signal distribution and bit/symbol communication between functional blocks on-chip and off-
chip.
The course objective is to provide the student with a solid understanding of the underlying
mechanism and solution techniques, so that the student, when working as industrial designer, is
capable of identifying the key problems and focus his creative attention and 90% of available
resources to right issues for 1% of the circuitry and leave the remaining 99% of circuitry to
computer automated tools.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
WHAT IS VLSI ?
VLSI refers
• V : Very
• L : Large
• S : Scale
• I : Integrated Circuits
VLSI is a process of creating an integrated circuit (IC) by combining thousands of transistors into
a single Silicon Chip.
100,000,000
Pentium 4
Pentium III
10,000,000 Pentium II
Pentium Pro
Pentium
Intel486
1,000,000
Intel386
80286
100,000
8086
10,000 8080
8008
4004
1,000
VLSI TECHNOLOGY
CMOS (Complementary Metal Oxide Semiconductor)
CMOS technology uses both PMOS and NMOS transistors
The transistors are arranged in a structure formed by two complementary networks:
Pull-up network and pull-down network
Pull-up network is complement of pull-down
BiCMOS technology is also used in places where high driving capability is required but BiCMOS
consumes more power compared to CMOS.
CMOS
The term CMOS stands for “Complementary Metal Oxide Semiconductor”.
This technology makes use of both P channel and N channel semiconductor devices.
most popular technology in the computer chip design industry
Today’s computer memories, CPUs and cell phones make use of this technology due to several
key advantages.
The main features of CMOS technology are low static power consumption and high noise
immunity.
It draws significant power only during switching between ON & OFF states
VLSI Applications
VLSI is an implementation technology for electronic circuitry - analogue or digital
It is concerned with forming a pattern of interconnected switches and gates on the surface of a
crystal of semiconductor
Microprocessors
personal computers
microcontrollers
Memory - DRAM / SRAM
Special Purpose Processors - ASICS (CD players, DSP applications)
Optical Switches
Mass production of highly sophisticated control systems therefore cheap
Advantages
VLSI has many advantages:
Reduces the Size of Circuits.
Reduces the effective cost of the devices.
Increases the Operating speed of circuits
Reduces the current consumption
Requires less power than discrete components.
Higher Reliability
Occupies a relatively smaller area.
Future Scope
Race is going on to make the devices as small as possible with highest possible efficiency and low
power. For this we surely need smallest possible IC with lot many peripherals in it. But at the same
time, power consumption should be low. Take any of the high end microcontroller IC and see what
all peripherals are into it. ADC, DAC, Communication protocols (SPI, I2C, Serial, Ethernet etc),
timers, crystal oscillators, variety of clock systems etc. For designing such ICs, think for yourself
as how much VLSI has gone far to develop these. Vast scope in this field too.
Today many companies like Texas Instruments, Infineon, Alliance Semiconductors, Cadence,
Synopsys, Celox Networks, Cisco, Micron Tech, National Semiconductors, ST Microelectronics,
Qualcomm, Lucent, Mentor Graphics, Analog Devices, Intel, Philips, Motorola and many other
firms have been established and are dedicated to the various fields in "VLSI" like Programmable
Logic Devices, Hardware Descriptive Languages, Design tools, Embedded Systems etc.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-2
UNIT-II
NMOS FABRICATION
NMOS FABRICATION PROCESS
Each processing step requires that certain areas are defined on chip by appropriate masks. Consequently,
the integrated circuit may be viewed as a set of patterned layers of doped silicon, polysilicon, metal, and
insulating silicon dioxide. In general, a layer must be patterned before the next layer of material is applied
on the chip. The process used to transfer a pattern to a layer on the chip is called lithography. Since each
layer has its own distinct patterning requirements, the lithographic sequence must be repeated for every
layer, using a different mask.
Photoresist
o Photoresist is a light-sensitive material.
o The type of photoresist which is initially insoluble and becomes soluble after exposure to UV light is
called positive photoresist. The process sequence shown here uses positive photoresist.
o There is another type of photoresist which is initially soluble and becomes insoluble (hardened) after
exposure to UV light, called negative photoresist.
o If negative photoresist is used in the photolithography process, the areas which are not shielded from
the UV light by the opaque mask features become insoluble, whereas the shielded areas can
subsequently be etched away by a developing solution.
o Negative photoresists are more sensitive to light, but their photolithographic resolution is not as high
as that of the positive photoresists. Therefore, negative photoresists are-used less commonly in the
manufacturing of high-density integrated circuits.
The entire oxide surface is then covered with a layer of photoresist, which is essentially a light-
sensitive, acid-resistant organic polymer, initially insoluble in the developing solution.
If the photoresist material is exposed to ultraviolet (UV) light, the exposed areas become soluble so
that they are no longer resistant to etching solvents.
To selectively expose the photoresist, we have to cover some of the areas on the surface with a mask
during exposure. Thus, when the structure with the mask on top is exposed to UV light, areas which
are covered by the opaque features on the mask are shielded. In the areas where the UV light can pass
through, on the other hand, the photoresist is exposed and becomes soluble.
Following the UV exposure step, the unexposed portions of the photoresist can be removed by a
solvent. Now, the silicon dioxide regions which are not covered by hardened photoresist can be etched
away either by using a chemical solvent (HF acid) or by using a dry etch (plasma etch) process. At the
end of this step, we obtain an oxide window that reaches down to the silicon surface.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
The remaining photoresist can now be stripped from the silicon dioxide surface by using another
solvent, leaving the patterned silicon dioxide feature on the surface as shown in Fig.
These sequence of process steps actually accomplishes a single pattern transfer onto the silicon
dioxide surface. The fabrication of semiconductor devices requires several such pattern transfers to be
performed on silicon dioxide, polysilicon, and metal. The basic patterning process used in all
fabrication steps, however, is quite similar to the one shown here.
Step 2: Oxidation
The oxidation process is done by using high-purity oxygen and hydrogen, which are exposed in an
oxidation furnace approximately at 1000 0centigrade. A layer of silicon dioxide (SiO2) typically 1
micrometer thick is grown all over the surface of the wafer to protect the surface, acts as a barrier to
the dopant during processing, and provides a generally insulating substrate on to which other layers may
be deposited and patterned.
Step 3: Photoresist
A light-sensitive polymer that softens whenever exposed to light is called as Photo resist layer. It is
formed. The surface is now covered with the photo resist which is deposited onto the wafer and spun to an
even distribution of the required thickness.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Step 4: Masking
The photo resist is exposed to UV rays through the N-well mask. The photo resist layer is then exposed to
ultraviolet light through masking which defines those regions into which diffusion is to take place together
with transistor channels. Assume, for example, that those areas exposed to UV radiations are polymerized
(hardened), but that the areas required for diffusion are shielded by the mask and remain unaffected.
Step 10: Masking and N-diffusion by using the masking process small gaps are made for the purpose of
N-diffusion.
The whole chip then has metal (aluminum) deposited over its surface to a thickness typically of 1 micro m. This
metal layer is then masked and etched to form the required interconnection pattern.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Finally, the metal layer is patterned and etched, completing the interconnection of the MOS transistors on
the surface. Usually, a second layer of metallic interconnect can also be added on top of this structure by
creating another insulating oxide layer, cutting contact, depositing, and patterning the metal.
Lecture-3
CMOS: “Complementary Metal Oxide Semiconductor”
CMOS technology uses both PMOS and NMOS transistors
The transistors are arranged in a structure formed by two complementary networks:
Pull-up network and pull-down network
Pull-up network is complementary of pull-down
CMOS Fabrication
The CMOS can be fabricated using following processes:
N-well process
P-well process
Twin tub process
Silicon On Insulator
For integrating these NMOS and PMOS devices on the same chip, special regions called as “wells”
are required in which semiconductor type and substrate type are opposite to each other.
A P-well has to be created on a N-substrate or N-well has to be created on a P-substrate.
The fabrication sequence consists of a series of steps in which layers of the chip are defined through
photolithography process.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
1. n-well mask
2. Polysilicon pattern
3. n diffusion mask
4. p diffusion mask
5. Contact cut mask
Step 2 – Oxidation: The selective diffusion of n-type impurities is accomplished using SiO2 as a
barrier which protects portions of the wafer against contamination of the substrate. Oxidation process
is carried out by exposing the substrate to high-quality oxygen and hydrogen in an oxidation chamber
at approximately 10000C
Step 3 –Photoresist deposition: To permit the selective etching, the SiO2 layer is subjected to the
photolithography process. In this step, the wafer is coated with a uniform film of a photosensitive.
Step 4 – Masking: In this step, a desired pattern is made using a mask over the photoresist. The substrate
is exposed to UV light. The photoresist present under the exposed regions of mask gets polymerized.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Step 5 – Removal of Unexposed Photoresist: The mask is removed and the unexposed region of
photoresist is etched away by developing wafer in chemical such as Trichloroethylene.
Step 6 – Etching: The wafer is immersed in an etching solution of hydrofluoric acid, which removes
the oxide from the areas through which dopants are to be diffused.
Step 7 – Removal of Whole Photoresist Layer: During the etching process, those portions of SiO2
which are protected by the photoresist layer are not affected. The photoresist mask is now stripped off
with a chemical solvent (hot H2SO4).
Step 8 – Formation of N-well: The n-type impurities are diffused into the p-type substrate through
the exposed region thus forming an N- well.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Step 9 – Removal of SiO2: The layer of SiO2 is now removed by using hydrofluoric acid.
Step 10 – Deposition of Polysilicon: The misalignment of the gate of a CMOS transistor would lead
to the unwanted capacitance which could harm the circuit. To prevent this “Self-aligned gate process”
is preferred where gate regions are formed before the formation of source and drain using ion
implantation.
Polysilicon is used for formation of the gate because it can withstand the high temperature when a
wafer is subjected to annealing methods for formation of source and drain. Polysilicon is deposited by
using Chemical Deposition Process over a thin layer of gate oxide. This thin gate oxide under the
Polysilicon layer prevents further doping under the gate region.
Step 11 – Formation of Gate Region: Except the two regions required for formation of the gate
for NMOS and PMOS transistors the remaining portion of Polysilicon is stripped off.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Step 12 – Oxidation Process: An oxide layer is deposited over the wafer which acts as a shield for
further diffusion and metallization processes.
Step 13 – Masking and Diffusion: For making regions for diffusion of n-type impurities using
masking process small gaps are made.
Using diffusion process three n+ regions are developed for the formation of terminals of NMOS.
Step 14 – Removal of Oxide: The oxide layer is stripped off.
Step 15 – P-type Diffusion: Similar to the n-type diffusion for forming the terminals of PMOS p-type
diffusions are carried out.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Step 16 –Thick Field oxide deposition: Before forming the metal terminals a thick field oxide is
deposited to form a protective layer for the regions of the wafer where no terminals are required
Step 17 – Metallization: This step is used for the formation of metal terminals which can provide
interconnections. Aluminum is preferred.
Step 18 – Removal of Excess Metal: The excess metal is removed from the wafer.
Step 19 – Formation of Terminals: In the gaps formed after removal of excess metal terminals are
formed for the interconnections.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Vin
Vout
VDD VSS
Polysilicon
Oxide
n-diffusion
P-diffusion
Twin-tub structure
( A logical extension of the p-well and n-well)
Vin
Vout
VDD VSS
Epitaxial
n well p well layer
n substrate
Polysilicon
Oxide
n-diffusion
P-diffusion
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-4
BASIC MOS STRUCTURE
MOS structure contains three layers −
The Metal Gate Electrode
The Thin Insulating Oxide Layer(SiO2)
P-Type Semiconductor (substrate)
MOS structure forms a capacitor, with gate and substrate are as two plates and oxide layer as the dielectric
material.
The bulk Fermi level is not significantly affected by the band bending, whereas the surface Fermi level
moves closer to the intrinsic Fermi (mid-gap) level. The Fermi potential at the surface, also called surface
potential φs, is smaller in magnitude than the bulk Fermi potentialΦF.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Fig: The cross-sectional view and the energy band diagram of the MOS structure operating in
accumulation region.
Fig: The cross-sectional view and the energy band diagram of the MOS structure operating in
depletion region.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
o The thickness xd of this depletion region on the surface can be found as a function of the surface
potential φs.
o Assume that the mobile hole charge in a thin horizontal layer parallel to the surface is
o The change in surface potential required to displace this charge sheet dQby a distance xd away
from the surface can be found by using the Poisson equation.
o the depletion region charge density, (which consists solely of fixed acceptor ions) is given by the
following expression
o the surface is said to be inverted when the density of mobile electrons on the surface becomes
equal to the density of holes in the bulk (p type) substrate.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
MOSFET
MOSFET stands for Metal Oxide Semiconductor Field Effect Transistor. This is also called as IGFET
meaning Insulated Gate Field Effect Transistor. The FET is operated in both depletion and enhancement
modes of operation.
MOSFET (IGFET)
Enhancement Depletion
MOSFET MOSFET
MOSFET STRUCTURE
A MOSFET or MOS transistor, is a device where current through a channel between the source and drain
is controlled by the voltage applied to the gate.
In PMOS current is carried by holes and in NMOS it‘s by electrons. Since the mobility is of holes less
than that of electrons PMOS is slower.
The N-channel MOSFETs are simply called as NMOS. The symbols for N-channel MOSFET are as
givenbelow.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
The P-channel MOSFETs are simply called as PMOS. The symbols for P-channel MOSFET are as given
below.
D D
G G
S S
NMOS Enhancement NMOS Depletion
D D
G G
S S
PMOS Enhancement PMOS Depletion
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
MOSFET
(Metal Oxide Semiconductor Field Effect Transistor)
The name Metal Oxide Semiconductor transistor, because the structure consists of a layer of Metal
(gate), a layer of oxide(SiO2) and a layer of semiconductor.
In Enhancement type transistor channel is going to form after giving a proper positive gate voltage.
(Device has +ve threshold). The transistor requires a Gate-Source voltage, (VGS) to switch the device
“ON”. The enhancement mode MOSFET is equivalent to a “Normally Open” switch.
In Depletion type transistor During fabrication, a thin channel is built under the gate. It can be removed
by giving a proper negative gate voltage. (Device has -ve threshold). i.e. The transistor requires the Gate-
Source voltage, ( VGS ) to switch the device “OFF”. The depletion mode MOSFET is equivalent to a
“Normally Closed” switch.
MOS OPERATION
Mode of operation depends on Vgs, Vds, Vgd
Vgs = Vg – Vs
Vgd = Vg – Vd
Vds = Vd – Vs = Vgs – Vgd
Three Regions:
2. “Linear”: Weak inversion; Drain current increases linearly with drain-source voltage.
Vg
+ +
Vgs Vgd
- -
Vs Vd
-
Vds +
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Cutoff
If VGS = 0;
Back-to-back diodes are formed. These back-to-back diodes prevent current conduction from drain to
source when a voltage VDS is applied.
No current between the Source &Drain (ID = 0)
VDS small + ve
ID > 0
• At VDS = 0, thermal equilibrium exists in the inverted channel region, and the drain current IDis equal
to zero.
• If a small drain voltage VDS>0 is applied, a drain current proportional to VDSwill flow from the source
to the drain through the conducting channel.
• This operation mode is called the linear mode, or the linear region.
• As the drain voltage is increased, the inversion layer charge and the channel depth at the drain end
start to decrease.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
For VDS = VDSAT, the inversion charge at the drain is reduced to zero, which is called the pinch-off
point.
Beyond the pinch-off point, i.e., for VDS>VDSAT, a depleted surface region forms adjacent to the drain,
and this depletion region grows toward the source with increasing drain voltages.
This operation mode of the MOSFET is called the saturation mode or the saturation region;
For a MOSFET operating in the saturation region, the effective channel length is reduced as the
inversion layer near the drain vanishes, while the channel-end voltage remains essentially constant and
equal to VDSAT. The pinched-off (depleted) section of the channel absorbs most of the excess voltage
drop (VDS - VDSAT) and a high-field region forms between the channel-end and the drain boundary.
Electrons arriving from the source to the channel-end are injected into the drain-depletion region and
are accelerated toward the drain in this high electric field, usually reaching the drift velocity limit.
NMOS CHARACTERISTICS
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
P-Channel MOSFET
The P- Channel MOSFET has a P- Channel region between source and drain. The drain and source are
heavily doped p+ region and the body or substrate is n-type. The flow of current is positively charged
holes. When we apply the negative gate voltage, the electrons present under the oxide layer with are
pushed downward into the substrate with a repulsive force. The depletion region populated by the bound
positive charges which are associated with the donor atoms. The negative gate voltage also attracts holes
from p+ source and drain region into the channel region.
PMOS CHARACTERISTICS
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Important Points:
• In field-effect transistors (FETS), depletion mode and enhancement mode are two major transistor
types, corresponding to whether the transistor is in an ON state or an OFF state at zero gate-source
voltage.
• Enhancement-mode MOSFETS (metal–oxide–semiconductor FETs) are the common switching
elements in most integrated circuits. These devices are off at zero gate–source voltage. NMOS can be
turned on by pulling the gate voltage higher than the source voltage, PMOS can be turned on by
pulling the gate voltage lower than the source voltage.
• In a depletion-mode MOSFET, the device is normally ON at zero gate–source voltage. Such devices
are used as load "resistors" in logic circuits.
• For an N-type MOSFET, enhancement-mode devices have positive thresholds, and depletion-mode
devices have negative thresholds.
• For a P-type MOSFET, enhancement-mode devices have negative thresholds, and depletion-mode
devices have positive thresholds.
Lecture-5
Threshold Voltage
The value of the gate-to-source voltage VGS needed to cause surface inversion (to create the
conducting channel) is called the threshold voltage VT0.
For gate-to-source voltages larger than the threshold voltage, a larger number of electrons are attracted
to the surface, which contribute to channel current conduction.
Further increasing the gate to source voltage beyond the threshold voltage will not affect the surface
potential and the depletion region depth.
Now, the third component of the threshold voltage is the necessary to offset the depletion region
charge. which is due to the fixed acceptor ions located in the depletion region near
the surface.
We know that depletion region charge density is which solely consist of acceptor ions is given by
Q = -qNAxd= - -
So, = Q = - -qNAxd= - -
Now if body of the MOSFET is attached with potential other than ground potential then a source to
substrate voltage (VSB) is added to it
= -qNAxd= - -
The generalized form of the threshold voltage can also be written in terms of VT0
Thus, the most general expression of the threshold voltage VT can be found as follows:
The threshold voltage expression can be used both for n-channel and p-channel MOS transistors.
But some of the terms and coefficients in this equation have different polarities for the n-channel
(nMOS) and for the p-channel (pMOS).
The reason for this polarity difference is that the substrate semiconductor is p-type in an n-channel
MOSFET and n-type in a p-channel MOSFET.
o The substrate Fermi potential ΦF is negative in nMOS, positive in pMOS.
o The depletion region charge densities QB0 and QB are negative in nMOS, positive in pMOS.
o The substrate bias coefficient is positive in nMOS, negative in pMOS.
o The substrate bias voltage VSB is positive in nMOS, negative in pMOS.
Typically, the threshold voltage of an enhancement-type n-channel MOSFET is a positive quantity,
whereas the threshold voltage of a p-channel MOSFET is negative.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-6
Vds-Ids Characteristics
• The MOS transistors are voltage controlled device. A voltage on the gate terminal induces a charge in
the channel, that move from source to drain under the influence of electric field generated by voltage
Vds applied between drain and source
• The induced charge is dependent on the gate to source voltage VGS (controlling voltage).
• The current Ids is dependent on both VGS and VDS.
V-I characteristic equation (Drain Current equation) for linear and saturation modes: we will use
the gradual channel approximation (GCA) is used for establishing the MOSFET current-voltage
relationships, which will effectively reduce the analysis to a one-dimensional current-flow problem.
This will allow us to devise relatively simple current equations that agree well with experimental results.
As in every approximate approach, however, the GCA also has its limitations, especially for small-
geometry MOSFETs.
The channel voltage with respect to the source will be denoted by Vc (y). Now assume that the threshold
voltage is constant along the entire channel region, between y = 0 and y = L. In reality, the threshold
voltage changes along the channel since the channel voltage is not constant. the channel voltage VC are:
VC(y =0 ) = Vs =0
VC (y=L)=VDS
it is also, assumed that the entire channel region between the source and the drain is inverted, i.e.,
VGS≥VT0
VGD=VGS -VDS≥VT0
Let Q(y) be the total mobile electron charge in the surface inversion layer. This charge can be expressed as
a function of the gate-to-source voltage VGS and of the channel voltage VC(y) as follows:
QI(y)= - Cox.[ VGS- VC(y)-VT0]
Now consider the incremental resistance dR of the differential channel segment Assuming that all mobile
electrons in the inversion layer have a constant surface mobility (µn), the incremental resistance can be
expressed as follows. Note that the minus sign is due to the negative polarity of the inversion layer charge
Q1(y)
Applying Ohm's law for this segment yields the voltage drop along the incremental segment dy, in the y
direction.
.dR= -
dV= ID.dR= - ID
This equation can now be integrated along the channel, i.e., from y = 0 to y = L, using the boundary
conditions
(y).dVc
.L=W.
=
.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-7
CHANNEL LENGTH MODULATION
Consider the inversion layer charge Q I that represents the total mobile electron charge on the surface,
given by
QI(y)= - Cox .[ VGS- VC(y)-VT0]
The inversion layer charge at the source end of the channel is
QI(y=0)= - Cox .[ VGS- VT0]
and the inversion layer charge at the drain end of the channel is
QI(y=L)= - Cox .[ VGS-VT0- VDS]
at the edge of saturation, i.e., when the drain-to-source voltage reaches VDSAT
VDS= VDSAT = VGS-VT0
The inversion layer charge at the drain end becomes zero according to equation, but in reality it
becomes very small.
Thus, we can state that under the given bias condition, the channel is pinched- off at the drain end, i.e.,
at y = L. The onset of the saturation mode operation in the MOSFET is signified by this pinch-off
event. If the drain-to-source voltage VDS is increased even further beyond the saturation edge so that
VDS> VDSAT, an even larger portion of the channel becomes pinched-off.
Consequently, the effective channel length (the length of the inversion layer where GCA is still valid)
is reduced to
L` = L - ΔL
where ΔL is the length of the channel segment with QI = 0
Hence, the pinch- off point moves from the drain end of the channel toward the source with increasing
drain-to-source voltages. The remaining portion of the channel between the pinch-off point and the
drain will be in depletion mode.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
SinceQ1(y) =0 for L'< y <L, the channel voltage at the pinch-off point remains equal to VDSAT,i.e.,
VC (y=L`) = VDSAT
we can represent the inverted portion of the surface by a shortened channel, with a channel-end
voltage of VDSAT. The gradual channel approximation is valid in this region; thus, the channel current
can be found using
This current equation corresponds to a MOSFET with effective channel length L', operating in
saturation.
Above current equation accounts for the actual shortening of the channel, also called channel length
modulation.
We do this by incorporating the incremental channel-length reduction into the original expression:
The first term of this saturation current expression accounts for the channel modulation effect
Channel length shortening ΔL is actually proportional to the square root of (VDS - VDSAT).
To simplify the analysis even further, we will use the following empirical relation between ΔLand the
drain-to-source voltage instead:
Here, is an empirical model parameter, and is called the channel length modulation coefficient.
Assuming that VDS<<1, the saturation current can be written as:
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
The original observation that the current is constant in the saturation region is not quite correct. The
end point of the channel actually moves toward the source as VD increases, increasing ID.
Therefore, the current in the saturation region is a weak function of the drain voltage.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
replacing the threshold voltage terms in linear-mode and saturation-mode current equations, we get
Lecture-8
High Frequency Small Signal Equivalent Circuit Model
There are intrinsic or parasitic capacitances related to the MOSFET structure,
Key points:
Small-signal is small ⇒ response of non-linear components becomes linear
Can separate response of MOSFET to bias and small signal.
Since response is linear, superposition can be used
⇒ effects of different small signals are independent from each other
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
With VSB=0
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Output Resistance:
Since the drain current is a function of the gate source voltage, we incorporate a voltage dependent
current source equal to gmVGS.
Drain current also varies with the drain source voltage. This effect can be modeled by a voltage
dependent current source. But a current source whose value linearly depends on the voltage across it, is
equivalent to a linear resistor given as
Defined as the inverse of the change in drain current dueto a change in the drain-source voltage, with
everything else constant.
With all other terminals at constant voltage, the draincurrent is a function of the bulk voltage. This can be
modeled by a current source connected between Drain and Source (gmbVBS).
Back-Gate Conductance
One more factor is substrate or body bias on which ID depends. This can be modeled by a voltage
dependent current source equal to gmbVBS in paralle to rDS.
Where
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-9
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-10
MOSFET Capacitances
Study of MOSFET Capacitances are required for transient (AC) analysis of MOSFET related digital
circuits
Switching speed of a MOS circuit (Dynamic response) depends upon, the parasitic capacitances
together with the Transistor & conductor Resistances.
simple On-chip MOSFET capacitances are discussed here, which can be used for simple hand
calculations.
Total gate capacitance Cg, of a MOS device is, = Channel Capacitance + Overlap Capacitance
Cg(channel)= Cgs + Cgb + Cgd
Cgs (overlap) = Cox. W. Ld= Cgd (overlap)
In linear-mode operation, the inverted channel extends across the MOSFET, between the source and the
drain.
The distributed gate-to-channel capacitance may be viewed as being shared equally between the source
and the drain.
Junction/Diffusion Capacitances
• Contributed by the p-n-junctions formed by Source/drain with Substrate (body) and Channel-stop
implant
• Both of these p-n junctions are reversed biased under normal operating conditions of MOSFET
• These Capacitances (Csb&Cdb) depend on terminal voltages
Lecture-11
MOSFET SCALING AND BIASING
MOSFET Scaling:
Design of high-density chips in VLSI (Very Large Scale Integration) technology requires:-
(a) Packing density of MOSFETs used in the circuits must be high.
(b) Sizes of the transistors are as small as possible.
So, The reduction in size i.e. dimension of MOSFET is called scaling.
The effect of scaling must be studied for certain parameters that affect the performance: -
(1) Minimum feature size
(2) Number of gates on the chip
(3) Power dissipation
(4) Maximum operational frequency
(5) Die size
(6) Production cost
• Many of these factors can be improved by scaling.
Why Scaling
Scaling the device and wires , make the chips “better” – functionality, intelligence, memory, faster and
increases yield.
Implications of Scaling
(1) Improved Performance
(2) Improved Cost
(3) Interconnect Woes
(4) Power Woes
(5) Productivity Challenges
(6) Physical Limits
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Scaling by S > 1 leads to the reduction of the area occupied by the transistor by a factor of S2
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Gate Oxide
tox t’ox = tox/s
Thickness
Power supply
VDD V’DD = VDD/s
voltage
N’A = S.NA
Doping Densities NA, ND
N’D = S.ND
• The linear-mode drain current of the scaled MOSFET
Gate oxide capacitance is scaled down as Cg´ = Cg/S. So, charge-up and charge-down times, of the
scaled device will improve accordingly.
Overall performance of the device will improve as various parasitic capacitances and resistances will
reduce because of the result of scaled dimensions.
N’A = S2.NA
Doping Densities NA, ND
N’D = S2.ND
• The linear-mode drain current of the scaled MOSFET
Increase in drain current density and power density by a factor of S³ adversely effecting device
reliability.
Causes problems like :
• Electro Migration
• Hot Carrier Degradation
• Gate Oxide Breakdown
• Electrical Over-Stress
Limitation of Scaling:
• Substrate Doping
• Depletion width
• Limits of miniaturization
• Limits of inter connect and contact resistance
• Limits due to subthreshold currents
• Limits on logic levels and supply voltage due to noise
• Limits due to current density
Substrate Doping
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Depletion Width
Limit of miniaturization
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
W/Ltox S S
D-S Current (IDS) (Vdd - vT)2 1/S S
Gate Capacitance (Cg) WL/tox 1/S 1/S
Transistor On-Resistance (Rtr) Vdd/IDS 1 1/S
Intrinsic Gate Delay () RtrCg 1/S 1/S2
Clock Frequency f=1/ S S2
Power Dissipation (P) IDSVdd 1/S2 S
Power Dissipation Density (P/A) P/A 1 S3
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-12
Since the channel-end voltage is equal to VDSAT, the saturation current can be found as follows:
The dependence of the surface electron mobility on the vertical electric field can be expressed by the
following empirical formula:
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
NARROW-CHANNEL EFFECTS
MOS transistors having channel widths W on the same order of magnitude as the maximum depletion
region thickness xdm are defined as narrow-channel devices.
the transistors start behaving differently, which impacts performance, modeling and reliability.
Narrow-channel MOSFETs exhibit typical characteristics which are not accounted for GCA analysis.
Due to this effect, actual threshold voltage of such a device is largerthan that predicted by the
conventional threshold voltage formula.
A typical cross-sectional view of a narrow-channel device is shown here:
The oxide thickness in the channel region is tox, while the regions around the channel are covered by a
thick field oxide (FOX).
Gate electrode overlaps with the field oxide.
A shallow depletion region formed underneath this FOX-overlap area as well.
Consequently, the gate voltage must also support this additional depletion charge in order to establish
the conducting channel.
The charge contribution of this fringe depletion region to the overall channel depletion charge is
negligible in wider devices.
For MOSFETs with small channel widths, however, the actual threshold voltage increases as a result
of this extra depletion charge. V T 0 V T 0 V T 0
The additional contribution to the threshold voltage due to narrow-channel effects can be modeled as
follows:
1 x dm
VT 0 . 2 q Si N A
2 F .
C ox W
2
Where is an empirical parameter depending on the shape of the fringe depletion region.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
The amount of threshold voltage increase becomes significant only for devices which have a channel
width W on the same order of magnitude as xdm.
For minimum-geometry MOSFETs which have a small channel length anda small channel width, the
threshold voltage variations due to short- and narrow-channel effects may tend to cancel each other
out.
The simple one-dimensional gradual channel approximation (GCA) assumes that the electric field
components parallel to the surface and perpendicular to the surface are effectively decoupled and
cannot fully account for some of the observed device characteristics.
These small-geometry device characteristics may severely restrict the operating conditions of the
transistor and impose limitations upon the practical utility of the device.
SUB-THRESHOLD CONDUCTION:
Accurate identification and characterization of these small-geometry effects are crucial, especially for
submicron MOSFETs.
One typical condition, which is due to the two-dimensional nature of channel current flow, is the sub
threshold conduction in small-geometry MOS transistors.
Current flow in the channel depends on creating and sustaining an inversion layer on the surface.
If the gate bias voltage is not sufficient to invert the surface, i.e. VGS<V, the carriers (electrons) in the
channel face a potential barrier that blocks the flow.
Increasing the gate voltage reduces this potential barrier allowing the flow of carriers under the
influence of the channel electric field. This simple picture becomes more complicated in small-
geometry MOSFETs, because the potential barrier is controlled by both the gate-to-source voltage VGS
and the drain-to-source voltage VDS.
If the drain voltage is increased, the potential barrier in the channel decreases, leading to drain-induced
barrier lowering (DIBL).
The reduction of the potential barrier eventually allows electron flow between the source and the
drain, even if the gate-to-source voltage is lower than the threshold voltage.
The channel current that flows under these conditions (VGS< VT0)is called the sub threshold current.
GCA cannot account for any nonzero drain current ID for VGS< VT0. Two-dimensional analysis of the
small-geometry MOSFET yields the following approximate expression for the sub threshold current.
qT q
qD n Wx c n 0 ( A .V GS B .V DS )
I D ( subthresho ld ) .e kT
.e kT
Ln
Channel hot-electron current and the subsequent damage in the gate oxide are localized near the drain
junction.
The damage caused by hot-carrier injection affects transistor characteristics by causing a degradation
in trans-conductance, a shift in the threshold voltage, and a general decrease in the drain current
capability.
Figure: Typical drain current vs. drain voltage characteristics of an n-channel MOS transistor
before and after hot-carrier induced oxide damage.
This performance degradation in the devices leads to the degradation of circuit performance over time.
Hence, new MOSFET technologies based on smaller device dimensions must carefully account for the
hot-carrier effects and also ensure reliable long-term operation of the devices.
Since the likelihood of hot-carrier induced degradation increases with shrinking device dimensions,
this problem was identified as one of the important factors that may impose strict limitations on
maximum achievable device densities in VLSI circuits.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-13
NUMERICAL PROBLEMS:
Example 1: For the n – channel MOS transistor shown in figure, the threshold voltage VTH is 0.8V.
Neglect channel length modulation effects. When the drain voltage VD = 1.6, the drain current ID was
found to be 0.5 mA. If VD is adjusted to be 2V by changing the values of R and VDD, what will be the new
value of ID.
Solution:
Given, = . , = . , = .
For the given figure we notice that Gate is connected to drain
So, = =
In saturation ID is given by
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Solution:
For saturation region drain current is given by
Example 3:Consider the MOS structure that consists of a p-type doped silicon substrate, a SiO2 layer, and
a metal (aluminum) gate. The equilibrium Fermi potential of the doped silicon substrate is given as
qΦFp=0.2 eV. Calculate the built-in potential difference across the MOS system. Assume that the MOS
system contains no other charges in the oxide or on the silicon-oxide interface.
Given:
electron affinity for silicon: 4.15eV
work function for aluminum: 4.1eV
Solution:
First, calculate the work function for the doped silicon, using equation
qΦs=qχ + (EC-EF)
electron affinity for silicon: 4.15eV
and (EC-EF) = Ei+ qΦFP =0.55+0.2 eV =0.75eV
So, qΦs= 4.15eV+0.75eV = 4.95eV
The built-in potential difference across this MOS system is
qΦM – qΦs = 4.1eV – 4.9eV = -0.8eV
If a voltage corresponding to this potential difference is applied externally between the gate and the
substrate, the bending of the energy bands near the surface can be compensated, i.e., the energy bands
become "flat." Thus, the voltage defined by VFB= ΦM – Φs, is called the flat band voltage.
Example 4: A depletion type N – channel MOSFET in biased in its linear region for use as a voltage
controlled resistor . Assume threshold voltage = 0.5 , = 2.0 , = 5 , ⁄ = 100, = 10-
8
/ 2 and = 800 ⁄2 - . Find the value of the resistance of the voltage controlled resistor ( Ω).
Solution:
Given, Depletion type MOSFET (N – Channel) In linear region = . , = . , = ,
/ = , = - ⁄
The value of voltage controlled resistor is given by
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-14
Example 5: Calculate the threshold voltage VTO at VB= 0, for a polysilicon gate n-channel MOS
transistor, with the following parameters:
substrate doping density NA = 1016 cm-3,
polysilicon gate doping density ND= 2 x 1020 cm-3,
gate oxide thickness tox = 500 Å, and
oxide-interface fixed charge density Nox = 4 x 1010 cm-2.
Solution:
First, calculate the Fermi potentials for the p-type substrate and for the n-type
polysilicon gate:
Since the doping density of the polysilicon gate is very high, we may assume that the Fermi potential of
the polysilicon gate is approximately equal to the conduction band potential, i.e., ΦF (gate) =0.55 V.
Now, calculate the work function difference between the gate and the channel:
The gate oxide capacitance per unit area is calculated using the dielectric constant of silicon dioxide and
the oxide thickness tox.
Example 6: For the nMOS transistors, = 100 / 2 and the threshold voltage VT = 1 V. For the
circuit shown in figure, what is the voltage VX at the source of the upper transistor.
Solution:
The two MOSFET are in series so, same current will be flowing.
For MOSFET M1
VG1> T, and VDS1> VGS1 - T MOSFET M1 is operating in saturation region
Drain current for M1 is
1= 1 ( 1− )
Since 1 = 2
Thus,
1 = - X =5– X and 2 = X
– VX
( – VX
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Example 7: When the gate to source voltage (VGS) of a MOSFET with threshold voltage of 400 mV,
working in saturation is 900 mV, the drain current is observed to be 1 mA. Neglecting the channel length
modulation effect and assuming that the MOSFET is operating in saturation mode, what will be the drain
current for an applied VGS of 1400 mV.
Solution:
Given, = = .
When applied gate voltage = =0.9 V,
Example 8: For Enhancement type N – channel MOSFET following parameters are given:
threshold voltage 0= 1 , K = 110 A/V2, =3.0 , D =5.0 Find the drain current and
transconductance for the device.
Solution:
Since VGS> VT0 and VDS> VGS - VT0
= 200 A/V
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-15
UNIT-V
Electronic Design Automation
Also referred as electronic computer-aided design (ECAD)
It is category of Software tools
Used for designing electronic systems such as integrated circuits and printed circuit boards.
consists of a design flow to design and analyze the electronic circuit.
these tools are used for synthesis, implementation and simulation of Electronic circuits on the
software itself.
ECAD tools are used for generating physical representation of integrated circuit form high level
description.
It mainly concerned with the design of integrated circuit in terms of behavioral descriptions,
netlists, schematics and layout.
It can model the integrated circuit as a whole or as a set of functional blocks.
Design Flow
EDA tools generally follow a flow.
The design flow can be divided into two designs: Digital Design and Analog Design
In Digital design: circuit is described using a hardware description language, followed by
simulation of circuit design, synthesis, place & route and post layout simulation.
In Analog design: circuit is captured, followed by simulation, physical design, layout extraction
and post layout simulation.
The combined layouts of digital and analog designs are used in a manufacturing facility to produce an
electronic chip.
Placement and Routing: Gate-level netlist from the synthesis tool is taken and imported into place
and route tool in the Verilog netlist format. All the gates and flip-flops are placed, Clock tree
synthesis and reset is routed. After this each block is routed, output of the P&R tool is a GDS file,
which is used by a foundry for fabricating the ASIC
Gate level Simulation: The Placement and Routing tool generates an SDF (Standard Delay File)
that contains timing information of the gates. This is back annotated along with gate level netlist and
some functional patterns are run to verify the design functionality. A static timing analysis tool like
Prime time can also be used for performing static timing analysis checks
Post silicon Validation: Once the chip is back from fabrication, it needs to be put in a real test
environment and tested before it can be used widely in the market. This phase involves testing in lab
using real hardware boards and software/firmware that programs the chip. Since the speed of
simulation with RTL is very slow compared to testing in lab with real silicon, there is always a
possibility to find a bug in silicon validation and hence this is very important before qualifying the
design for a market.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-16
Both together, allow the creation of a functional chip from scratch to production.
Architectural Design:
Decision on the Architecture eg. RISC/CISC, # of ALU’s pipeline structure, cache size, etc. Such decision
can provide an accurate estimation of the system performance, die size, power consumption etc.
Functional Design:
Identity main functional units and their interconnections. No details of implementation.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Logic Design:
Design the logic e.g. boolean expression, control flow, word width, register allocation etc. The outcome is
called RTL description. RTL is expressed in a HDL e.g. VHDL and Verilog.
X= (AB+CD) (E+F) Y=(A(B+C)+Z+D)
Circuit Design:
Design the circuit including gates, transistors, interconnections etc. The outcome is called a netlist.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Physical Design:
Convert the netlist into a geometric representation.. The outcome is called a layout.
Fabrication: Process includes lithography, polishing, deposition, diffusion etc. to produce a chip.
Packaging: Put together the chips on a PCB (Printed Circuit Board) or an MCM (Multi-Chip Module)
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
It starts from system-level description and verification, like extracting the architecture from an IEEE
standard and modeling the system using C/C++/SystemC or Matlab.
Then the output of the modeling and verification, which is the test vectors, is passed to RTL team to
design the hardware using any common HDL language like VHDL or Verilog. This designed
hardware has be simulated using an HDL simulator like Mentor Graphics' Modelsim (commonly
used) .. or any other RTL simulator/wave viewer from Cadence or Synopsis.
After the design is verified on the RTL level, it goes for Synthesis and Netlist generation. Most of the
time, people use Design Compiler (by Synopsis) and some others use Leonardo (By Mentor)..
Simply, u get the netlist out of this process (without more details), then pass it to the backend.
Back End
EDA Tools
Design flow regardless of technology is a fully automated process.Followings are the most common tools
available in the market that are briefly explained here:
1. Design Capture Tools
Design entry tool encapsulates a circuit description. These tools capture a design and prepare it for
simulation. Design requirements dictate type of the design capture tool as well as the options needed.
Some of the options would be:
Manual netlist entry
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Schematic capture
Hardware Description Language (HDL) capture (VHDL, Verilog, ...)
State diagram entry
2. Simulation and Verification Tools
Functional verification tool confirms that the functionality of a model of a circuit conforms to the intended
or specified behavior, by simulation or by formal verification methods.
There are two major tool sets for simulation: Functional (Logic) simulation tools and Timing
simulation tools.
Functional simulators verify the logical behavior of a design based on design entry.
Timing simulators on the other hand perform timing verifications at multiple stages of the design.
In this simulation the real behavior of the system is verified when encountering the circuit delays
and circuit elements in actual device.
3. Layout Tools
ASIC designers usually use these tools. Designers transform a logic representation of an ASIC into
a physical representation that allows the ASIC to be manufactured.
The transistor layout tools take a cell level ASIC representation and for a given technology create
a set of layers representing transistors for each cell.
Physical design tool works in conjunction with floorplanning tools that show where various cells
should go on the ASIC die.
4. Synthesis and Optimization Tools
Synthesis tools translate abstract descriptions of functionality such as HDL into optimal physical
realizations, creating netlists that can be passed to a place and route tool.
Then, the designer maps the gate level description or netlist to the target design library and
optimizes for speed, area or power consumption.
Lecture-17
ASIC
ASIC [“a-sick”] is an acronym for Application Specific Integrated Circuit.
As the name indicates, ASIC is a non-standard integrated circuit that is designed for a specific use or
application.
Generally an ASIC design will be undertaken for a product that will have a large production run, and
the ASIC may contain a very large part of the electronics needed on a single integrated circuit.
Examples for ASIC are : a chip for a toy bear that talks; a chip for a satellite; a chip designed to handle
the interface between memory and a microprocessor for a workstation CPU; and a chip containing a
microprocessor as a cell together with other logic.
Two ICs that might or might not be considered as ASICs are, a controller chip for a PC and a chip for a
modem.
Both of these examples are specific to an application (shades of an ASIC) but are sold to many different
system vendors (shades of a standard part).
ASICs such as these are sometimes called application-specific standard products (ASSPs).
Concept Map
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Integrated Circuit
Wafer :A circular piece of pure silicon
Wafer Lot:5 ~ 30 wafers, each containing hundreds of chips(dies) depending upon size of the die
Die: A rectangular piece of silicon that contains one IC design
Mask Layers: Each IC is manufactured with successive mask layers(10 –15 layers)
First half-dozen or so layers define transistors
Other half-dozen define Interconnect
Types of ASIC
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Full-Custom ASICs
All mask layers are customized in a full-custom ASIC
Generally, the designer lays out all cells by hand
Some automatic placement and routing may be done
Critical (timing) paths are usually laid out completely by hand
Full-custom design offers the highest performance and lowest part cost (smallest die size) for a given
design
The disadvantages of full-custom design include increased design time, complexity, design expense,
and highest risk
Microprocessors (strategic silicon) were exclusively full-custom, but designers are increasingly
turning to semicustom ASIC techniques in this area as well
Other examples of full-custom ICs or ASICs are requirements for high-voltage (automobile),
analog/digital (communications), sensors and actuators, and memory (DRAM).
Semicustom ASICs
ASICs for which all of the logic cells are predesigned and some (possibly all) of the mask layers are
customized are called semi-custom ASICs.
Using the predesigned cells from a cell library makes the design, much easier.
Types of MGAs:
(i) Channeled Gate Array
(ii) Channelless Gate Array
(iii) Structured Gate Array
The predefined pattern of transistors on a gate array is the base array, and the smallest element that is
replicated to make the base array is the base cell (sometimes called a primitive cell ).
Only the top few layers of metal, which define the interconnect between transistors, are defined by the
designer using custom masks. To distinguish this type of gate array from other types of gate array, it is
often called a masked gate array (MGA).
The designer chooses from a gate-array library of predesigned and pre-characterized logic cells
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Features of PLDs
Comparison
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-18
Hardware Description Languages
Due to the exploding complexity of digital electronic circuits since the 1970s (see Moore's law),
circuit designers needed digital logic descriptions to be performed at a high level without being
tied to a specific electronic technology, such as ECL, TTL or CMOS
HDLs were created to implement register-transfer level abstraction, a model of the data flow
and timing of a circuit
HDLs are specialized languages used to describe the structure and behavior of electronic circuits,
and most commonly, digital logic circuits.
HDLs enable a precise, formal description of an electronic circuit that allows for the automated
analysis and simulation of an electronic circuit.
It also allows for the synthesis of an HDL description into a netlist (a specification of physical
electronic components and how they are connected together), which can then be placed and
routed to produce the set of masks used to create an integrated circuit.
HDLs form an integral part of electronic design automation (EDA) systems, especially for
complex circuits, such as application specific integrated circuits, microprocessors,
and programmable logic devices.
One important difference between most programming languages and HDLs is that HDLs explicitly
include the notion of time.
There are two major hardware description languages: VHDL and Verilog.
Importance of HDL:
In software language everything is sequential. Sequence of statements is important, since they are
executed in order
In hardware events are concurrent, so a software language cannot be used for describing and
simulating hardware accurately.
VHDL
What is VHDL?
V H I S C Very High Speed Integrated Circuit
Hardware
Description
Language
History of VHDL
In the mid 1980’s the U.S. Department of Defense and the IEEE sponsored the development of this
HDL with the goal to develop very high speed Integrated Circuits.
The initial version of VHDL, designed to standard IEEE 1076-1987, included a wide range of data
types, including numerical (integer and real), logical (bit and boolean), character and time,
arrays of bit called bit_vector and arrays of character called string.
Enhanced version of the language defined in 1993: IEEE 1076-1993
Additional standardized packages provide definitions of data types and expressions of timing data
o IEEE 1164 (data types)
o IEEE 1076.3 (numeric)
o IEEE 1076.4 (timing)
CONCURRENCY
VHDL is a concurrent language.
HDL differs with Software languages with respect to Concurrency only.
VHDL executes statements at the same time in parallel, as in Hardware.
example:
if a=‘1’ then
y<=‘0’;
else
y<=‘1’;
end if ;
B <= A; --perfect
B <= C; --type mismatch, syntax error
SUPPORTS HIRERCHIES
Hierarchy can be represented using VHDL.
Consider example of a Full-adder which is the top-level module, being composed of three lower
level modules i.e. Half-Adder and OR gate.
example :
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
An entity declaration describes a component’s external interface (input and output ports etc.), whereas
architecture bodies describe its internal implementations (functionality).
A configuration binds component instances of a structure design into entity architecture pairs. It allows a
designer to experiment with different variations of a design by selecting different implementations.
A VHDL design consists of several library units, each of which is compiled and saved in a design
library.
Entity Declaration
The entity declaration provides an external view of a component but does not provide information about
how a component is implemented.
The syntax is ;
entity entity_nameis
[generic(generic_declarations);]
[port (port_declarations);]
{entity_declarative_item{constants, types, signals};}
end [entity_name];
**Entity port is a signal with a specified data flow direction which provides an interconnection between
the component and its environment.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Mode:
It indicate the signal direction
in – can only be read. It is used for input only (can be only on the right side of the assignment)
out – can only be assigned a value. It is used for output only (can be only on the left side of the
assignment).
inout – can be read and assigned a value. It can have more than one driver (can be both on the right
and left side of the assignment)
buffer – indicates that the signal is an output of the entity whose value can be read inside the
entity’s architecture. It can have only one driver. Its an out port with read capability. It is not a bi-
directional port. (can be both on the right and left side of the assignment ).
Example:
entity xxx is
port (A : in integer ;
B : in integer ;
C : out integer ;
D : inout integer ;
E : buffer integer)
end xxx ;
architecture bhv of xxx is
begin
process(A, B)
Begin
C <= A ; -- valid : A is assigned to C
A <= B ; -- not valid : A is an input port so cannot be assigned a value, A is on the left
side)
E <= D+1; -- valid : D is inout, so it can be both assigned and read
D <= C+1; -- not valid : C is out port, so cannot be read for input, C is on the right side
end process ;
end bhv ;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Type:
A built-in or user-defined signal type.
Examples of types are bit, bit_vector, Boolean, character, std_logic, and std_ulogic.
bit – can have the value 0 and 1
bit_vector – is a vector of bit values (e.g. bit_vector (0 to 7)
std_logic, std_ulogic, std_logic_vector, std_ulogic_vector: can have 9 values to indicate the value
and strength of a signal. Std_ulogic and std_logicare preferred over the bit or bit_vector types.
boolean – can have the value TRUE and FALSE
integer – can have a range of integer values
real – can have a range of real values
character – any printing character
time – to indicate time
GENERICS
The generic_declarationdeclares constants that can be used to control the structure and timing of
an entity.
**where constant_namespecifies the name of a generic constant, type specifies the data type of the
constant, and init_valuespecifies an initial value for the constant.
Architecture
The architecture body specifies how the circuit operates and how it is implemented.
Syntax
architecturearchitecture_nameof NAME_OF_ENTITY is
--architectureDeclarations
begin
-- Concurrent Statements
endarchitecture_name;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
CONFIGURATION:
This statement selects one of several architectures for a single entity.
Components within architectures can also be chosen.
Unless specified, the compiled architecture is used for last simulation.
Synthesis tool ignores configurations.
Configuration saves re-compile time when some components need substitution in a large design.
CONFIGURATION: Syntax
configuration configuration_nameofentity_nameis
for architecture_name
for instance_name:component_name
use entity
library_name.entity_name(architecture_name);
end for;
end for;
end configuration_name;
Example:
entity half_adder is
Port (A,B : in bit;
Sum, carry : out bit); end half_adder;
architecture ha_stru of half_adderis component xor_2
Port (c,d:in bit,
e:out bit);
end component; Component and_2 Port(l,m:in bit,
n:out bit);
end component;
begin
X1: xor_2 port map (A,B,Sum);
A1: and_2 port map(A,B,Carry);
end ha_stru;
Configuration for Half-adder entity:
Library CMOS_LIB, MY_LIB;
configuration HA_BINDING of half_adderisforHA_stru
for X1: xor_2 use entity cmos_lib.xor_gate(dataflow);
end for;
for A1 : and_2 use configuration MY_LIB.and_config;
end for;
end for;
end HA_BINDING;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
A library can be considered as a place where the compiler stores information about a design project.
Before accessing any unit in a library it needs to be declared .
Syntax
librarylibrary_name;
components declared inside a library can be accessed by the ‘USE’ statement
uselibrary_name.package_name.item_name ;
uselibrary_name.item_name ;
A VHDL package is a file or module that contains declarations of commonly used objects, data type,
component declarations, signal, procedures and functions that can be shared among different VHDL
models.
std_logic is defined in the package ieee.std_logic_1164 in the ieee library. In order to use the std_logic
one needs to specify the library and package. This is done at the beginning of the VHDL file using
the library and the use keywords as follows:
library ieee;
use ieee.std_logic_1164.all;
The .all extension indicates to use all of the eee.std_logic_1164 package.
The Xilinx Foundation Express comes with several packages.
ieee Library:
std_logic_1164: package defines the standard datatypes
std_logic_arith: package provides arithmetic, conversion and comparison functions for the signed,
unsigned, integer, std_ulogic, std_logic and std_logic_vector types
std_logic_unsigned: defines all of the same arithmatic (+, -, *), comparison (<, <=, >, >=, =, /=)
and shift (shl, shr) operations as the std_logic_arith library, difference is that the extensions will
take std_logic_vector values as arguments and treat them as unsigned integers
std_logic_misc package: defines supplemental types, subtypes, constants and functions for the
std_logic_1164 package.
To use any of these packages, one must include the library and use clause:
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
In addition, the synopsis library has the attributes package:
library SYNOPSYS;
use SYNOPSYS.attributes.all;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
A package may consist of two separate design units : a package declaration and a package body.
A package declaration declares all the names of items that will be seen by the design units that use
the package.
A package body contains the implementation details of the subprograms declared in the package
declaration. A package body is not required if no subprograms are declared in a package
declaration.
The separation between package declaration and package body serves the same purpose as the
separation between the entity declaration and architecture body.
The syntax to declare a package is as follows:
-- Package declaration
package name_of_package is
{package declarations}
end [name_of_package];
Test Benches:
Testing a design by simulation
Use a test bench model
an architecture body that includes an instance of the design under test
applies sequences of test values to inputs
monitors values on output signals
either using simulator
or with a process that verifies correct operation
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Identifier
When choosing an identifier one needs to follow these basic rules:
A basic identifier may contain only capital ‘A’ - ’Z’ , ‘a’ - ’z’, ‘0’ - ’9’, underscore
character ‘_’
Must start with alphabet.
May not end with underscore character.
Must not include two successive underscore characters.
Reserved words cannot be used as identifiers.
An identifier is case insensitive
An identifier can be of any length.
Extended Identifier
An extended identifier is a sequence of characters written between two backslashes (“\”).
case sensitive.
different from reserved words (keywords) or any basic identifier
any of the allowable characters can be used in any order, including special characters like, !, @, $
Examples: \TEST\ ; \-25\ ; \2-$\ ; \BUS:\data\ ;
Extended identifiers are allowed in the VHDL-93 version but not in VHDL-87
Numbers
The default number representation is the decimal system.
VHDL allows integer literals and real literals. Integer literals consist of whole numbers without a
decimal point, while real literals always include a decimal point.
Exponential notation is allowed using the letter “E” or “e”.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-19
OBJECT TYPE
A data object holds a value of a specific type There are FOUR object types in VHDL
Constant: can hold a single value of given type. This value is assigned to the constant before
simulation starts and value can not be changed during the course of simulation.
Variable: can also hold a single value of given type . However, in this case different values can be
assigned to the variable at different times using a variable assignment statement.
Signal: holds a list of values, which include the current value of the signal and a set of possible
future values that are to be appear on the signal.
File: contains a sequence of values. Values can be read or written to the file using read and write
procedures.
CONSTANTS:
Syntax :
constant constant_name{, constant_name}: type [:=initial_value];
the initial value is optional (deferred constants)
Constants are identifiers with a fixed value.
A constant can have a single value of a given type and cannot be changed during the simulation.
improve the clarity and readability of a project.
give the designer the ability to have a better documented model that is easy to update.
If a model requires a fixed value in a number of instances, a constant should be used.
The designer can change the value of a constant and recompile. All the instances of the constant
value are updated to reflect the new value of the constant.
VARIABLES:
Syntax :
variable variable_name{,variable_name}: type [:= initial_value];
Used for local storage in process statements and subprograms.
Canbe declaredandusedinsideaprocessstatement or in subprograms.
The variable is updated without any delay as soon as the statement is executed.
Variable assignment operator : ‘:=‘.
don’t have delay associated with it.
Require less memory & results in fast simulation
Examples:
variable CNTR_BIT: bit :=0;
variable STS_BIT: bit_vector (7 downto 0);
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
SIGNALS:
Syntax:
signalsignal_name{, signal_name}: type [:= initial_value];
Connect design entities together and communicate changes in values within a
design.
Computed value is assigned to signal after a specified delay called as Delta Delay.
Signals can be declared in an entity declaration sections (it can be seen by all the architectures), in
an architecture declarations (local to the architecture), in a package declarations (globally
available to the user of the package) or as a parameter of a subprogram (function or procedure).
Signal assignment operator: ‘<=‘.
Signal assignment can be concurrent or sequential.
FILES:
Syntax:
filefile_names: file_type [[open mode] is string-expression];
The string operation is interpreted by the host environment as the physical name of a file.
The mode specifies whether the file is to be used as a read-only or write-only, or in the append
mode.
Example:
--File type declarations
type STD_LOGIC_FILE is file of STD_LOGIC_VECTOR;
type BIT_FILE is file of BIT_VECTOR;
-- File declarations
file STIMULUS: TEXT open READ_MODE is “/usr/home/jb/add.sti”;
file VECTOR: BIT_FILE;
DATA TYPES
Each data object has a type associated with it. The type defines the set of values that the object can
have and the set of operations that are allowed on it.
VHDL is a strongly typed language that requires each object to be of a certain type.
It is not allowed to assign a value of one type to an object of another data type (e.g. assigning an
integer to a bit type is not allowed).
A type is a name that has a set of values and a set of operations associated with it.
For example, INTEGER is a predefined type, with the set of values being integers in a specific range
provided by the VHDL system. The range must be provided is -(231-1) to +(231-1). Some of the
allowable and frequently used predefined operators are +, -, /, *
BOOLEAN is another predefined data type, that has the values ‘TRUE’ and ‘FALSE’ and some of
its predefined operators are and, or, nand, nor, xor, xnor, and not.
The declarations for the predefined types of the language are contained in package STANDARD; the
operators for these types are predefined in language.
User-defined Types
The language also provide the facility to define new types by using type declarations and also to
define a set of operations on these types by writing functions that returns values of this new type.
One can introduce new types by using the type declaration, which names the type and specifies its
value range.
Syntax:
type identifier is type_definition;
SUBTYPE
It is a type with a constraint
Useful for range checking and for imposing additional constraints on types.
syntax:
subtype subtype_nameisbase_type range range_constraint;
example:
subtype DIGITS is integer range 0 to 9;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
real* floating point number in the range of –1.0 x 1038 to variable VAR3: real
+1.0x 1038 (can be implementation dependent. Not :=+64.2E12;
supported by the Foundation synthesis program.
severity_level note, warning, error, failure
String array of which each element is of the type variable VAR4: string(1 to
character 1 ):= “@$#ABC*()_%Z”;
time* an integer number of which the range is variable DELAY:
implementation defined; units can be expressed in time:=5ns;
sec, ms, us, ns, ps, fs, min and hr. . Not supported
by the Foundation synthesis program
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
type
Composite
Scalar type Access type file
type
Floating
record
point
Enumerated
type
Physical
type
SCALAR TYPES:
Integer:
• Defines a type whose set of values fall within a specified integer range.
• Example:
type small_int is range 0 to 1024;
type my_word_length is range 31 downto 0;
subtype data_word is my_word_length range 7 downto 0;
Floating point:
• has a set of values in a given range of real numbers.
• Example:
type cmos_level is range 0.0 to 3.3;
type pmos_level is range -5.0 to 0.0;
Physical
• Contains values that represent measurement of some physical quantity, like time, length, voltage
etc.
• Values of this type are expressed as integer multiples of a base unit.
• Example:
type CURRENT is range 0 to 1E9
units
nA;
uA = 1000 nA;
mA = 1000 uA;
Amp = 1000 mA;
end units [CURRENT];
Enumerated
• defines a type that has a set of user-defined values consisting of identifiers and character literals.
• Syntax:
type type_name is (identifier list or character literal);
• Examples:
type MVL is (‘U’, ‘0’, ‘1’, ‘Z’);
type MICRO_OP is (load, store, add, sub, div, mult);
type state_type is (S0, S1, S2, S3);
• If one does not initialize the signal, the default initialization is the leftmost element of the list.
• The order in which values appear in declaration defines their ordering. When using relational
operators, a value is always less than a value that appears to its right in the order.
• Enumerated types have to be defined in the architecture body or inside a package
STD_LOGIC TYPE
It is a data type defined in the std_logic_1164 package of IEEE library.
It is an enumerated type and is defined as
type std_logic is (‘U’, ‘X’, ‘0’, ‘1’, ‘Z’, ‘W’, ‘L’, ‘H’,’-’)
‘U’ unspecifie
‘X’ unknown
‘0’ strong zero
‘1’ strong one
‘Z’ high impedance
‘W’ weak unknown
‘L’ weak zero
‘H’ weak one
’-’ don’t care
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
COMPOSITE TYPES:
Composite data objects consist of a collection of related data elements in the form of
an array or record.
ARRAY :
• Consists of elements of the same type.
• Array can be either one or multidimensional.
• One dimensional array are synthesizable.
• The synthesis of multidimensional array depends upon the synthesizer being used.
• Syntax
type array_name is array (indexing scheme) of element_type;
• Example:
type MY_WORD is array (15 downto 0) of std_logic;
type VAR is array (0 to 7) of integer;
• We can now declare objects of these data types.
signal MEM_ADDR: MY_WORD;
constant SETTING: VAR := (2,4,6,8,10,12,14,16);
RECORD :
• Contain elements of different types.
• Syntax:
type name is
record
identifier :subtype_indication;
:
end record;
• Example:
type MY_MODULE is
record
RISE_TIME :time;
FALL_TIME : time;
SIZE : integer range 0 to 200;
DATA :bit_vector (15 downto 0);
end record;
signal A, B: MY_MODULE;
To access values or assign values to records, following method can be used:
A.RISE_TIME <= 5ns;
A.SIZE<= 120;
B <= A;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
OPERATORS
VHDL supports different classes of operators that operate on signals, variables and constants.
The different classes of operators are summarized below.
Class
1. Logical operators and or nand nor xor xnor
2.Relational operators = /= < <= > >=
3. Shift operators sll srl sla sra rol ror
4.Addition operators + = &
5. Unary operators + -
6. Multiplying op. * / mod rem
7. Miscellaneous op. ** abs not
The order of precedence is the highest for the operators of class 7, followed by class 6 with the lowest
precedence for class 1.
Unless parentheses are used, the operators with the highest precedence are applied first.
Operators of the same class have the same precedence and are applied from left to right in an
expression.
Logic Operators:
The logic operators (and, or, nand, nor, xor, xnor) are defined for the predefined types BIT and
BOOLEAN types and for one dimensional array of BIT and BOOLEAN.
They give a result of the same type as the operand (Bit or Boolean).
During evaluation, bit values ‘0’ and ‘1’ are treated as FALSE and TRUE values of BOOLEAN type
respectively.
These operators can be applied to signals, variables and constants.
the nand and nor operators are not associative. One should use parentheses in a sequence of nand or
nor operators to prevent a syntax error.
Relational Operators:
The relational operators test the relative values of two scalar types and give as result a Boolean output
of “TRUE” or “FALSE”.
Operator Description Operand Types Result Type
= Equality any type Boolean
/= Inequality any type Boolean
< Smaller than scalar or discrete array types Boolean
<= Smaller than or equal scalar or discrete array types Boolean
> Greater than scalar or discrete array types Boolean
>= Greater than or equal scalar or discrete array types Boolean
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Shift Operators
These operators perform a bit-wise shift or rotate operation on a one-dimensional array of elements of
the type bit (or std_logic) or Boolean.
Sll Shift left logical (fill right Left: Any 1-D array type Same as left type
vacated bits with the 0) with elements of type bit
or Boolean;
Right: integer
Srl Shift right logical (fill left same as above Same as left type
vacated bits with 0)
Sla Shift left arithmetic (fill right same as above Same as left type
vacated bits with rightmost bit)
Sra Shift right arithmetic (fill left same as above Same as left type
vacated bits with leftmost bit)
Rol Rotate left (circular) same as above Same as left type
Ror Rotate right (circular) same as above Same as left type
Addition Operators
The addition operators are used to perform arithmetic operation (addition and subtraction) on operands
of any numeric type.
The concatenation (&) operator is used to concatenate two vectors together to make a longer one.
In order to use these operators one has to specify the ieee.std_logic_unsigned.all or std_logic_arith
package package in addition to the ieee.std_logic_1164 package.
Operator Description Left Operand Type Right Operand Type Result Type
+ Addition Numeric type Same as left operand Same type
- Subtraction Numeric type Same as left operand Same type
& Concatenation Array or element type Same as left operand Same array type
CONCATENATION
This is the process of combining two signals into a single set which can be individually addressed.
The concatenation operator is ‘&’.
A concatenated signal’s value is written in double quotes whereas the value of a single bit signal is
written in single quotes.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Unary Operators
The unary operators “ ” and “-“ are used to specify the sign of a numeric type
Operator Description Operand Type Result Type
+ Identity Any numeric type Same type
- Negation Any numeric type Same type
Multiplying Operators
The multiplying operators are used to perform mathematical functions on numeric types (integer or
floating point).
Operator Description Left Operand Type Right Operand Type Result Type
Any integer or floating point Same type Same type
* Multiplication Any physical type Integer or real type Same as left
Any integer or real type Any physical type Same as right
/ Division Any integer or floating point Any integer or floating Same type
point
Any physical type Any integer or real Same as left
type
Any physical type Same type Integer
Mod Modulus Any integer type Same type
Rem Remainder Any integer type Same type
Miscellaneous Operators
These are the absolute value and exponentiation operators that can be applied to numeric types. The
logical negation (not) results in the inverse polarity but the same type.
Operator Description Left Operand Type Right Operand Type Result Type
** Exponentiation Integer type Integer type Same as left
Floating point Integer type Same as left
abs Absolute value Any numeric type Same type
not Logical negation Any bit or Boolean type Same type
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-20
Concurrent and sequential statements
Concurrent VHDL Constructs
Process statement
When-Else statement
With-select statement
Signal declaration
Block statement
CONCURRENT CONSTRUCTS
All concurrent statements in an architecture are executed simultaneously.
Concurrent statements are used to express parallel activity as is the case with any digital circuit.
Concurrent statements are executed with no predefined order by the simulator. So the order in which
the code is written doesn’t have any effect on its function.
They can be used for dataflow, behavioral and structural descriptions.
Process is the only concurrent statement in which sequential statements are allowed.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Concurrent Statements
Signal assignment statements:
Simple assignment
Selected Assignment Statement
Conditional Assignment Statement
block statement
generate statement
Assertion Statement
Component Instantiation Statement
Generate statement
describe regular and/or slightly irregular structure by automatically generating component
instantiations instead of manually writing each instantiation.
There are two variants of the generate statement:
Assertion Statement
ASSERT STATEMENT
Concurrent used in entity, Architecture
Sequential used in process, function, procedure.
A statement that checks that a specified condition is true and reports an error if it is not.
Simplified Syntax
assert condition
report string
severity severity_level;
It has three optional fields and usually all three are used.
The condition specified in an assertion statement must evaluate to a boolean value (true or false).
If it is false, it is said that an assertion violation occurred.
The expression specified in the report clause must be of predefined type STRING and is a
message to be reported when assertion violation occurred.
If the severity clause is present, it must specify an expression of predefined type
SEVERITY_LEVEL, which determines the severity level of the assertion violation.
The SEVERITY_LEVEL type is specified in the STANDARD package and contains following
values: NOTE, WARNING, ERROR, and FAILURE.
If the severity clause is omitted it is implicitly assumed to be ERROR.
When an assertion violation occurs, the report is issued and displayed on the screen. The supported
severity level supplies an information to the simulator.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
The severity level defines the degree to which the violation of the assertion affects operation of the
process:
NOTE can be used to pass information messages from simulation;
WARNING can be used in unusual situation in which the simulation can be continued, but the
results may be unpredictable;
ERROR can be used when assertion violation makes continuation of the simulation not feasible;
FAILURE can be used when the assertion violation is a fatal error and the simulation must be
stopped at once.
Assertion statements are not only sequential, but can be used as concurrent statements as well. A
concurrent assertion statement represents a passive process statement containing the specified
assertion statement.
Example 1
assert Status = OPEN_OK
report "The call to FILE_OPEN was not successful"
severity WARNING;
o Having called the procedure FILE_OPEN, if the status is different from OPEN_OK, it is indicated
by the warning message.
Example 2
assert not (S= '1' and R= '1')
report "Both values of signals S and R are equal to '1'"
severity ERROR;
o When the values of the signals S and R are equal to '1', the message is displayed and the simulation
is stopped because the severity is set to ERROR.
Example 3
assert Operation_Code = "0000"
report "Illegal Code of Operation"
severity FAILURE;
o Event like illegal operation code are severe errors and should cause immediate termination of the
simulation, which is forced by the severity level FAILURE.
The message is displayed when the condition is NOT met, therefore the message should be an
opposite to the condition.
Concurrent assertion statement is a passive process and as such can be specified in an entity.
Concurrent assertion statement monitors specified condition continuously.
Synthesis tools generally ignore assertion statements.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
SEQUENTIAL STATEMENTS
signal assignments
variable assignments
case statement
exit statement
if statement
loop statement
next statement
null statement
procedure call
wait statement
If Statements
The if statement executes a sequence of statements whose sequence depends on one or more
conditions.
syntax:
if condition then
sequential statements
[elsif condition then
sequential statements ]
[else
sequential statements ]
end if;
Case Statements
The case statement executes one of several sequences of statements, based on the value of a single
expression.
syntax:
case expression is
when choices => sequential statements
when choices => sequential statements
-- branches are allowed
[when others => sequential statements ]
end case;
The following rules must be adhered to:
o no two choices can overlap
o if the “when others" choice is not present, all possible values of the expression must be
covered by the set of choices.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Loop statements
A loop statement is used to repeatedly execute a sequence of sequential statements
syntax:
[ loop_label :]iteration_scheme loop
sequential statements
[next [label] [when condition];
[exit [label] [when condition];
end loop [loop_label];
Labels are optional but are useful when writing nested loops. The next and exit statement are
sequential statements that can only be used inside a loop.
The next statement terminates the rest of the current loop iteration and execution will proceed to
the next loop iteration.
The exit statement skips the rest of the statements, terminating the loop entirely, and continues
with the next statement after the exited loop.
There are three types of iteration schemes:
basic loop
while … loop
for … loop
Basic loop has no iteration scheme. It will be executed continuously until it encounters an exit or
next statement.
The basic loop (as well as the while-loop) must have at least one wait statement.
The while loop evaluates a Boolean iteration condition. When the condition is TRUE, the loop
repeats, otherwise the loop is skipped and the execution will halt.
The condition of the loop is tested before each iteration, including the first iteration. If it is false,
the loop is terminated.
Syntax:
[loop_label :] while condition loop
sequential statements
[next [label] [when condition];
[exit [label] [when condition];
end loop[ loop_label ];
The for-loop uses an integer iteration scheme that determines the number of iterations.
Syntax:
[ loop_label :] for identifier in range loop
sequential statements
[next [label] [when condition];
[exit [label] [when condition];
end loop[ loop_label ];
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
The identifier (index) is automatically declared by the loop itself, so one does not need to declare it
separately. The value of the identifier can only be read inside the loop and is not available outside
its loop. One cannot assign or change the value of the index. This is in contrast to the while-loop
whose condition can involve variables that are modified inside the loop.
The range must be a computable integer range in one of the following forms, in which
integer_expression must evaluate to an integer:
integer_expression to integer_expression
integer_expression downto integer_expression
Wait Statement
The wait statement will halt a process until an event occurs.
There are several forms of the wait statement:
wait until condition;
wait for time expression;
wait on signal;
wait;
WAIT ON signal:
Specifies a list of one or more signals that the WAIT statement will wait for events upon.
if any signal list has an event occur on it, execution continues with the statement following the
wait statement.
example: WAIT ON a, b;
WAIT UNTIL expression
Suspends execution of the process until the expression returns a value of true.
example: WAIT UNTIL (( x * 10) < 100);
WAIT FOR time_expression
Suspends execution of the process for the time specified by the time expression.
example: WAIT FOR 10 ns;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-21
Architecture Modeling Styles in VHDL
Dataflow Modeling
The dataflow modeling describes a circuit in terms of its function and the flow of data through the
circuit.
It shows that how the data / signal flows from input to output through the registers / Components.
A dataflow description directly implies a corresponding gate level implementations
Dataflow modeling Style works on Concurrent Execution.
Concurrent signal assignments are event triggered and executed as soon as an event on one of the
signals occurs.
Behavioural Modeling
The behavioral style of modeling specifies the behavior of an entity as a set of statements that are
executed sequentially in the specified order.
It is very similar in syntax and semantics to that of a high level programming languages such as C
or Pascal.
It consists of one or more process statements.
A process statement is a concurrent statement that can appear within architecture. It contains one
or more sequential statements.
Structural Modeling:
In Structural Modeling Style, entity is described as a set of interconnected components.
Top level design module describes the interconnections of lower level design entities.
Each lower level design entities can be described as an interconnection of design entities at the
next lower level and so on.
Structural Modeling is most useful and efficient when a complex system is described as an
interconnections of moderately complex design entities
Mixed Style of Modeling:
It is possible to mix the three modeling styles in a single architecture body.
That is, within an architecture body, we could use component instantiation statements (that
represent structure), concurrent signal assignment statements (that represent dataflow), and process
statements (that represent behavior).
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
STRUCTURAL MODELING
A structural way of modeling describes a circuit in terms of components and its interconnection.
At the lowest hierarchy, each component is described as a behavioral model, using the basic logic
operators defined in VHDL.
structural modeling is very good to describe complex digital systems, though a set of components
in a hierarchical fashion.
VHDL provides a formal way by
o Declare a list of components being used
o Declare signals which define the nets that interconnect components
o Label multiple instances of the same component so that each instance is uniquely defined.
Component declaration
Before components can be instantiated they need to be declared in the architecture declaration
section or in the package declaration.
The component declaration consists of the component name and the interface (ports).
The syntax is as follows:
component component_name [is]
[port (port_signal_names: mode type;
port_signal_names: mode type;
:
port_signal_names: mode type);]
end component [component_name];
The component name refers to either the name of an entity defined in a library or an entity
explicitly defined in the VHDL file.
The list of interface ports gives the name, mode and type of each port, similarly as is done in
the entity declaration.
The component declaration has to be done either in the architecture body or in the package
declaration.
If the component is declared in a package, one does not have to declare it again in the architecture
body as long as one uses the library and use clause.
Component Instantiation
The component instantiation statement references a component that can be
o Previously defined at the current level of the hierarchy or
o Defined in a technology library (vendor’s library).
The syntax for the components instantiation is as follows,
instance_name : component name
port map (port1=>signal1, port2=> signal2,…port3=>signaln);
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
The instance name or label can be any legal identifier and is the name of this particular instance.
The component name is the name of the component declared earlier using the component
declaration statement.
alternative method is the positional association,
port map (signal1, signal2,…signaln);
VHDL code for all logic gates using dataflow modeling style:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity ALLGATES is
Port ( A,B : in STD_LOGIC;
AND1,OR1,NOT1,NAND1,NOR1,XOR1,XNOR1: out STD_LOGIC);
end ALLGATES_SOURCE;
architecture df of ALLGATES is
begin
AND1<=A AND B;
OR1<= A OR B;
NOT1 <= NOT A;
NAND1<= A NAND B;
NOR1<= A NOR B;
XOR1<= A XOR B;
XNOR1<= A XNOR B;
end df;
Test bench
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity gates_tb is
end entity;
architecture tb of gates_tb is
component ALLGATES is
Port ( A,B : in STD_LOGIC;
AND1,OR1,NOT1,NAND1,NOR1,XOR1,XNOR1: out STD_LOGIC);
end component;
signal A, B, P, Q, R, S, T, U, V : STD_LOGIC;
begin
uut: ALLGATES port map( A,B,P, Q, R, S, T, U, V);
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
st: process
begin
A <= '0'; B <= '0';
wait for 20 ns;
A <= '0'; B <= '1';
wait for 20 ns;
A <= '1'; B <= '0';
wait for 20 ns;
A <= '1'; B <= '1';
wait for 20 ns;
wait;
end process;
end tb;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
HALF ADDER
Truth Table
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
Entity half_adder is
Port ( A,B : in STD_LOGIC;
sum, carry : out STD_LOGIC);
end half_adder;
--BEHAVIOURAL MODELING
architecture Behavioral of half_adder is
begin
PROCESS(A,B)
BEGIN
--logic for sum
If (a=b) then
sum<= ‘0’;
else
sum<= ‘1’;
end if;
--logic for carry
If (a=’1’ and b = ‘1’) then
carry <= ‘1’;
else
carry <= ‘0’;
end if;
END PROCESS;
end Behavioral;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
--DATAFLOW MODELING
library IEEE;
use IEEE.std_logic_1164.all;
entity half_adder_tb is
end entity;
architecture tb of half_adder_tb is
component half_adder is
port( a,b : IN std_logic;
sum,carry : OUT std_logic);
end component;
signal a,b,sum,carry: std_logic;
Begin
uut: half_adder port map( a => a, b => b, sum => sum, carry => carry);
stim: process
begin
a <= '0'; b <= '0';
wait for 20 ns;
a <= '0'; b <= '1';
wait for 20 ns;
a <= '1'; b <= '0';
wait for 20 ns;
a <= '1'; b <= '1';
wait for 20 ns;
wait;
end process;
end tb;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-22
HALF SUBTRACTOR
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
Entity HS is
Port ( a,b : in bit;
diff, bor : out bit);
end HS;
architecture HS_beh of HS is
begin
Process (a,b)
Begin
--logic for difference
If (a=b) then
diff<= ‘0’;
else
diff<= ‘1’;
end if;
FULL SUBTRACTOR
Truth Table:
A B C diff borrow
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
Entity FS is
Port (a,b,c: in bit;
diff, bor: out bit);
end FS;
architecture FS_behof FS is
begin
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity mux4_1 is
port (i : in std_logic_vector (0 to 3);
s : in std_logic_vector(0 to 1);
y: out std_logic);
end mux4_1;
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
entity mux4_1 is
port (i : in std_logic_vector (0 to 3);
s : in std_logic_vector(0 to 1);
y: out std_logic);
end mux4_1;
Lecture-23
Flip Flops
A flip-flop is a device which stores a single bit (binary digit) of data; It is a basic memory element in
digital systems (same as the bi-stable multivibrator) one of its two states represents a "one" and the other
represents a "zero". Such a circuit is described as sequential logic.
There are 4 types of flip flops:
1. SR Flip-flop
2. JK Flip-flop
3. D Flip-flop
4. T Flip-flop
D- Flip Flop
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
entity dff is
port( D, clock,reset : in std_logic;
dout: out std_logic );
end dff;
JK Flip-flop
library ieee ;
use ieee.std_logic_1164.all;
entity jkff is
Port(reset,clock,j,k : in std_logic;
q: out std_logic );
end jkff;
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
T-Flip-flop (Toggle)
On every change in clock pulse the output ‘Q’
changes its state (Toggle). A Flip-flop with one
data input which changes state for every clock
pulse.(J=K=’1’ in JK Flip-flop the resulting
output is ‘T’ Flip-flop).
library ieee ;
use ieee.std_logic_1164.all;
entity tff is
Port(reset,clock,t : in std_logic;
q: out std_logic );
end tff;
Simulation Waveforms:
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-24
SHIFT REGISTERS
Flip flops can be used to store a single bit of binary data (1or 0). However, in order to store multiple bits
of data, we need multiple flip flops. N flip flops are to be connected in an order to store n bits of data.
A Register is a device which is used to store such information. It is a group of flip flops connected in
series used to store multiple bits of data.
The information stored within these registers can be transferred with the help of shift registers. Shift
Register is a group of flip flops used to store multiple bits of data. The bits stored in such registers can
be made to move within the registers and in/out of the registers by applying clock pulses. An n -bit shift
register can be formed by connecting n flip-flops where each flip flop stores a single bit of data.
The registers which will shift the bits to left are called “Shift left registers”.
The registers which will shift the bits to right are called “Shift right registers”.
Shift registers are basically of 4 types. These are:
1. Serial In Serial Out shift register
2. Serial In parallel Out shift register
3. Parallel In Serial Out shift register
4. Parallel In parallel Out shift register
The above circuit is an example of shift right register, taking the serial data input from the left side of
the flip flop. The main use of a SISO is to act as a delayelement.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
The above circuit is an example of shift right register, taking the serial data input from the left side of
the flip flop and producing a parallel output. They are used in communication lines where
demultiplexing of a data line into several parallel lines is required because the main use of the SIPO
register is to convert serial data into parallel data.
A Parallel in Serial out (PISO) shift register us used to convert parallel data to serial data.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
entity siso is
port(sin,clk, rst : in std_logic;
sout: out std_logic );
end siso;
entity univ_SHIFT_REGISTER is
Generic (N : integer := 4);
Port ( Din : in STD_LOGIC_VECTOR (N-1 downto 0);
Dout : out STD_LOGIC_VECTOR (N-1 downto 0);
ld_shift, l_r, rst, clk, Sin : in STD_LOGIC;
sout: out STD_LOGIC);
end univ_SHIFT_REGISTER;
Lecture-25
COUNTERS
A special type of sequential circuit used to count the pulse is known as a counter, or a collection of flip
flops where the clock signal is applied is known as counters.
The counter is one of the widest applications of the flip flop. Based on the clock pulse, the output of the
counter contains a predefined state. The number of the pulse can be counted using the output of the
counter.
Truth Table
Operation
S.N. Condition Operation
2 After 1st As soon as the first negative clock edge is applied, FF-A will toggle and
negative clock QA will be equal to 1.
edge QA is connected to clock input of FF-B. Since QA has changed from 0 to
1, it is treated as the positive clock edge by FF-B. There is no change in
QB because FF-B is a negative edge triggered FF.
QBQA = 01 after the first clock pulse.
3 After 2nd On the arrival of second negative clock edge, FF-A toggles again and
negative clock QA = 0.
edge The change in QA acts as a negative clock edge for FF-B. So it will also
toggle, and QB will be 1.
QBQA = 10 after the second clock pulse.
4 After 3rd On the arrival of 3rd negative clock edge, FF-A toggles again and
negative clock QA become 1 from 0.
edge Since this is a positive going change, FF-B does not respond to it and
remains inactive. So QB does not change and continues to be equal to 1.
QBQA = 11 after the third clock pulse.
5 After 4th On the arrival of 4th negative clock edge, FF-A toggles again and
negative clock QA becomes 1 from 0.
edge This negative change in QA acts as clock pulse for FF-B. Hence it
toggles to change QB from 1 to 0.
QBQA = 00 after the fourth clock pulse.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Synchronous counters
If the "clock" pulses are applied to all the flip-flops in a counter simultaneously, then such a counter is
called as synchronous counter.
2-bit Synchronous up counter
The JA and KA inputs of FF-A are tied to logic 1. So FF-A will work as a toggle flip-flop. The JB and
KB inputs are connected to QA.
Logical Diagram
Operation
S.N. Condition Operation
2 After 1st negative As soon as the first negative clock edge is applied, FF-A will toggle
clock edge and QA will change from 0 to 1.
But at the instant of application of negative clock edge, QA , JB = KB =
0. Hence FF-B will not change its state. So QB will remain 0.
QBQA = 01 after the first clock pulse.
3 After 2nd negative On the arrival of second negative clock edge, FF-A toggles again and
clock edge QA changes from 1 to 0.
But at this instant QA was 1. So JB = KB= 1 and FF-B will toggle.
Hence QB changes from 0 to 1.
QBQA = 10 after the second clock pulse.
4 After 3rd negative On application of the third falling clock edge, FF-A will toggle from 0
clock edge to 1 but there is no change of state for FF-B.
QBQA = 11 after the third clock pulse.
5 After 4th negative On application of the next clock pulse, QA will change from 1 to 0 as
clock edge QB will also change from 1 to 0.
QBQA = 00 after the fourth clock pulse.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Classification of counters
Depending on the way in which the counting progresses, the synchronous or asynchronous counters are
classified as follows −
Up counters
Down counters
Up/Down counters
UP/DOWN Counter
Up counter and down counter is combined together to obtain an UP/DOWN counter. A mode control (M)
input is also provided to select either up or down mode. A combinational circuit is required to be
designed and used between each pair of flip-flop in order to achieve the up/down operation.
Type of up/down counters
UP/DOWN ripple counters
UP/DOWN synchronous counter
Example
3-bit binary up/down ripple counter.
3-bit − hence three FFs are required.
UP/DOWN − So a mode control input is essential.
For a ripple up counter, the Q output of preceding FF is connected to the clock input of the next
one.
For a ripple up counter, the Q output of preceding FF is connected to the clock input of the next
one.
For a ripple down counter, the Q bar output of preceding FF is connected to the clock input of the
next one.
Let the selection of Q and Q bar output of the preceding FF be controlled by the mode control
input M such that, If M = 0, UP counting. So connect Q to CLK. If M = 1, DOWN counting. So
connect Q bar to CLK.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-26
UNIT-III
MOS INVERTERS
The inverter is the most fundamental logic gate that performs a Boolean operation on a single input
variable.
Using positive logic convention
-- Logic ‘1’ represents high voltage of VDD
--Logic ‘0’ represents low voltage of 0
As Vin increases
The driver transistor starts conducting
The output voltage starts to decrease.
two critical voltage points, where the slope of curve dVout/dVin=-1
the smaller input voltage level is VIL
The larger input voltage level is VIH
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Assume that the second inverter produces an output voltage level of VOH.
this output signal will be perturbed because of noise interference, and the voltage level at the input of
the third inverter will be different from VOH
If the input voltage of the third inverter is larger than VOH, this signal will be interpreted correctly as a
logic ‘1’
If the voltage level drops below VIHdue to noise, the input voltage of third inverter cannot be
interpreted as a logic ‘1’
VIHis the minimum allowable voltage at the input of the third inverter which is high enough to ensure a
logic ‘0’ output.
Noise Margins
Noise margins are the noise tolerances for the digital circuits.
The noise immunity of the circuit increases with NM
Two noise margins are defined:
the noise margin for low signal levels (NML)
the noise margin for high signal levels (NMH).
Resistive-Load inverter
Operation modes:
With increasing input voltage, the drain current of the driver also increases, and the output
voltage V0ut, starts to drop
(iii) Vin ≥ Vout+VT0 Linear
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Calculation of VOH
The output voltage Vout is given by Vout = VDD - RL . IR
When Vin< Vth the driver transistor is cutoff
Thus IR = ID = 0 VOH = VDD
Calculation of VOL
Assume that the input voltage is equal to VOH
i.e. Vin = VOH = VDD
Since Vin –VT0>Voutdriver transistor operates in linear region
Calculation of VIL
By definition, VIL is the smaller of the two input voltage values at which the slope of the VTC becomes
equal to (-1), i.e., dVout/dVin = - 1
when the input is equal to VIL, the output voltage (Vout) is only slightly smaller than VOH.
Vout> Vin – VT0 the driver transistor operates in saturation.
Writing the KCL for the output node.
Since the derivative of the output voltage with respect to the input voltage is equal to (-1) at VIL, we can
substitute dVout /dVin = -1
The value of the output voltage when the input is equal to VIL
Calculation of VIH
VIH is the larger of the two voltage points on VTC at which the slope is equal to (-1).
when the input voltage is equal to VIH, the output voltage Vout, is only slightly larger than the output low
voltage VOL.
Vout< Vin – VT0 driver transistor operates in linear region.
Applying KCL equation for the output node,
substitute dVout /dVin = -1, since the slope of the VTC is equal to (-1) also at Vin = VIH
Finally
Calculation of Vth
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-27
NMOS Inverters with Active Load
Enhancement-Load nMOS Inverter
The saturated enhancement-load inverter requires a single voltage supply and a relatively simple
fabrication process, yet the VOHlevel is limited to VDD – VT,Ioad.
In linear enhancement load inverter, the VOHlevel is equal to VDD, resulting in higher noise margins
compared to saturated enhancement-load inverter.
The most significant drawback of linear enhancement load inverter is the use of two separate power
supply voltages.
both types of inverter suffer from relatively high stand-by (DC) power dissipation; hence,
enhancement-load nMOS inverters are not used in any large-scale digital applications.
Depletion-Load nMOS Inverter
Advantages:
i. sharp VTC transition and better noise
margins,
ii. single power supply, and
iii. smaller overall layout area.
VT0, driver >0, and VT0, Load <0,
VGS,load= 0 always
the condition VGS,Load>VT,loadis
satisfied, and the load device always
has a conducting channel regardless of
the input and output voltage levels.
the load device is subject to the substrate-bias effect, so that its threshold voltage is a function of its
source-to substrate voltage, VSB,load= Vout.
For larger output voltage levels, i.e., for (Vout> VDD + VT,load),the depletion-type load transistor
operates in the linear region.
The load current is
Calculation of VOH
When Vin< VT0,driver the driver transistor is cutoff and load device is conducting in linear region
Thus ID,load = ID,driver = 0 , substituting VOH=Vout
Calculation of VOL
Assume that the input voltage is equal to VOH
i.e. Vin = VOH = VDD
Since Vin –VT0>Voutdriver transistor operates in linear region, load operates in saturation region
The above equation can be solved by temporarily neglecting the dependence of VT,load on VOL as follows
Calculation of VIL
When Vin= VIL slope of VTC curve dVout/dVin = - 1
Vout> Vin – VT0the driver transistor operates in saturation region
load operates in linear region
Applying KCL for the output node
we can assume that the term (dVT,Ioad/dVin) is negligible with respect to the others.
Substituting VIL for Vin, and letting dVout/dVin = -1, we obtain
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Calculation of VIH
VIH is the larger of the two voltage points on VTC at which the slope is equal to (-1).
when the input voltage is equal to VIH, the output voltage Vout, is only slightly larger than the output low
voltage VOL.
Vout< Vin – VT0 driver transistor operates in linear region,
load transistor operates in saturation region
Applying KCL equation for the output node,
.
substitute dVout /dVin = -1, since the slope of the VTC is equal to (-1) and solve for Vin = VIH
the derivative of the load threshold voltage with respect to the output voltage cannot be neglected and is
given by
Lecture-28
CMOS INVERTER
Figure. (a)CMOS inverter circuit. (b)Simplified view of the CMOS inverter, consisting of two
complementary
CMOS Operation
Since VSB = 0 for both devices, thus no
substrate-bias effect
From circuit diagram
VGS,n = Vin
VDS,n = Vout
and
VGS,p = - (VDD - Vin)
VDS,p = - (VDD - Vout)
Calculation of VIL
When Vin= VIL slope of VTC curve dVout/dVin = - 1
nMOS saturation region and pMOSlinear region
From ID,n= ID,p we obtain the following current equation:
The critical voltage VIL can be found as a function of the output voltage as follows:
Where
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Calculation of VIH
When Vin =VIH
nMOS linear region, and pMOS saturation region
Applying KCL equation for the output node,
The critical voltage VIH can be found as a function of the output voltage as follows:
Where
Calculation of Vth
The inverter threshold voltage is defined as Vth = Vin = Vout
set Vin = Vout = Vth = 0.5VDD
For pMOS transistor:
VGS,p=Vin-VDD=-0.5VDD, and VDS,p=Vout-VDD=-0.5VDD
VDS,p<VGS,p – VT,p saturation region
Applying KCL
ID,p= ID,n
=
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
As ID,load= ID,driver
=
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-29
To simplify the problem of voltage dependent capacitances, the capacitances of this circuit are
combined into an equivalent lumped linear capacitance, connected between the O/P node of the
inverter and the ground.
This combined capacitance at the output node will be called the load capacitance (Cload)
Cload= Cgd,n + Cgd,p + Cdb,n + Cdb,p + Cint + Cg
Problem of analysing the switching behaviour can be handled more easily using this single lumped
O/P capacitance.
Question of inverter transient response is reduced to finding the charge-up and charge-down times of a
single capacitance which is charged and discharged through one transistor.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Propagation delay times ГPHL andГPLHdetermine the I/P-to-O/P signal delay during the high-to-low
and low-to-high transitions of the O/P, respectively.
ГPHL is the time delay between the V50%-transition of the rising input voltage and the V50%-transition
of the falling output voltage or time required for the output voltage to fall from VOH to the V50% level
or it is ГPHL = t1 - t0
ГPLH is the time delay between the V50%-transition of the falling input voltage and the V50%-transition
of the rising output voltage or the time required for the output voltage to rise from VOL to the V50%
level or it is ГPLH = t3 - t2
The voltage point V50% is defined as follows.
V50% = VOL + ½ (VOH - VOL) = ½ (VOL + VOH)
Average Propagation Delay Гp of the inverter characterizes the average time required for the input
signal to propagate through the inverter.
Where, Iavg is the constant average current from capacitor during an output transition.
Average current during high-to-low transition can be calculated by using the current values at starting
and end of transition :-
Iavg, HL = ½ [ic (Vin = VOH, Vout = VOH) + ic (Vin = VOH, Vout = V50%)]
Similarly, Average current during low-to-high transition:-
Iavg, LH = ½ [ic (Vin = VOL, Vout = V50%) + ic (Vin = VOL, Vout = VOL)]
Limitations of Average current method
While the average-current method is relatively simple and requires minimal calculation, it neglects the
variations of capacitance current between the beginning and end points of the transition.
So, we do not expect the average-current method to provide a very accurate estimate of the delay
times.
Still, this approach can provide rough, first-order estimates of the charge-up and charge-down delay
times.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
First, we consider the rising-input case for a CMOS inverter. Initially the output voltage is assumed to
be equal to VOH.
Now, VOL VOH, nMOS is turned on, and it discharges the load capacitance
o iD,p = 0, as pMOS is switched off
The differential equation describing the discharge event is then
As, Saturation current is independent of the output voltage so solution in this time interval (t0 to t1’) is.
At t = t', the output voltage will be equal to (VDD - VTn) and the transistor will be at the saturation-
linear region boundary.
Now, consider the nMOS transistor operating in the linear region.
The solution of discharge event in the time interval between t1' and t1 can be found as
Note that tdelaycorresponds to the propagation delay time ГPHLfor falling output.
Finally, the propagation delay time for high-to-low output transition (ГPHL)can be found by combining
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
For VOH = VDD and VOL= 0, as is the case for the CMOS inverter,
In a CMOS inverter, the charge-up event of the output load capacitance for falling input transition is
completely analogous to the charge-down event for rising input.
When going from VOH to VOL; nMOS = cut off and the load capacitance is being charged up through
the pMOS transistor.
Now, the propagation delay time ГPLH can be found as
After, Comparing the delay expression, we can see that the sufficient conditions for balanced
propagation delays, i.e., for ГPHL= ГPLHin a CMOS inverter are:
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Example: Consider the CMOS inverter circuit shown below, with VDD = 3.3 V. The I-V characteristics of
the nMOS transistor are specified as follows: when VGS= 3.3 V, the drain current reaches its saturation
level Isat= 2 mA for VDS2.5 V. Assume that the I/P signal applied to the gate is a step pulse that switches
instantaneously from 0 V to 3.3 V. Using the data above, calculate the delay time necessary for the output
to fall from its initial value of 3.3 V to 1.65 V, assuming an output load capacitance of 300 fF.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Solution:
• Assuming that the nMOS transistor operates in saturation from t = 0 to t = t1’= tsat, and that it will
operate in the linear region from t = t1’= tsat to t = t2= tdelay.
• The current equation for the saturation region can be written as:
• We can calculate the amount of time in which the nMOS transistor operates in saturation (t sat), by
integrating this equation
• Integrating this differential equation between the two voltage boundary conditions yields the time in
which the nMOS transistor operates in the linear region during this transition.
• Thus, the total delay time is found to be tdelay = 120 + 133 = 253 ps
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-30
Now, DC current drawn by the inverter circuit may vary depending on the input and output voltage
levels.
Assume input voltage level corresponds to logic "0“ during 0% of the operation time and to logic " 1
" during the other 50%, the overall DC power consumption of the circuit:-
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Fig.: I/P and O/P voltage waveforms and the expected load capacitor current waveform of CMOS
Inverter
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
When I/P voltage switches from Low to High; pMOS= off and nMOS = ON; so O/P load capacitance
Cload is being discharged through the nMOS transistor. So, Capacitor current is equal to drain current
of nMOS transistor (i.e. Icap = ID, n).
When I/P coltage switches from High to Low; nMOS= off and pMOS = ON; so output load
capacitance Cload is being charged-up through the pMOS transistor. So, Capacitor current is equal to
drain current of pMOS transistor (i.e. Icap = ID, p).
Assuming periodic I/P & O/P waveforms, average dynamic power dissipated by any device over one
period is :-
Since during switching, the nMOS transistor and the pMOS transistor in a CMOS inverter conduct
current for one-half period each, the average power dissipation of the CMOS inverter is equivalent to
the charge up and charge down of load capacitor.
Here, we will see that average power dissipation of the CMOS inverter is proportional to the switching
frequency f, so the low-power advantage of CMOS circuits becomes less prominent in high-speed
operation.
Average power dissipation is independent of all transistor characteristics and transistor sizes
Also, the switching delay times have no relevance to the amount of power consumption during the
switching events. Because switching power is solely dissipated for charging and discharging the
output capacitance from VOL to VOH, and vice versa
Because of this reason, the switching power expression derived for the CMOS inverter also applies to
all general CMOS circuits.
The analysis of switching power dissipation presented above is based on the assumption that the
output node of a CMOS gate undergoes one power-consuming transition (0-to-VDD transition) in each
clock cycle, but this is not correct as node transition rate can be slower than the clock rate. So, we will
introduce αT (node transition factor), which is the effective number of CMOS Logic power-consuming
voltage transitions experienced per clock cycle.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
where Ci, represents the parasitic capacitance associated with each node in the circuit (including the
output node) and αTi, represents the corresponding node transition factor associated with that node.
where Vbiasis the reverse bias voltage across the junction, Jsis the reverse saturation current density and
the A is the junction area.
• The total power dissipation in CMOS digital circuits can be expressed as the sum of four components,
where Ishort-circuitdenotes the average short-circuit current, Ileakagedenotes the reverse leakage and
subthreshold leakage currents, and Istaticdenotes the current component drawn from the power supply.
• The switching power dissipation, which is the first term is the dominating component in most CMOS
logic gates.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-31
Combinational Logic, NAND Gate, NOR gate, XOR gate (complex logic circuits)
AND-OR-INVERT (AOI)
It enables the sum-of-products realization of a Boolean function in one logic stage.
The pull-down net of the AOI gate consists of parallel branches of series-connected nMOS driver
transistors and the corresponding p-type pull-up network can simply be found using the dual-graph
concept.
OR-AND-INVERT (OAI)
It on the other hand, enables the product-of-sums realization of a Boolean function in one logic stage.
The pull-down net of the OAI gate consists of series branches of parallel-connected nMOS driver
transistors.
The corresponding p-type pull-up network can be found using the dual-graph concept.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Example 1
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Example2
Circuit topology:
N and P devices with sources and drains connected in parallel.
Vg is the control signal for the N device;
Vgc (complement of Vg) is the control signal for the P device.
Operation:
When Vg is high (at Vdd) and Vgc is therefore low (at Gnd), the NFET and PFET are both ON. The
switch is therefore CLOSED and Vout will be the same logic level as Vin.
When Vg is low (at Gnd) and Vgc is high (at Vdd), both devices are OFF. The switch is therefore
OPEN and Vout will be independent of Vin (high Z connection).
General Combinational Logic Circuit
Here, Inputs (V1,V2,..) are represented by node voltages.
The Boolean (or logic) value of " 1 " = VDD,
The Boolean (or logic) value of "0" = low voltage of 0.
In output there is a capacitance CL, which represents the combined parasitic device capacitances in the
circuit and the interconnect capacitance components seen by the output node.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
When either one or both inputs are high, i.e., when the n-net creates a conducting path between the
output node and the ground, the p-net is cut-off.
On the other hand, if both input voltages are low, i.e., the n-net is cut-off, then the p-net creates a
conducting path between the output node and the supply voltage VDD.
A DC current path between the VDD and ground is not established for any of the input combinations.
Now, apply the same rules of designing and we will get CMOS XOR circuit
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-32
Compound Gates, 2 input CMOS Multiplexer using CMOS
Inspection of the circuit topology reveals the simple design principle of the pull-down network:
* OR operations are performed by parallel-connected drivers.
* AND operations are performed by series-connected drivers.
* Inversion is provided by the nature of MOS circuit operation.
if all input variables are logic-high, the equivalent-driver(W/L) ratio of the pull-down network
consisting of five nMOS transistors is
For calculating the logic-low voltage level VOL we have to consider various cases, since the value of
VOL actually depends on the number and the configuration of the conducting nMOS transistors in
each case.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
To realize complex functions of multiple input variables, the basic circuit structures and design principles
developed for NOR and NAND can be extended to complex logic gates. The ability to realize complex logic
functions, using a small number of transistors is one of the most attractive features of nMOS and CMOS logic
circuits. Consider the following Boolean function as an example.
Z=[P(S+T)+QR]’
The nMOS depletion-load complex logic gate used to realize this function is shown in figure. In this figure, the left
nMOS driver branch of three driver transistors is used to perform the logic function P (S + T), while the right-hand
side branch performs the function QR. By connecting the two branches in parallel, and by placing the load
transistor between the output node and the supply voltage VDD, we obtain the given complex function. Each input
variable is assigned to only one driver.
Inspection of the circuit topology gives simple design principles of the pull-down network −
Each driver transistor in the pull-down network is shown by ai and each node is shown by a vertex
in the pull-down graph. Next, a new vertex is created within each confined area in the pull graph,
and neighboring vertices are connected by edges which cross each edge in the pull-down graph
only once. This new graph shows the pull-up network.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
This gate selects either input A or B on the basis of the value of the control signal 'C'.When control
signal C is logic low the output is equal to the input A and when control signal C is logic high the
output is equal to the input B.
The 2 : 1 MUX selects either A or B depending upon the control signal C. This is equivalent to
implementing the Boolean function.
F = (A C + B C bar)
When the control signal C is high then the upper transmission gate is ON and it passes A through it so
that output = A.
When the control signal C is low then the upper transmission gate turns OFF and it will not allow A to
pass through it, at the same time the lower transmission gate is 'ON' and it allows B to pass through it
so the output = B.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-33
Memory latches and registers using CMOS
Logic circuits are divided into two categories − (a) Combinational Circuits, and (b) Sequential
Circuits.
In Combinational circuits, the output depends only on the condition of the latest inputs.
In Sequential circuits, the output depends not only on the latest inputs, but also on the condition of
earlier inputs. Sequential circuits contain memory elements.
If the set input (S) is equal to logic "1" and the reset input is equal to logic "0." then the output Q
will be forced to logic "1". While Q¯ is forced to logic "0". This means the SR latch will be set,
irrespective of its previous state.
Similarly, if S is equal to "0" and R is equal to "1" then the output Q will be forced
to "0" while Q¯ is forced to "1". This means the latch is reset, regardless of its previously held state.
Finally, if both of the inputs S and R are equal to logic "1" then both output will be forced to
logic "0" which conflicts with the complementarity of Q and Q¯.
Therefore, this input combination is not allowed during normal operation. Truth table of NOR based
SR Latch is given in table.
S R Q Q¯ Operation
0 0 Q Q¯ Hold
1 0 1 0 Set
0 1 0 1 Reset
1 1 0 0 Not allowed
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
CMOS SR latch based on NOR gate is shown in the figure given below.
If the S is equal to VOH and the R is equal to VOL, both of the parallel-connected transistors M1
and M2 will be ON. The voltage on node Q¯ will assume a logic-low level of VOL = 0.
At the same time, both M3 and M4 are turned off, which results in a logic-high voltage VOH at
node Q. If the R is equal to VOH and the S is equal to VOL, M1 and M2 turned off and M3 and M4
turned on.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Block diagram and gate level schematic of NAND based SR latch is shown in the figure. The small
circles at the S and R input terminals represents that the circuit responds to active low input signals.
S R Q Q′
1 0 1 0 Latch SET.
0 1 0 1 Latch RESET.
1 1 0 0 Invalid condition.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
If S goes to 0 (while R = 1), Q goes high, pulling Q¯ low and the latch enters Set state
S = 0 then Q = 1 (if R = 1)
If R goes to 0 (while S = 1), Q goes high, pulling Q¯ low and the latch is Reset
R = 0 then Q = 1 (if S = 1)
Hold state requires both S and R to be high. If S = R = 0 then output is not allowed, as it would
result in an indeterminate state. CMOS SR Latch based on NAND Gate is shown in figure.
Depletion-load nMOS SR Latch based on NAND Gate is shown in figure. The operation is similar
to that of CMOS NAND SR latch. The CMOS circuit implementation has low static power
dissipation and high noise margin.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Clocked SR Latch
The figure shows a NOR-based SR latch with a clock added. The latch is responsive to inputs S and
R only when CLK is high.
When CLK is low, the latch retains its current state. Observe that Q changes state −
two parallel transistors in tree P are ON, thus retaining state in the memory cell.
When clock is high, the circuit becomes simply a NOR based CMOS latch which will
respond to input S and R.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Circuit is implemented with four NAND gates. If this circuit is implemented with CMOS then it
requires 16 transistors.
The D latch is normally, implemented with transmission gate (TG) switches as shown in the figure.
The input TG is activated with CLK while the latch feedback loop TG is activated with CLK. Input
D is accepted when CLK is high. When CLK goes low, the input is opencircuited and the latch is
set with the prior data D.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Clocked JK Latch
The figure above shows a clocked JK latch, based on NAND gates. The disadvantage of an SR latch is that
when both S and R are high, its output state becomes indeterminant. The JK latch eliminates this problem by
using feedback from output to input, such that all input states of the truth table are allowable. If J = K = 0, the
latch will hold its present state.
If J = 1 and K = 0, the latch will set on the next positive-going clock edge, i.e. Q = 1, Q¯ = 0
If J = 0 and K = 1, the latch will reset on the next positive-going clock edge, i.e. Q = 1 and Q¯ = 0.
If J = K = 1, the latch will toggle on the next positive-going clock edge
The operation of the clocked JK latch is summarized in the truth table given in table.
J K Q Q¯ S R Q Q¯ Operation
0 1 1 1 0 1
0 0 Hold
1 0 1 1 1 0
0 1 1 1 0 1
0 1 Reset
1 0 1 0 0 1
0 1 0 1 1 0
1 0 Set
1 0 1 1 1 0
0 1 0 1 1 0
1 1 toggle
1 0 1 0 0 1
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-34
Transmission Gate (TG), estimation of gate delays, Transistor sizing
Transmission Gates
Transmission Gate is designed by connecting PMOS and NMOS devices together in parallel.
These gates are quite different from conventional CMOS logic gates as the transmission gate is
symmetrical, or bilateral, that is, the input and output are interchangeable.
Need for Transmission gates:
NMOS device only passes a strong “0” but a weak “1”, while the PMOS device passes a strong “1”
but a weak “0” resulting in a requirement of a basic bilateral CMOS switch.
By combining the characteristics of the NMOS and the PMOS devices, it is possible to transmit
both a strong logic “0” or a strong logic “1” value in either direction without any degradation
forming the basis of a Transmission Gate.
This bilateral operation is shown in the transmission gate symbol below which shows two
superimposed triangles pointing in opposite directions to indicate the two signal direction
Two MOS transistors are connected back-to-back in parallel with an inverter used between the gate
of the NMOS and PMOS to provide the two complementary control voltages.
When the input control signal, VC is LOW, both the NMOS and PMOS transistors are cut-off and
the switch is open.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
When VC is high, both devices are biased into conduction and the switch is closed.
Transmission gate acts as a “closed” switch when VC = 1, while the gate acts as an “open” switch when
VC = 0 operating as a voltage-controlled switch.
The bubble of the symbol indicating the gate of the PMOS FET.
The operation of a transmission gate using both a truth table and boolean expression can be defined as
follows
Above truth table shows that the output at B relies not only the logic level of the input A, but also on the
logic level present on the control input.
Logic level value of B is defined as both A AND Control giving us the boolean expression for a
transmission gate of:
B= A. Control
Boolean expression of a transmission gate incorporates the logical AND function so this operation is
implemented using a standard 2-input AND gate with one input being the data input while the other is the
control input as shown.
AND Gate Implementation
A single NMOS or a single PMOS on its own can be used as a CMOS switch.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Combination of the two transistors in parallel has some advantages.An FET channel is resistive so the
ON-resistances of both transistors are effectively connected in parallel.
As a FETs ON-resistance is a function of the gate-to-source voltage, VGS, as one transistor becomes less
conducting due to the gate drive, the other transistor takes over and becomes more conducting.
Combined value of the two ON-resistances (as low as 2 or 3Ω) stays more or less constant than would be
the case for a single switching transistor on its own.
Connecting a P-channel FET (PMOS) with an N-channel FET (NMOS), a solid-state switch can be
created which is digitally controlled using logic level voltages and is commonly called a “transmission
gate”.
The Transmission Gate, (TG) is a bilateral switch where either of its terminals can be the input or the
output.
Along with the input and output terminals, the transmission gate has a third connection called the control,
where the control input determines the switching state of the gate as an open or closed (NO/NC) switch.
This input is typically driven by a digital logic signal that toggles between ground (0V) and a set DC
voltage, usually VDD.
When the control input is low (Control = 0), the switch is open, and when the control input is HIGH
(Control = 1) the switch is closed.
Transmission gates act like voltage-controlled switches, and being switches, CMOS transmission gates
can be used for switching both analogue and digital signals passing the full range of voltages (from 0V
to VDD) in either direction, which as discussed is not possible with a single MOS device.
The combination of an NMOS and a PMOS transistor together within a single gate means that the
NMOS transistor will transfer a good logic “0” but a poor logic “1”, while the PMOS transistor transfers
a good logic “1” but a poor logic “0”.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Connecting an NMOS transistor with a PMOS transistor in parallel provides a single bilateral switch
which offers efficient output drive capability for CMOS logic gates controlled by a single input logic
level.
Transmission Gate Model
Logic 1 transfer:
with
Logic 0 transfer:
Reduce CL
• internal diffusion capacitance of the gate itself (keep the drain diffusion as small as possible)
• the most powerful and effective performance optimization tool in the hands of the designer
• watch out for self-loading! – when the intrinsic capacitance dominates the extrinsic load Increase VDD
Increasing VDD
The sizing of the transistor can be done using RC delay approximation. The RC Delay Model helps in delay
estimation CMOS circuit. The RC delay model treats the non-linear transistor current-voltage I-V and
capacitor voltage C-V characteristics with their equivalent resistance and capacitance model. This RC delay
model approximates a transistor as a switch with a series of resistance or effective resistance R (Which is the
ratio of the average value of Vds to Ids). The size of a unit transistor is approximated as 4/2 lambda. The RC
circuit equivalent models for the PMOS and NMOS transistors are shown below.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Here the k width of both PMOS and NMOS transistors is contacted to Source S and drain D. Since the holes
in PMOS have lower mobility compared to electrons in the NMOS transistors, the PMOS will have twice the
resistance of the NMOS. The n-well is usually tied with the High voltage because the capacitors of PMOS are
shown with the VDD as their second terminal in the figure shown above. Similarly in nMOS, the capacitors
are connected to ground because usually p-well will be connected to lower supply.
1. The NMOS transistor which is having k times of width will have the resistance of R/k.
2. Similarly, A unit PMOS transistor which is having the k times of width will have the resistance
of 2R/k.
This is because of PMOS transistor will have greater resistance compared to the NMOS transistor because its
mobility is less. The value of R will be typically on the order of 10kOhm for a single transistor. Let us
understand the concept of transistor sizing with an example.
Given the logic function Y = A ( B + C ) + D E and asked to size the PMOS and NMOS transistors.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
PMOS sizing:
For a unit PMOS transistor, the effective resistance with the width k is given by 2R/k.
By looking at the pull-up network in the above circuit, we should find out the worst-case or the longest path to
VDD. In the above network, the path E-C-B is the longest path. So we can write the
equation (2R/k)+(2R/k)+(2R/k) = R, where R is the effective resistance. The equation gives the value of k = 6.
Therefore the k value transistors E, C, and B will be 6.
One more path D-C-B also contributes to the worst-case or longest path, So the k value of the transistor D also
becomes 6. The transistor A is equivalent to two transistors B and C (by looking at the circuit). Therefore we can
write 2R/k = 2 * 2R/6 Since we know the k values of B and C transistors.
Therefore the k value of transistor A is 3.
NMOS sizing:
For a unit NMOS transistor, the effective resistance with the width k is given by R/k.
In the above network, the worst-case or the longest path can be seen is with two transistors. (The paths A-B, A-
C, and D-E). So we can write the relation 2 * R/k = R, So the value of k of all the NMOS transistors will be 2
since all are in the longest path.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-35
Basic physical design of simple Gates and Layout issues, Layout issues for
CMOS inverter
Layout Designing Guidelines:
Run VDD and VSS in metal at the top and bottom of the cell
• Run a vertical poly line for each gate input
• Order the poly gate signals to allow the maximal connection between transistors via abutting source-drain
connection.
• Place n-gate segments close to VSS and p-gate segments close to VDD
• Connection to complete the logic gate should be made in poly, metal, or, where appropriate, in diffusion
Logic Gates Design Issues
• Hierarchical design
− Architecture level
− RTL/logic gate level
− Circuit level
− Layout level
• Critical paths – the path with the longest delay that require attention to timing details
• The number of Fanins and Fanouts affects the performance of the circuits
CMOS inverter
A complementary CMOS inverter is implemented as the series connection of a p-device and an n-device. The
source and the substrate (body) of the p -device is tied to the VDD rail, while the source and the substrate of
the n-device are connected to the ground bus. Thus, the devices do not suffer from anybody effect. To derive
the DC transfer characteristics for the CMOS inverter, which depicts the variation of the output
voltage (Vout) as a function of the input voltage (Vin)(Vin), one can identify five following regions of
operation for the n -transistor and p -transistor.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-36
Layout for NAND, NOR and Complex Logic gates
LAYOUT DESIGNING
All complex gates can be designed using a single row of N-transistors and a single row of P transistors,
Aligned at common gate connections
• Design procedure
− Draw two dual graphs to P transistor tree and N transistor tree
− Find all Euler paths that cover the graph
− Find a P and an N Euler path that have identical labeling
− If not found, break the gate in the minimum numbers of places to achieve design
Steps required for generating the mask layout of a CMOS NAND2 gate.
The realization of complex Boolean functions requires a series-parallel network of nMOS transistors
which constitute the so-called pull-down net, and a corresponding dual network of pMOS transistors
which constitute the pull-up net. Once the network topology of the nMOS pull- down network is known,
the pull-up network of pMOS transistors can easily be constructed by using the dual-graph concept.
A complex CMOS logic gate realizing a Boolean function with 5 input variables.
Stick Diagram layout of the complex CMOS logic gate
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-37
Layout of TG, Layout optimization using Euler path
Euler-path method
Simply find a Euler path in the pull-down network graph and a Euler path in the pull-up network graph
with the identical ordering of input labels, i.e., find a common Euler path for both graphs. The Euler path
is defined as an uninterrupted path that traverses each edge (branch) of the graph exactly once. Figure 3.12
shows the construction of a common Euler path for both graphs in our example. Finding a common Euler
path in both graphs for the pull-down and pull-up net provides a gate ordering that minimizes the number
of active-area breaks. In both cases, the Euler path starts at (x) and ends at (y).
It is seen that there is a common sequence (E-D-A-B-C) in both graphs. The polysilicon gate columns can
be arranged according to this sequence, which results in uninterrupted active areas for nMOS as well as
for pMOS transistors. The stick diagram of the new layout is shown in Fig. . In this case, the separation
between two neighboring poly columns must allow only for one metal-diffusion contact. The advantages
of this new layout are more compact (smaller) layout area, simple routing of signals, and correspondingly,
smaller parasitic capacitance.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
the circuit diagram of a CMOS one-bit full adder. The circuit has three inputs, and two outputs, sum and
carry_out. The corresponding mask layout of this circuit is given in Fig. 3.15. All input and output signals
have been arranged in vertical polysilicon columns. Notice that both the sum-circuit and the carry-circuit
have been realized using one uninterrupted active area each.
Lecture-38
DRC rules for layout and issues of interconnects, Latch up problem
Layer Representations
With increase of complexity in the CMOS processes, the visualization of all the mask levels that are
used in the actual fabrication process becomes inhibited. The layer concept translates these masks to a
set of conceptual layout levels that are easier to visualize by the circuit designer. From the designer's
viewpoint, all CMOS designs have the following entities:
Two different substrates and/or wells: which are p-type for NMOS and n-type for PMOS.
Diffusion regions (p+ and n+): which defines the area where transistors can be formed. These regions
are also called active areas. Diffusion of an inverse type is needed to implement contacts to the well or
to substrate.These are called select regions.
Transistor gate electrodes : Polysilicon layer
Metal interconnect layers
Interlayer contacts and via layers.
The layers for typical CMOS processes are represented in various figures in terms of:
layer representations for CMOS inverter using above design rules is shown below-
Lecture-39
Static logic circuits may require a large number of transistors to implement a function and may cause a
considerable time delay while dynamic circuits provide more compact designs with faster switching
speeds and reduced power consumption.
Static logic circuits may require a large number of transistors to implement a function and may cause a
considerable time delay while dynamic circuits provide more compact designs with faster switching
speeds and reduced power consumption.
Switching speed of static circuits is limited by two factors:
Current conduction level through a MOSFET
Parasitic capacitances in the network.
Instead of fighting the time constant limits induced by the RC parasitics, the presence of capacitances
is accepted.
The operation of dynamic logic gates depends on temporary storage of charge in parasitic node
capacitances.
A dynamic CMOS circuit technique helps in reducing the number of transistors used to implement any
logic function.
It works in two phases:
1. Precharge:
Output node capacitance is precharged.
2. Evaluate:
Output voltage level is evaluated according to the applied inputs.
Both of these operations are scheduled by a single clock signal.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
output node of the dynamic CMOS stage is precharged to a high logic level,
Out is precharged to VDD by Mp. Me is turned off, no dc current flows (regardless of input values)
output of the CMOS inverter becomes low.
During the evaluate phase ( Clock = 1),
output node of the dynamic CMOS stage is either discharged to a low level through the nMOS
circuitry (1 to 0 transition), or it remains high.
Me is turned on, Mp is turned off. Output is pulled down to zero depending on the values on the
inputs. If not, precharged value remains on CL.
inverter output voltage can also make at most one transition during the evaluation phase, from 0 to 1.
Regardless of the input voltages applied, it is not possible for the inverter output to make a 1 to 0 transition
during the evaluation phase.
The parasitic output capacitance of the circuit is charged upto a logic-high level of Vout = VDD.
The input voltages are also applied during this phase, but they have no influence yet upon the
output level since Me is turned off.
Lecture-40
Clocked-CMOS (C2MOS) is a logic family that combines static logic design with the
synchronization achieved by using clock signals. ... In modern design, the technique is still useful in
certain applications, such as dynamic “NORA” circuits. Figure show the general structure of a
C2MOS logic gate.
Clocked-CMOS (C2MOS) is a logic family that combines static logic design with the
synchronization achieved by using clock signals. In the early days of CMOS, many SSI and MSI
chips were based on C2MOS In modern design, the technique is still useful in certain applications,
such as dynamic “NORA” circuits.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Figure show the general structure of a C2MOS logic gate. The inputs A, B, and C are connected to
complementary nFET/pFET pairs as in ordinary static design where they act like open or closed
switches. The only modification is the insertion of two clocked FETs between the logic arrays and the
output. Mp is controlled by ϕ¯and separates the pFET logic block and Cout while Mn is controlled
by ϕ and serves the same function for the nFET logic block. The operation of the gate can be
understood by effects of the clock ϕ(t)ϕ(t).
When the clock is at a level of ϕ=1ϕ=1 as in Figure (a), both Mn and Mp are biased active. This
connects both logic arrays to the output node, and the gate degenerates to its static equivalent circuit;
the main difference are longer switching times due to the additional parasitics. After the transients
have decayed, the output capacitor Cout will be charged to a voltage Vout=0 orVout=VDD. Figure
(b) shows the circuit when ϕ=0and both Mn and Mp are in cutoff. This isolates the output node from
both logic arrays and the value of Vout=VResult is held on Cout. However, a moment's reflection
will verify that this is identical to the problem of maintaining charge on a capacitive node using an
OFF transmission gate, so that the value of Vout will change in time. The result is only valid for the
hold time tH, which is an important characteristic of this type of circuit.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Since C2MOS is based on static logic, it is a simple matter to design an entire family of gates with the
same characteristics. Examples of these are the NAND2 gate in Figure (a) and the NOR2 gate in Figure
(b). In principle, any AOI or OAI logic circuit may be created using the formalism. However, since the
additional delay introduced by the clocking FETs cannot be eliminated, the logic family is automatically
limited to slower systems
A variation of C2MOSC2MOS latch is shown in Figure. This uses a static inverter between two clocked
circuits as the second stage to produce the output, which is not a tri-state node. This allows for the output
to be taken at any time. The third stage circuit (which is the second C2MOS inverter in the chain) is now
being used to provide clocked controlled feedback.
C2MOS logic provides a straightforward approach to synchronizing data flow while maintaining static
logic ideas.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-41
Problem in cascading conventional dynamic CMOS stages occurs when one or more inputs of a
stage make a 1 to 0 transition during the evaluation phase.
If we build a system by cascading domino CMOS logic gates, all input transistors in subsequent
logic blocks will be turned off during the precharge phase, since all inverter outputs are equal to
0.
During the evaluation phase, each inverter output can make at most one transition (from 0 to 1),
and thus each input of all subsequent logic stages can also make at most one transition(0 to 1).
In a cascade structure consisting of several such stages, the evaluation of each stage ripples the
next stage evaluation, similar to a chain of dominos falling one after the other.
The structure is hence called domino CMOS logic.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-42
In domino logic, an inverter is required to connect, while NORA logic consist of alternating nMOS and
pMOS stages, as shown in following figure-
The precharge and evaluate timing of nMOS logic stage is accomplished by clock signal ‘Ф’
while pMOS logic stages are controlled by ϕ .
Operation
When Ф=0, the output nodes of nMOS logic blocks are precharge to VDD through pMOS
precharge transistor, whereas the output nodes of pMOS logic blocks are pre-charged to 0V
through the nMOS discharge transistor, driven by Ф.
When Ф=1, all cascaded nMOS and pMOS logic stages evaluate one after the other.
Lecture-43
Zipper CMOS logic
Zipper logic is a scheme for improving charge leakage and charge sharing problems.
Identical to NORA except the clock signals.
It receives a slightly different clock signals for the pre-charge (discharge) transistors and for pull
down (pull up) transistors.
Clock signals which drive pMOS precharge and nMOS discharge transistors, allow the transistors
to remain in weak conduction or in cutoff during evaluate phase, thus compensating for charge
sharing and charge leakage problems.
pMOS pre-charge transistors gates are held at Vdd - |Vtp|
nMOS pre-charge transistors gates are held at Vtn above GND.
Lecture-44
Primary Memory also called as volatile memory because the memory can’t store the data permanently.
Primary memory select any part of memory when user want to save the data in memory but that may not
be store permanently on that location. It also has another name i.e. RAM.
The primary storage is referred to as random access memory (RAM) due to the random selection of
memory locations. It performs both read and write operations on memory. If power failures happened in
systems during memory access then you will lose your data permanently. So, RAM is volatile memory.
RAM categorized into following types.
DRAM
SRAM
DRDRAM
2. Secondary Memory / Non Volatile Memory:
Secondary memory is external and permanent memory that is useful to store the external storage media
such as floppy disk, magnetic disks, magnetic tapes and etc cache devices. Secondary memory deals with
following types of components.
ROM is permanent memory locations that offer huge types of standards to save data. But it work with
read only operation. No data lose happen whenever power failure occur during the ROM memory work in
computers.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
1. PROM: Programmable Read Only Memory (PROM) maintains large storage media but can’t offer the
erase features in ROM. This type of RO maintains PROM chips to write data once and read many. The
programs or instructions designed in PROM can’t be erased by other programs.
2. EPROM : Erasable Programmable Read Only Memory designed for recover the problems of PROM
and ROM. Users can delete the data of EPROM thorough pass on ultraviolet light and it erases chip is
reprogrammed.
3. EEPROM: Electrically Erasable Programmable Read Only Memory similar to the EPROM but it uses
electrical beam for erase the data of ROM.
Cache Memory: Main memory less than the access time of CPU so, the performance will decrease
through less access time. Speed mismatch will decrease through maintain cache memory. Main memory
can store huge amount of data but the cache memory normally kept small and low expensive cost. All
types of external media like Magnetic disks, Magnetic drives and etc store in cache memory to provide
quick access tools to the users.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-45
An SRAM cell has three different states: standby (the circuit is idle), reading (the data has been
requested) or writing (updating the contents). SRAM operating in read mode and write modes should
have "readability" and "write stability", respectively.
If the word line is not asserted, the access transistors M5 and M6 disconnect the cell from the bit lines.
The two cross-coupled inverters formed by M1 – M4 will continue to reinforce each other as long as they
are connected to the supply.
Read Operation
In theory, reading only requires asserting the word line WL and reading the SRAM cell state by a single
access transistor and bit line, e.g. M6, BL. However, bit lines are relatively long and have large parasitic
capacitance. To speed up reading, a more complex process is used in practice: The read cycle is started by
precharging both bit lines BL and BL, to high (logic 1) voltage. Then asserting the word line WL enables
both the access transistors M5 and M6, which causes one bit line BL voltage to slightly drop. Then the
BL and BL lines will have a small voltage difference between them. A sense amplifier will sense which
line has the higher voltage and thus determine whether there was 1 or 0 stored. The higher the sensitivity
of the sense amplifier, the faster the read operation. As the NMOS is more powerful, the pull-down is
easier. Therefore, bit lines are traditionally precharged to high voltage.
Many researchers are also trying to precharge at a slightly low voltage to reduce the power consumption.
1T DRAM cell
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Write Operation
The write cycle begins by applying the value to be written to the bit lines. If we wish to write a 0, we
would apply a 0 to the bit lines, i.e. setting BL to 1 and BL to 0. This is similar to applying a reset pulse
to an SR-latch, which causes the flip flop to change state. A 1 is written by inverting the values of the bit
lines. WL is then asserted and the value that is to be stored is latched in. This works because the bit line
input-drivers are designed to be much stronger than the relatively weak transistors in the cell itself so they
can easily override the previous state of the cross-coupled inverters. In practice, access NMOS transistors
M5 and M6 have to be stronger than either bottom NMOS (M1, M3) or top PMOS (M2, M4) transistors.
This is easily obtained as PMOS transistors are much weaker than NMOS when same sized.
Consequently, when one transistor pair (e.g. M3 and M4) is only slightly overridden by the write process,
the opposite transistors pair (M1 and M2) gate voltage is also changed. This means that the M1 and
M2 transistors can be easier overridden, and so on. Thus, cross-coupled inverters magnify the writing
process.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
Lecture-46
1T DRAM cell
3 T DRAM cell
A 3T DRAM cell has a higher density than a SRAM cell; moreover in a 3T DRAM, there is no
constraint on device ratios and the read operation is non destructive.
In this cell, the storage capacitance is the gate capacitance of the readout device, so making this
scheme attractive for embedded memory applications; however, a 3T DRAM shows still limited
performance and low retention time to severely limit its use in advanced integrated circuits. 3T
DRAM utilizes gate of the transistor and a capacitance to store the data value.
When data is to be written, write signal is enabled and the data from the bit line is fed into the cell.
When data is to be read from the cell, read line is enabled and data is read through the bit line. 3T
DRAM cell occupies less area compared to the 4T DRAM cell.
Swami Keshvanand Institute of Technology, Management &Gramothan,
Ramnagaria, Jagatpura, Jaipur-302017, INDIA
Approved by AICTE, Ministry of HRD, Government of India
Recognized by UGC under Section 2(f) of the UGC Act, 1956
Tel.: +91-0141- 5160400Fax: +91-0141-2759555
E-mail: [email protected] Web: www.skit.ac.in
The 3T1D cell in fig. shows the scheme of the basic cell. The basis of the storage system is the
charge placed in node S, written from BL write line when T1 is activated.
Consequently, it has a DRAM cell nature, but it allows a non-destructive read process (a clear
advantage over 1T1C memories) and high performance read and writes operation, comparable to
6T.With T1 and T3 transistors as accessing devices, the whole cell is composed by four transistors
of similar size to the corresponding of 6T.
This implies a more compact cell structure. In order to write the cell at the BL write line level it is
only required to activate T1 through the WL write line. Hence, the S node stores either a 0 or
a VDD−Vth voltage depending on the logic value.
This voltage results in the accumulation of charge at the gate of devices D1 and T2. A key aspect
of the 3T1D memory cell is that the capacitance of the gated diode (D1) when VGS is
above VTH is significantly higher with respect to lower voltages, because there is a substantial
amount of charge stored in the inversion layer.
In order to read the cell, the read bit line BL read has to be previously pre-charged at VDD level.
Then T3 is activated from WL read line. If a high (1) level is stored in S, transistor T2 turns on
and discharges the bit line. If a low (0) level is stored in S, transistor T2 does not reach enough
conduction level.
The objective of the gated diode D1 is to improve Read Access Time. When a high (1) level is
stored in S, D1 connected to WL read line causes a boosting effect of the voltage level in node S.
The voltage level reached at node S is close to VDD voltage causing a fast discharge of the
parasitic capacitance in BL read. If allow (0) level is stored, transistor T2 keeps turned off.