1
CMOS Logic Circuits – Switch model
2
Switch Logic
Digital systems use binary variables to represent information and switches to be controlled by the variables to process information.
Variable a controls a switch that connects a voltage source to a light bulb.
3
AND, OR, OR-AND Switch Networks
4
Two switch networks of 3-input majority function
5
Switch networks of XOR
Example: Series-parallel networks
Draw and simplify a series-parallel circuit that realizes the function
f(d,c,b,a) = 1 if dcba is a legal thermometer encoding (0000, 0001, 0011, 0111, or 1111).
7
MOS Transistor 구조
8
Operation of n-channel MOSFET
9
Operation of p-channel MOSFET
10
Electrical Model of PFET and NFET
11
Output voltage of an inverter as a function of input
voltage
12
Logic circuit → Switches
Switches → MOS transistors
Logic circuit → MOS transistors
Gate with restoring output → static CMOS gate
Summary
• Switch logic to drive gate circuits
• NMOS ad PMOS transistors act as switches with restrictions
• NMOS ad PMOS transistors have the parasitic resistance and capacitance, which affect the switching delay.
14
CMOS Logic Circuits - Gates
15
Static CMOS Gate Circuits
restoring output
Duality?
16
CMOS gate: Monotonic decreasing function
If the transitions on the outputs are in the opposite direction to the transitions on the inputs, it is a monotonic decreasing or inverting logic function.
If the transitions are in the same direction, it is called a monotonic increasing function.
To realize a non-inverting or monotonic increasing logic function requires multiple stages of CMOS gates.
17
A CMOS Inverter
Bubble rule Where possible, signals that are output from a gate with an inversion bubble on its output shall be input to a gate with an
inversion bubble on its input.
18
Switch networks used to realize NAND and NOR gates
19
A CMOS NAND
20
A CMOS NOR
21
Example: Four-input static CMOS NAND
Draw the transistor-level implementation of a four-input NAND gate f = 𝑎𝑏𝑐𝑑
22
Complex Gates
Gates built from arbitrary series-parallel (i.e., not a simple series and parallel) networks or networks that are not series-parallel.
AND-OR-inverter (AOI) gate
23
XOR gates
Boolean equation for 2-input XOR gate?
Can we build a single-stage 2-input XOR gate ?
Boolean equation for 3-input XOR gate?
Can we build a single-stage 3-input XOR gate ?
24
Example: CMOS gate synthesis
Draw a complex gate for f = ( ҧ𝑐𝑏)(𝑏𝑎)ത
25
Summary
• CMOS gate circuit to implement a logic function f.
– Pull-down NFET network to implement for f = 0.
– Pull-up PNET network to implement for f = 1.
– Dual network of NFET network
• Inverters, NANDs, NORs, and Complex gates
• All CMOS gates are monotonically decreasing.
• Multiple stages of CMOS gates are requited to build increasing or non-inverting functions.
26
CMOS Logic Circuits – Tri-state
27
Tri-state circuit
Tri-state-inverter Multiplexer using tri-state-inverters
28
Circuits to avoid
29
(a) Would-be-buffer
It attempts to pass 1 through NFET and a 0 through PFET.
30
(b) No-restoring circuit
It does not restore its output. If b = 0, a noise in input a is passed directly to the output.
31
(c) Tri-state circuit
When a = 1 and b = 0, its output is disconnected. Due to parasitic
capacitance, the previous output value will be stored for a short period of time on the output node. However, after a period, the stored charge will ________ and the output node becomes _________ value.
32
(d) Short circuit
Both of the pull-up and pull-down network conduct when a and b are not equal. This static current from power to ground outputs __________
value, wasting __________, and potentially __________ the chip.
33
Summary
• Tri-state circuits: Not a CMOS gate, can be in unconnected state