Digital Logic: From Transistors To Gates: Textbook Chapter 3
Digital Logic: From Transistors To Gates: Textbook Chapter 3
Textbook Chapter 3
The Transistor
01-2
01-3
Moores Law
The number of active components per chip will double every 18 months.
01-4
01-5
Metal-Oxide-Semiconductor transistor
01-6
01-7
What is a transistor?
01-8
Gate = 1
Gate = 0
01-9
Gate = 1
Terminal #1 must be connected to +2.9V in this example.
Gate = 0
01-10
Switch closed:
Short
Switch-based circuits can easily represent two states: on/off, open/closed, voltage/no voltage.
CMPE12 Summer 2009
Use the switch behavior of MOS transistors to implement logical functions: AND, OR, NOT Digital symbols: We assign a range of analog voltages to each digital (logic) symbol Assignment of voltage ranges depends on electrical properties of transistors being used
01-12
CMOS circuit
CMOS is Complementary Metal Oxide Semiconductor Uses both n-type and p-type MOS transistors p-type (pMOS) Attached to + voltage Pulls output voltage UP when input is zero n-type (nMOS) Attached to GND Pulls output voltage DOWN when input is one
01-13
In
0V 2.9 V
Out
2.9 V 0V
In
0 1
Out
1 0
01-14
Truth Table
The most basic representation of a logic function Lists the output for all possible input combinations How many rows of the truth table needed?
Inputs AB
Outputs XY
2#inputs
01-15
Input
Output
Y = A
01-16
The result of an AND operation is 1 if and only if all inputs are 1 Depict AND by the multiplication symbol AB Or by lumping the signals together AB We dont really build these gates
Inputs
Output
A B
Y=AB
01-17
A 0 0 1 1
B 0 1 0 1
C 1 1 1 0
01-18
AND gate
A 0 0 1 1 B 0 1 0 1 C 0 0 0 1
01-19
The result of an OR operation is 1 if and only if any inputs are 1 Depict OR by the addition symbol A+B
Inputs
Output
A B
Y=A+B
01-20
A 0 0 1 1
B 0 1 0 1
C 1 0 0 0
01-21
OR gate
A 0 0 1 1 B 0 1 0 1 C 0 1 1 1
01-22
01-23
01-27
Method 1: sum of products Start with ones Build pull-up branch first Method 2: sum of products Start with zeros Build pull-down branch first Use inverters to complement inputs and output Which method? Depends on the truth table More ones: method 1 More zeros: method 2
01-28
A 0 0 0 0 1 1 1 1
B
0 0 1 1 0 0 1 1
Method 1: Sum of products for Y Cover the ones Build pull-up branch first using inverted inputs Derive pull-down branch as the dual of pull-up branch VDD Y=
C 0 1 0 1 0 1 0 1 Y 0 0 1 1 1 0 1 0
VSS
01-29
A 0 0 0 0 1 1 1 1
B
0 0 1 1 0 0 1 1
Method 2: Sum of products for Y Cover the zeros Build pull-down branch first, using asserted inputs Derive pull-up branch as a dual of the pull-down branch VDD Y=
C 0 1 0 1 0 1 0 1 Y 0 0 1 1 1 0 1 0
VSS
01-30
Recommended exercises
Combinational circuits Ex 3.5, 3.6, 3.7, 3.8, 3.9 Ex 3.11, 3.12, 3.18 Ex 3.20, 3.22, 3.23, 3.24 with TA/Tut Ex 3.30, 3.31, 3.35 Ex 3.44
01-31