6.1 DIGITAL BUILDING BLOCKS 275A
AAB
00
01
10
11F
0
1
1
1FOffOff
OnOnBF = A + B
F = 1 (light is on) if either A or B
(or both) is equal to 1 (switch on)B
Input
(a) (b) (c)
OutputInputs Output
+
−Figure 6.1.1Two-input OR gate.(a)Symbol or physical representation.(b)Truth table.(c)Illustration of
OR operation.
AAAB
00
01
10
11F
0
0
0
1FOff (0) Off (0)On (1) On (1)BF = A ⋅ B
B (also F = AB)
Input
(a) (b) (c)OutputInputs Output +
−F = 0 (light is off)
F = 1 (light is on) if and
only if A = B = 1Figure 6.1.2Two-input AND gate.(a)Symbol or physical representation.(b)Truth table.(c)Illustration
of AND operation.
AA
0
1F
1
Input F = A^0
(a) (b)OutputInput Output Figure 6.1.3NOT gate (complement).
(a)Symbol or physical representation.
(b)Truth table.AAB10
10
11
11F1
1
1
000
00
01
01C0
1
0
10
1
0
11
1
1
1F = A ⋅ B ⋅ C
C
(a) (b)
Inputs OutputBFigure 6.1.4NAND gate.
(a)Logic symbol.(b)Truth table.