LOGIC GATES
LOGIC GATES
1
Chapter Goals
Identify the basic gates and describe the behavior of each
Describe how gates are implemented using transistors
Combine basic gates into circuits
Describe the behavior of a gate or circuit using Boolean expressions,
truth tables, and logic diagrams
2
Computers and Electricity
Gate
A device that performs a basic operation on
electrical signals
Circuits
Gates combined to perform more
complicated tasks
3
Computers and Electricity
How do we describe the behavior of gates and circuits?
Boolean expressions
Uses Boolean algebra, a mathematical notation for expressing two-
valued logic
Logic diagrams
A graphical representation of a circuit; each gate has its
own symbol
Truth tables
A table showing all possible input value and the associated
output values
4
Gates
Six types of gates
◦ NOT
◦ AND
◦ OR
◦ XOR
◦ NAND
◦ NOR
Typically, logic diagrams are black and white with gates
distinguished only by their shape
We use color for emphasis (and fun)
5
Gates
For the purpose of this course we will focus on the
following gates:
◦ NOT
◦ AND
◦ OR
The others are combination of the above.
6
NOT Gate
7
NOT Gate
A NOT gate accepts one input signal (0 or 1) and returns
the opposite signal as output
8
AND Gate
9
AND Gate
An AND gate accepts two input signals
If both are 1, the output is 1; otherwise,
the output is 0
10
OR Gate
An OR gate accepts two input signals
If both are 0, the output is 0; otherwise,
the output is 1
11
OR Gate
12
Review of Gate Processing
A NOT gate inverts its single input
An AND gate produces 1 if both input values are 1
An OR gate produces 0 if both input values are 0
13
Gates with More Inputs
Gates can be designed to accept three or more input values
A three-input AND gate, for example, produces an output of 1 only
if all input values are 1
15
Circuits
Combinational circuit
The input values explicitly determine the output
Sequential circuit
The output is a function of the input values and the
existing state of the circuit
We describe the circuit operations using
Boolean expressions
Logic diagrams
Truth tables
Are you surprised?
16
Combinational Circuits
Gates are combined into circuits by using the
output of one gate as the input for another
17
Combinational Circuits
18
Combinational Circuits
Consider the following Boolean expression A(B + C)
20
Properties of Boolean Algebra
21
THANK YOU
22