DLD Lecture 5
DLD Lecture 5
▪ Examples:
• Y = A.B is read “Y is equal to A AND B.”
• z = x+y is read “z is equal to x OR y.”
• X=Ā is read “X is equal to NOT A.”
▪ Note: The statement:
1 + 1 = 2 (read “one plus one equals two”)
is not the same as
1 + 1 = 1 (read “1 or 1 equals 1”).
Operator Definitions
▪ Operations are defined on the values "0" and "1" for each
operator:
AND OR NOT
0·0=0 0+0=0 0=1
0·1=0 0+1=1 1=0
1·0=0 1+0=1
1·1=1 1+1=1
Truth Tables
AND OR NOT
X Y Z = X·Y X Y Z = X+Y X Z=X
0 0 0 0 0 0 0 1
0 1 0 0 1 1 1 0
1 0 0 1 0 1
1 1 1 1 1 1
Logic Function Implementation
▪ Light is on (L = 1) for
L(A, B, C, D) = ?
and off (L = 0), otherwise.
▪ Useful model for relay circuits and for gate circuits, the
foundation of current digital logic technology
Logic Function Implementation (Continued)
▪ Light is on (L = 1) for
L(A, B, C, D) = A B C' + A D
and off (L = 0), otherwise.
▪ Useful model for relay circuits and for gate circuits, the
foundation of current digital logic technology
Logic Gates
▪ In the earliest computers, switches were opened and closed
by magnetic fields produced by energizing coils in relays.
The switches in turn opened and closed the current paths.
▪ Later, vacuum tubes that open and close current paths
electronically replaced relays.
▪ Today, transistors are used as electronic switches that open
and close current paths.
Logic Gates (continued)
X .Y
•• •
F • X • •
X
G = X +Y
• • X •
X •
Y •
Y •
•