Draw the truth table for logic function M for the three inputs A, B, C. M = f(A,B,C). The output is 0 if majority of inputs are 0 and 1 if majority of inputs are 1.
Advertisements
Question
Draw the truth table for logic function M for the three inputs A, B, C. M = f(A,B,C). The output is 0 if majority of inputs are 0 and 1 if majority of inputs are 1.
Numerical
Advertisements
Solution
The output M is 1 when two or more inputs are 1, and 0 when two or more inputs are 0.
|
A |
B |
C |
M = f(A,B,C) |
|---|---|---|---|
|
0 |
0 |
0 |
0 |
|
0 |
0 |
1 |
0 |
|
0 |
1 |
0 |
0 |
|
0 |
1 |
1 |
1 |
|
1 |
0 |
0 |
0 |
|
1 |
0 |
1 |
1 |
|
1 |
1 |
0 |
1 |
|
1 |
1 |
1 |
1 |
shaalaa.com
Is there an error in this question or solution?
