Verlogic3 Chapter2
Verlogic3 Chapter2
Verlogic3 Chapter2
S
Power
supply x Light
x1
Power
supply S Light
x2
X1
S
Power
supply S X3
Light
X2
Power
supply x S Light
x
1
x
2
x
1 x +x x + x + …+ x
x 1 2 1 2 n
2
x
n
(b) OR gates
x x
x1
f
x2
f
x3
x1
x1
x3
f
x2
xn
x1
x2
x1
x1 + x2 x 1 + x2 + … + xn
x2
xn
(a) x1 x2 = x1 + x2
x1
x1 x1
x2 x2
x2
(b) x1 + x2 = x1 x2
x1
x2
x3
x4
x5
x3 x3
x4 x4
x5 x5
x1
x2
x3
x4
x5
x2 f
x3
x1
x2 f
x3
f
x2
x3
x1
f
x2
x3
endmodule
endmodule
01 m1 m5 m13 m9
x4
11 m3 m7 m15 m11
x3
10 m2 m6 m14 m10
x2
01 1 1 01 1 1
11 1 1 11 1 1
10 1 1 10 1 1
x5 = 0 x5 = 1
f 1 = x1 x3 + x1 x3 x4 + x 1 x2 x3 x 5
1 1 1 1 0
x1 x2 x3
01 1 1 x2 x3 x4
11 1 1 1
10 1 1 1 1 x3 x4
x1 x3 x2 x 3
10 1 x 1 x2 x 3
x1 x 2 x4
00 1 1 x 1 x3 x4
01 1 1 x 2 x3 x 4
11 1 1 x 1 x3 x 4
10 1 1
x 2 x3 x 4
x1 x2 x4 x1 x 2 x4
x1 x 2 x3 x 1 x2 x3
1 1 1 1 0
( x1 + x2 )
00 0 0 0 0 (x + x )
3 4
01 0 1 1 0
(x + x )
2 3
11 1 1 0 1
10 1 1 1 1
(x + x + x + x )
1 2 3 4
x3 x3
x1 x2 x1 x2
x3 x3
x1 x2 x1 x2
x4 x4
(a) (b)
x1 x2 x1 x2
m1
x3 m2 x
x2 1
0
x3 1
0
f 1
0
Time
x2 1
0
x3 1
0
f 1
0
Time