Professional Documents
Culture Documents
AND
OR
NOT
Truth Table
Logic Gates
x1 x2
x1 x2 x1 x2 x1 x2 xn xn (a) AND gates x1 x2 x1 + x2 xn
x1 x2
x1 + x2 + + xn
(b) OR gates
x (c) NOT gate x
NAND
NOR
F = not (A or B)
Compound logic function
Truth Tables
Exercise: Derive the Truth Table for the NAND and NOR gates.
Logic Gates
x1 x2 x1 x2 x1 x2 xn x1 x2 xn
x1 x1 x2 x2 x1 + x2 xn x1 + x2 + + xn
Exclusive-OR
F = (A.B') + (A'.B)
Output = 1 iff one of the inputs is 1 (but not both). Inclusive-OR: F = A + B F = (A.B) + (A'.B') Output = 1 iff both input are 0 or both inputs are 1. Also known as the Equivalence function.
ECE 331 - Digital System Design 9
Exclusive-NOR
Truth Tables
Exercise: Derive the Truth Table for the XOR and XNOR gates.
10
F = A xor B
F = A xnor B
XNOR gate
11
Truth Tables
12
Truth Tables
Used to describe the functional behavior of a Boolean expression and/or Logic circuit. Each row in the truth table represents a unique combination of the input variables.
The output of the logic function is defined for each row. Each row is assigned a numerical value, with the rows listed in ascending order. The order of the input variables defined in the logic function is important.
ECE 331 - Digital System Design 13
14
15
16
74xx08
74xx32 74xx04
AND gate
OR gate NOT gate
74xx00
74xx02 74xx86
NAND gate
NOR gate XOR gate
Pin-out
Electrical Characteristics Timing Characteristics
Package Description(s)
This information is necessary when building logic circuits from discrete components.
Logic Families
TTL
Schottky (S)
Low-Power Schottky (LS) Advanced Schottky (AS)
CMOS
20
21
22
Example:
Derive the Boolean expression and draw the circuit diagram for the following truth table:
23
Example
F = x1.x2 + x1.x2 + x1.x2
x1 x2
24
Example:
Derive the Boolean expression and draw the circuit diagram for the following truth table:
25
Wiring Diagrams
26
VDD
Gnd
28
29
Example: Draw the circuit diagram and the wiring diagram for the following Boolean expression: F = x2.x3 + x1.x2
30
Example
VDD
7404
7408
7432
x1 x2 x3
f
ECE 331 - Digital System Design 31