Professional Documents
Culture Documents
PCs
Laptop computer
smartcards
Mainframe/supercomputer
Router
CRT projector
Router
printer
Router
Television
Scanner
Data
PDA
Telephone
Fax
The Digital World
• Digital Systems, especially computers, are driving the world
economy.
– The Internet is changing the way we communicate, shop,
learn, invest, and entertain ourselves.
• This is an amazingly fast moving business!!
– Processors double in speed every 18 months
– The Internet doubles in size every year
• Computers are the most amazing and complex things ever built
by mankind
– The Intel Pentium 4 has 55 million transistors
– It runs at 3 billion cycles per second
Analog vs. Digital
V V
+5 +5
1 0 1
Time Time
–5 –5
Analog systems:
• Limited precision, errors accumulate, drift
• Interface circuits (i.e., sensors & actuators) often
analog
Digital systems:
• More accurate and reliable
• Readily available as self-contained, easy to cascade
building blocks
• Computers use digital circuits internally
Binary Digital Systems
• Just two discrete values:
yes/on/5 volts/current flowing/magnetized North/true/"1"
no/off/0 volts/no current flowing/magnetized South/false/"0"
0 1
X • Y X Y X +Y Y X
XOR XNOR
Gates Gates
X X
Z Z
Y Y
Logic Functions: XOR, XNOR
XOR: X or Y true but not both ("inequality", "difference")
XNOR: X and Y are the same ("equality", "coincidence")
Description Description
Z = 1 if X has a different Z = 1 if X has the same
value than Y value as Y
Gates Gates
X X
Z Z
Y Y
Example T1
Z = A' • B' • (C + D) = (A' • (B' • (C + D)))
T2
A
A Z
B Z B
C T1
C
T2
D D
Duality:
Duality: For
For any
any equation
equation that
that isis true,
true, its
its dual
dual isis also
also true!
true!
The
The dual
dual of
of aa Boolean
Boolean equation
equation isis derived
derived by by replacing
replacing AND AND
operations
operations byby ORs,
ORs, OROR operations
operations by by ANDs,
ANDs, constant
constant 0s 0s by
by 1s,
1s,
and
and 1s
1s by
by 0s
0s (literals
(literals are
are left
left unchanged).
unchanged).
Duality:
Duality: For
For any
any equation
equation that
that isis true,
true, its
its dual
dual isis also
also true!
true!
The
The dual
dual of
of aa Boolean
Boolean equation
equation isis derived
derived by by replacing
replacing AND AND
operations
operations byby ORs,
ORs, OROR operations
operations by by ANDs,
ANDs, constant
constant 0s 0s by
by 1s,
1s,
and
and 1s
1s by
by 0s
0s (literals
(literals are
are left
left unchanged).
unchanged).
Commutative Law
6. X + Y = Y + X 6D. X • Y = Y • X
Associative Law
7. (X + Y) + Z = X + (Y + Z) 7D. (X • Y) • Z = X • (Y • Z)
=X+Y+Z =X•Y•Z
Distributive Law
8. X • (Y+ Z) = (X • Y) + (X •Z) 8D. X+(Y• Z) = (X + Y) • (X + Z)
Duality:
Duality: For
For any
any equation
equation that
that isis true,
true, its
its dual
dual isis also
also true!
true!
The
The dual
dual of
of aa Boolean
Boolean equation
equation isis derived
derived by by replacing
replacing AND AND
operations
operations byby ORs,
ORs, OROR operations
operations by by ANDs,
ANDs, constant
constant 0s 0s by
by 1s,
1s,
and
and 1s
1s by
by 0s
0s (literals
(literals are
are left
left unchanged).
unchanged).
Simplification Theorems
9. X • Y + X • Y' = X 9D. (X + Y) • (X + Y') = X
10. X + (X • Y) = X 10D. X • (X + Y) = X
11. (X + Y') • Y = X • Y 11D. (X • Y') + Y = X + Y
DeMorgan's Law
12. (X + Y + Z + ...)' = X' • Y' • Z' • ...
12D.(X • Y • Z • ...) ' = X' + Y' + Z' + ...
Duality:
Duality: For
For any
any equation
equation that
that isis true,
true, its
its dual
dual isis also
also true!
true!
The
The dual
dual of
of aa Boolean
Boolean equation
equation isis derived
derived by by replacing
replacing AND AND
operations
operations byby ORs,
ORs, OROR operations
operations by by ANDs,
ANDs, constant
constant 0s 0s by
by 1s,
1s,
and
and 1s
1s by
by 0s
0s (literals
(literals are
are left
left unchanged).
unchanged).
Where is YZ term ?
Consensus Theorem
17. (X • Y) + (Y • Z) + (X' • Z) = X • Y + X' • Z
17D.(X + Y) • (Y + Z) • (X' + Z) = (X + Y) • (X' + Z)
DeMorgan's Law Example
Pushing
Pushingbubbles
bubbles
around
around
NAND
has 2
forms
Exercises for simplification
• Circuit:
Graphical Application of DeMorgan
Different circuit, same function—
Eliminating/Introducing pair of bubbles
Another Example
AND-OR NAND-NAND
Ad hoc