Professional Documents
Culture Documents
COMPUTER ORGANIZATION
Lecture 3: Logic gates
ELEC3010
ACKNOWLEGEMENT
2
COVERED IN THIS COURSE
❑ Binary numbers and logic gates
❑ Boolean algebra and combinational logic
❑ Sequential logic and state machines
❑ Binary arithmetic
Digital logic
❑ Memories
4
TRANSISTORS
Source Gate Drain Source Gate Drain
—
Insulator Insulator
- + + + + + + + + - - + + + + -
+ + channel created
+ + P-type
- + + + - - - + + + - - + + + - +- - + ++ -
P-type - P-type P-type - P-type
- N-type - - N-type
- - - - - - - - -
- - - - - - - - - - - -
- - - - - - - - - - - - - -
Off On
N-Type Silicon: negative free-carriers (electrons)
P-Type Silicon: positive free-carriers (holes)
P-Transistor: neg. charge on gate generates electric field that creates a (+ charged) p-channel connecting source & drain
N-Transistor: works the opposite way
Metal-Oxide Semiconductor (Gate-Insulator-Silicon)
Complementary MOS = CMOS technology uses both p- & n-type transistors
5
CMOS NOTATION
Off/Open On/Closed
N-type
0 1
gate
P-type
Off/Open On/Closed
1 0
Gate input controls whether current can flow between the other two
terminals or not.
Hint: the “o” bubble of the p-type tells you that this gate wants a 0 to be
turned on
6
2-TRANSISTOR COMBINATION: NOT
• Logic gates are constructed by combining transistors in complementary arrangements
• Combine p&n transistors to make a NOT gate:
CMOS Inverter :
power source (1) power source (1) power source (1)
in out
in out
10
LOGIC SYMBOLS & NOTATION
NOT: = ā = !a = a NAND:
(a ⚫ b) = !(a & b) = (a b)
AND: = a ∙ b = a & b = a b
NOR:
OR: =a+b =a|b =ab (a + b) = !(a | b) = (a b)
XNOR:
XOR: = a b = ab+ āb (a ⨁ b) = ab + ab
11
NOR GATE
Vsupply Function: NOR
Symbol: a
A b
out
B
A B out
out
0 0 1
A B Truth Table:
0 1 0
Note: the 2 As are the same input. Technically there 1 0 0
should be only a single letter A, but it makes the
diagram messy. 1 1 0
12
CAN YOU DO IT?
Vsupply Vsupply
Truth Table: Which Gate
A B
out is this?
A B out
0 0 B (A) NOT
(B) OR
0 1 A (C) XOR
1 0 (D) AND
(E) NAND
1 1
13
CAN YOU DO IT?
Vsupply Vsupply
Truth Table: Which Gate
A B
out is this?
A B out
0 0 1 B (A) NOT
(B) OR
0 1 1 A (C) XOR
1 0 1 (D) AND
(E) NAND
1 1 0
14
CAN YOU DO IT?
a
b Which Gate
Out is this?
(A) NOT
A B out (B) OR
0 0 (C) XOR
Truth Table: (D) AND
0 1 (E) NAND
1 0
1 1
15
CAN YOU DO IT?
a
b Which Gate
Out is this?
(A) NOT
A B out (B) OR
0 0 0 (C) XOR
Truth Table: (D) AND
0 1 1 (E) NAND
1 0 1
1 1 0
16
UNIVERSAL GATES
NAND and NOR:
• Can implement any function with NAND or just NOR gates
• useful for manufacturing
• NOT: a
a
• AND:
b
• OR: a
b
17
NON-FUNCTIONAL PROPERTIES
❑ Logic voltage levels and noise margin
Driver Receiver NMH = VOH – VIH
NML = VIL-VOL
Vcc Vcc
VDD
Logic High
Output Range High Logic High
High
VOH NMH Input Range
VIH
VIL
VOL NML
Logic Low Low Logic Low
Low Input Range
Output Range
GND Input
Output
18
NON-FUNCTIONAL PROPERTIES
❑ Logic voltage levels and noise margin
Logic Family VDD VIL VIH VOL VOH
TTL 5 0.8 2.0 0.4 2.4
CMOS 5 1.35 3.15 0.33 3.84
LVTTL 3.3 0.8 2.0 0.4 2.4
LVCMOS 3.3 0.9 1.8 0.36 2.7
NMH = ?
NML = ?
19
NON-FUNCTIONAL PROPERTIES
❑ Power Consumption
1
▪ Pdynamic = .C.f.V2DD
2
➢ C: proportional to chip area (trend: increase)
➢ f: trend: steep increase: 1MHz -> 4 GHz
➢ V: trend: steady decrease: 5 -> 3.3 -> 2.5 -> 1.8 -> 1.5 -> 1.2 ->
0.9
▪ Pstatic = IDDVDD
20
NON-FUNCTIONAL PROPERTIES
❑ Propagation delay
21
IMPLEMENTATION TECHNOLOGIES
22
IMPLEMENTATION TECHNOLOGIES
❑ SSI, MSI, LSI, VLSI
▪ SSI: Small Scale Integration
➢ < 10 gates per package
➢ gates directly connected to package pins
➢ designed using transistor level design
▪ MSI: Medium Scale Integration
➢ 10 - 100 gates per package
➢ registers, adders, parity generators, …
➢ designed using gate level design
23
IMPLEMENTATION TECHNOLOGIES
❑ SSI, MSI, LSI, VLSI
▪ LSI: Large Scale Integration
➢ 100 - 10K gates per package
➢ controllers, data paths
➢ designed using RTL design
▪ VLSI:Very Large Scale Integration
➢ 10K - 1M gates per package
➢ memory, microprocessor, microcontroller
➢ designed using behavioral level design
24
IMPLEMENTATION TECHNOLOGIES
25
IMPLEMENTATION TECHNOLOGIES
26
IMPLEMENTATION TECHNOLOGIES
27
IMPLEMENTATION TECHNOLOGIES
28
IMPLEMENTATION TECHNOLOGIES
29
BEFORE NEXT CLASS
• Textbook: 2.5-2.8
30