3cmos
TRANSCRIPT
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 1/23
CMOS Logic Circuits
Inverter 2 Input NOR
2 Input NAND
Other functions
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 2/23
The CMOS Inverter
Vout
Vdd = 5V
Vin
Tpu (pMOS)
Tpd (nMOS)
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 3/23
DC OperationVoltage Transfer Characteristics (VTC)
V(x)
V(y)
f
V(y)V(x)
Plot of output voltage as a function of the input voltage
VOH = f (VIL)
VIL VIH
V(y)=V(x)
Switching Threshold VM
VOL = f (VIH)
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 4/23
Mapping Logic Levels to the Voltage
Domain
V(x)
V(y)
Slope = -1
Slope = -1
VOH
VOL
VIL VIH
"1"
"0"
Undefined
Region
VOH
VOL
VIL
VIH
The regions of acceptable high and low voltages are
delimited by VIH and VIL that represent the points on theVTC curve where the gain = -1
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 5/23
Fan-In and Fan-Out Fan-out – number of load gates
connected to the output of thedriving gate
gates with large fan-out are slower
N
M
Fan-in –
the number of inputs tothe gate
gates with large fan-in are bigger and slower
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 6/23
The Ideal Inverter
The ideal gate should have
– infinite gain in the transition region
– a gate threshold located in the middle of the logic swing
– high and low noise margins equal to half the swing
– input and output impedances of infinity and zero, resp.
g = -
Vout
Vin
Ri =
Ro = 0
Fanout =
NMH = NML = VDD/2
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 7/23
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 8/23
CMOS Logic Gates CMOS integrated circuits are built around using two kinds of Field
Effect Transistors (FET), n-type & p-type.
– the gate input controls whether current can flow between the other twoterminals or not.
n-FET
gate
p-FET
Logic gates are constructed by combining transistors in
complementary arrangements.
NAND
A
B
( AB)
NOR
A
B
( A+B )
transmission gate
TG
inverter
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 9/23
Circuit Delays in CMOS Circuits
Response to instantaneous change at
X is gradual decrease in voltage at
Y and similar gradual increase at Z.
Voltage at Y must drop below logicthreshold level to be “seen” as a „0‟.
This effect can be viewed as delay in propagation of logic values.
– t PLH denotes low-to-high delay
– t PHL denotes high-to-low delay
– t pd= max{t PLH, t PHL}
– relative values of t PLH and t PHL depend on relative “strength” of pull-up
and pull-down transistors in inverters
– values vary with operating temperature and manufacturing processes
X Y Z
X
Y
Z
Electronic gates are physical devices
that take time to operate.
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 10/23
Closer Look at CMOS Circuit Delays
Decrease of voltage at Y requires transfer of charge
from capacitor to ground.
– wires and transistor gates act like capacitors
– time for transfer depends on size of capacitanceand on resistance of pull-down transistor
– pull-up & pull-down transistors can have
different “on-state” resistance values
Use of two parallel inverters between X and Y cangive faster logic transitions.
X Y Z
X
Y
Z
When X goes high, pull-up of first inverter
turns off and pull-down turns on.
equivalent circuit
when X is low
X Y Z
equivalent circuitwhen X is high
X Y Z
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 11/23
Circuit: The CMOS Inverter
VDD
Vout
CL
Vin
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 12/23
Since the gate is essentially an open circuit it draws no current, and theoutput voltage will be equal to either ground or to the power supply
voltage, depending on which transistor is conducting.
When input A is grounded (logic 0), the N-channel MOSFET is
unbiased, and therefore has no channel enhanced within itself. It is anopen circuit, and therefore leaves the output line disconnected from
ground. At the same time, the P-channel MOSFET is forward biased,
so it has a channel enhanced within itself, connecting the output line to
the +Vsupply. This pulls the output up to +V (logic 1).
When input A is at +V (logic 1), the P-channel MOSFET is off and the
N-channel MOSFET is on, thus pulling the output down to ground
(logic 0). Thus, this circuit correctly performs logic inversion, and at
the same time provides active pull-up and pull-down, according to the
output state.
CMOS Inverter - Operation
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 13/23
Time
In
Out
In 0.25µm typical delay 50ps
The CMOS Inverter (mask layout) &
SPICE simulation
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 14/23
CMOS Inverter (Recall)
Inverter Layout
Using
Microwind
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 15/23
CMOS 2-Input NOR
A
B
+V
Y = A + B
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 16/23
This basic CMOS inverter can be expanded into NOR and
NAND structures by combining inverters in a partially series,
partially parallel structure. A practical example of a CMOS 2-
input NOR gate is shown in the figure.
In this circuit, if both inputs are low, both P-channel MOSFETs
will be turned on, thus providing a connection to +V. Both N-
channel MOSFETs will be off, so there will be no ground
connection. However, if either input goes high, that P-channelMOSFET will turn off and disconnect the output from +V, while
that N-channel MOSFET will turn on, thus grounding the output.
Note the two p-channel FETs in series.
CMOS 2-Input NOR - Operation
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 17/23
CMOS 2-Input NAND
A
B
+V
Y = A • B
+V
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 18/23
2-Input NAND
A
B
p
p
n
n
out
If both inputs 1, both p-channel are off, both n-channel are on,
out is negative;
otherwise at least one p-channel is on and one n-channel off,and out is positive
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 19/23
A two-input NAND gate: a logic 0 at either input will force the output to
logic 1; both inputs at logic 1 will force the output to go to logic 0.
Note the two n-channel FETs in series and the two p-channel FETs in
parallel.
The pull-up and pull-down resistances at the output are never the same,
and can change significantly as the inputs change state, even if the output
does not change logic states. The result is uneven and unpredictable rise
and fall times for the output signal. This problem was addressed, and was
solved with the buffered, or B-series CMOS gates.
CMOS 2-Input NAND - Operation
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 20/23
CMOS 2-Input NAND: Buffered
B
+V +V
Y = A • B
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 21/23
The technique here is to follow the actual NAND gate with a pair of inverters. Thus,
the output will always be driven by a single transistor, either P-channel or N-channel.
Since they are as closely matched as possible, the output resistance of the gate will
always be the same, and signal behavior is therefore more predictable. Typically, the p-
channel transistor is approximately twice as wide as the n-channel transistor, because of
the difference in conductivity between electronics and holes.
Note that we have not gone into all of the details of CMOS gate construction here. For
example, to avoid damage caused by static electricity, different manufacturers
developed a number of input protection circuits, to prevent input voltages frombecoming too high. However, these protection circuits do not affect the logical behavior
of the gates, so we will not go into the details here. This is not strictly true for most
CMOS devices for applications that are power-switched; special inputs are required for
power-off isolation between circuits.
CMOS 2-Input NAND: Buffered
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 22/23
CMOS 2-Input XOR
Layout of
2 Input XOR
Using
Microwind
7/31/2019 3cmos
http://slidepdf.com/reader/full/3cmos 23/23
CMOS mask set for Boolean function
F=A.B + C.D