0

7. The parity of a binary number is defined as:

The parity of a binary number depends on the number of 1 bits in the number

parity is "even" if there are an even no of 1s in the number and "odd" otherwise:

e.g. parity of 0011001100110011 is even.

Draw the truth table for a logic function that takes a three bit binary number and produced an output that is 0 for even parity and 1 for odd parity.

8. Draw the logic diagram for a circuit that implements the function in question 7.

I drew the truth table

_________

0 0 0 | 0

0 0 1 | 1

0 1 0 | 1

0 1 1 | 0

1 0 0 | 1

1 0 1 | 0

1 1 0 | 0

1 1 1 | 1

Does my truth table correct?

How to draw the logic diagram for this?

Thanks in Advance