Lecture 2
Lecture 2
S
Battery x L Light
S
Power
supply x L
x
1 L(x1, x2) = x1 + x2
Power
L Light L = 1 if x1 = 1 or x2 = 1
supply S
L = 0 otherwise
x
2
(b) The logical OR function (parallel connection)
x1 S
Power
supply S x3 L Light
x2
Power
supply x S L
L(x) = x
L = 1 if x = 0
L = 0 if x = 1
xn
x1
x2
x1
x1 + x2 x1 + x2 + + xn
x2
xn
(b) OR gates
x x
x x f (x , x )
1 2 1 2
0 0 1
0 1 1
1 0 0
1 1 1
x 1
2 0
1
A
0
1
B
0
1
f
0 Time
(c) Timing diagram
0011 1100
x
1
1101
0101 g
x
2
x x x y x y
x y
x y
z
z z
x y x y
z z
x y x y
z z
z
x y x y
x y
z z
x y y z x y
z
x y
x y
x z
z
z
x z x y
x y + x z + y z
x y + x z
Figure 2.14 Verification example
Notation
• x = x’ = !x = NOT x
• f(x1,x2) = x1 + x2 = (x1 + x2)’ = !(x1 + x2)
= NOT(x1 + x2)
• x 1 x2 = x1 x 2 = x 1 x 2
• x 1 + x 2 = x1 x2
Precedence of Operations
• In absence of parentheses, operations are
performed in this order: NOT, AND, OR.
x1 x2 + x1’ x2’ = (x1 x2) + ((x1’) (x2’))
Figure 2.15 A function to be synthesized
x1
x2
x1
f
x2
f
x3
x1
x2
x
1
x
2
x
3
s
s f (s, x1, x2)
x1 0 0 x1
f
x2 1 1 x2
Figure 2.25
DESIGN ENTRY
Simple synthesis
Translation
(see section 2.8.2)
Merge
Functional simulation
No
Design correct?
Yes
x3
x2
x4