Beruflich Dokumente
Kultur Dokumente
Distributive law:
is distributive over + ?
+ is distributive over ?
We do not have both in ordinary algebra
Complement
The set B
Rules for two binary operations
The elements of B and rules should conform to our
axioms
y x y
y x + y
1
7
yz
x+(yz)
x + y
x + z
(x + y) (x + z)
Duality Principle
An important principle
every algebraic expression deducible from the axioms
of Boolean algebra remains valid if the operators and
identity elements are interchanged
Example:
x+x=x
x+x =
=
=
=
duality principle
x+x=x
(identity element)
(complement)
(+ over )
(complement)
?
10
Theorem a:
x+1=1
x+1 =
=
=
=
=1
11
Absorption Theorem
a. x + xy = x
b. ?
12
Involution Theorem:
(x) = x
x + x = 1 and x x = 0
Complement of x is x
Complement is unique
DeMorgans Theorem:
a. (x + y) = x y
b. From duality ?
13
x+y
(x+y) x y (x y)
x y
x + y
14
Operator Precedence
1.
2.
3.
4.
Parentheses
NOT
AND
OR
Example:
(x + y)
x y
x + x y
15
Consists of
Boolean Functions
Example:
F1(x, y, z) = x + y z
F2(x, y, z) = x y z + x y z + xy
x
F1
F2
16
x + y z
y
yz
Gate Implementation of F1 = x + y z
17
F2
Algebraic manipulation
= x y z + x y z + xy
F2
=?
18
Alternative Implementation of F2
F2 = x z + xy
x
y
z
F2
F2 = x y z + x y z + xy
x
y
z
F2
19
F0
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
20
21
TRANSFER
AND
XOR
OR
XNOR
NAND
NOR
22
Universal Gates
NAND and NOR gates are universal
We know any Boolean function can be written in terms
of three logic operations:
AND, OR, NOT
x
0
0
1
1
y (xy) x y
0
1
1 1
1
1
1 0
0
1
0 1
1
0 0 0
(x y )
23
NAND Gate
x
x
y
x
y
24
NOR Gate
x
x
y
x
y
25
A function:
F1 = x y + xy
x
26
Example 2/2
F2 = x y + xy
27
=?
(x(yz))
=?
28
29
(x y z)
(x + y + z)
30
(x + y + z)
3-input NOR gate
x
y
z
(xyz)
A
B
C
D
E
F=
Cascaded NAND gates
31
xyz
z
32
33
Complement of a Function
F is complement of F
We can obtain F, by interchanging of 0s and 1s in the
truth table
x
0
0
0
0
1
1
1
1
y
0
0
1
1
0
0
1
1
z
0
1
0
1
0
1
0
1
F
0
0
1
0
1
1
0
0
F
F=?
F = ?
35
= ABC
= xyz + xyz
F1
= (xyz + xyz)
=?
= (x + y + z)(x + y + z)
F2
= x(yz + yz)
F2
= (x(yz + yz))
=?
= x + (y + z) (y + z)
38
Example
xyz
000
001
010
011
100
101
110
111
mi
m0=xyz
m1=xyz
m2=xyz
m3=xyz
m4=xyz
m5=xyz
m6=xyz
m7=xyz
Mi
M0=x+y+z
M1=x+y+z
M2=x+y+z
M3=x+y+z
M4=x+y+z
M5=x+y+z
M6=x+y+z
M7=x+y+z
F
0
1
1
0
0
0
1
0
40
F1
F2
F1(x, y, z) =
F2(x, y, z) =
42
Important Properties
Any Boolean function can be expressed as a sum
of minterms
Any Boolean function can be expressed as a
product of maxterms
Example:
F = (0, 2, 3, 5, 6)
= xyz + xyz + xyz + xyz + xyz
How do we find the complement of F?
F = (x + y + z)(x + y + z)(x + y + z)(x + y + z)(x + y + z)
=
=
43
Canonical Form
If a Boolean function is expressed as a sum of
minterms or product of maxterms the function is
said to be in canonical form.
Example: F = x + yz canonical form?
No
But we can put it in canonical form.
F = x + yz = (7, 6, 5, 4, 1)
Alternative way:
Obtain the truth table first and then the canonical term.
44
= (4, 5, 0, 2)
45
Example:
F(x, y, z) = (1, 4, 5, 6, 7)
F(x, y, z) =
Now take the complement of F and make use of
DeMorgans theorem
=
=
(F )
F
= M0 M2 M3 = (0, 2, 3)
46
The rule:
Interchange symbols and , and
list those terms missing from the original form
Example: F = xy + xz
F = (1, 3, 6, 7) F = (?, ?, ?, ?)
47
Standard Forms
Fact:
Alternative representation:
Standard form
a term may contain any number of literals
Two types
1. the sum of products
2. the product of sums
Examples:
F1 = y + xy + xyz
F2 = x(y + z)(x + y + z)
48
49
Example:
Nonstandard Forms
F3 = AB(C+D) + C(D + E)
This hybrid form yields three-level implementation
A
B
C
D
D
E
F3
F3
50
51
Signal Designation - 1
x
y
digital
gate
52
Signal Designation - 2
x
y
positive logic
polarity
indicator
F
negative logic
53
Another Example
x
74LS00
54
Integrated Circuits
IC silicon semiconductor crystal (chip) that
contains gates.
gates are interconnected inside to implement a
Boolean function
Chip is mounted in a ceramic or plastic container
Inputs & outputs are connected to the external pins of
the IC.
Many external pins (14 to hundreds)
55
Levels of Integration
SSI (small-scale integration):
Up to 10 gates per chip
57
Power dissipation
power consumed by the gate that must be available
from the power supply
59
Power Dissipation
Difference in
voltage level !
60
logic-0
x
y
tPHL
logic-1
logic-0
tPLH
time
y
F
61
Computer-Aided Design - 1
CAD
Design process
design entry
database that contains the photomask used to
fabricate the IC
62
Computer-Aided Design - 2
Different physical realizations
Xilinx Tools
64
Schematic Editor
Editing programs for creating and modifying
schematic diagrams on a computer screen
schematic capturing or schematic entry
you can drag-and-drop digital components from a list in
an internal library (gates, decoders, multiplexers,
registers, etc.)
You can draw interconnect lines from one component to
another
65
Schematic Editor
66
A Schematic Design
67
HDL
Verilog, VHDL
resembles a programming language
designed to describe digital circuits so that we can
develop and test digital circuits
module comp(F, x, y, z, t);
input x, y, z, t;
output F;
68
69
70
71