How to draw a circuit diagram to check a 4 bits number is odd or even

2k views Asked by At

Like the title, anyone know how to draw a circuit diagram to check a 4 bits number odd or even ??

1

There are 1 answers

4
Paul R On

You don't really need a circuit for this - bit 0 of the input determines whether the number is odd or even, so you can ignore bits 1 - 3 and just use bit 0 as an odd/even output (it will be 1 for odd, 0 for even). So the circuit, such as it is, would look like this:

INPUT                                        OUTPUT

bit 3 o------------- N/C

bit 2 o------------- N/C

bit 1 o------------- N/C

bit 0 o------------------------------------o odd/even