Gates and Logic: From Transistors to Logic Gates and Logic Circuits
CS 3410: Computer System Organization and Programming
[K. Bala, A. Bracy, E. Sirer, and H. Weatherspoon]
Gates and Logic: From Transistors to Logic Gates and Logic Circuits - - PowerPoint PPT Presentation
Gates and Logic: From Transistors to Logic Gates and Logic Circuits CS 3410: Computer System Organization and Programming [K. Bala, A. Bracy, E. Sirer, and H. Weatherspoon] Goals for Today From Switches to Logic Gates to Logic Circuits
[K. Bala, A. Bracy, E. Sirer, and H. Weatherspoon]
§ Identity Laws § From Truth Tables to Circuits (Sum of Products)
2
https://www.youtube.com/watch?v=IcrBqCFLHIY
3
N-Type Silicon: negative free-carriers (electrons) P-Type Silicon: positive free-carriers (holes) P-Transistor: negative 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)
transistors
4
N-type
Off
Insulator P-type P-type Gate Drain Source + + + + + + + + + + +
+ + N-type
On
Insulator P-type P-type Gate Drain Source + + + + + + + +
+
P-type channel created
+ + + + +
—
5
gate Off/Open On/Closed 1 Off/Open 1 On/Closed gate
6
7
p-gate closes n-gate stays open p-gate stays open n-gate closes
CMOS Inverter :
ground (0) power source (1) input
p-gate n-gate power source (1) ground (0) ground (0) power source (1) 1 — — + + 1
8
in
in
Vsupply (aka logic 1) (ground is logic 0)
9
George Boole Inventor of the idea
Lincoln, England and he was the son
Ge George Boole,(1815-1864) 1864)
A B Out 1 1 1 1 1 1 1 A B Out 0 0 0 1 1 0 1 1 1 A Out 1 1
A B A B A
A B Out 0 0 0 1 1 1 0 1 1 1
A B
A B Out 1 1 1 1 1 A B Out 0 0 1 0 1 1 1 0 1 1 1
A B A B
A B Out 0 0 1 0 1 1 0 1 1 1
A B
b a
A
Vsupply B B A
11
12
A
Vsupply B B A Vsupply
(A) NOT (B) OR (C) XOR (D) AND (E) NAND
§ Simplicity
§ Complexity
interactions
13
in
Vdd Vss in
a d b a b d
14
(A) NOT (B) OR (C) XOR (D) AND (E) NAND a b Out
§ Can implement any function with NAND or just NOR gates § useful for manufacturing
15
b a b a a
16
a b d Out 1 1 1 1 1 1 1 1 1 1 1 1 Multiplexing Like a Boss
§ From Truth Tables to Circuits (Sum of Products) § Identity Laws
§ Algebraic Manipulations § Karnaugh Maps
17
18
c
b a
Any combinational circuit can be implemented in two levels of logic (ignoring inverters)
= !a = ¬a
= a + b = a | b = a Ú b
§ Constants: true = 1, false = 0 § Variables: a, b, out, … § Operators (above): AND, OR, NOT, etc.
19
(a b) = !(a & b) = ¬ (a Ù b)
(a + b) = !(a | b) = ¬ (a Ú b)
(a ⨁ b) = ab + ab
20
21 A B A B
A B A B
§ Identity Laws § From Truth Tables to Circuits (Sum of Products)
§ No details this semester, but quick discussion of what
22
23
a b c (a+b) LHS (a+c) RHS bc 1 1 1 1 1 1 1 1 1 1 1 1
24
a b c (a+b) LHS (a+c) RHS bc 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
§ You will build a processor in this course! § Modern transistors made from semiconductor
§ Transistors used to make logic gates and logic circuits
§ Use P- & N-transistors to implement NAND/NOR
§ Use NAND or NOR gates to implement the logic
§ Efficiently: use K-maps to find required minimal terms
25