Design a circuit which takes a 3-bit unsigned integer, n, as input. If n is ODD, multiply it by 2 and subtract 1 [F(odd n)=2n-1]. If n is EVEN, divide it by 2 and add 1 [F(even n)=n/2+1]. Zero (n=0) is assumed to be even.
- Show the truth table for the circuit.
- Find a simplified expression for each output.
- Simplify Boolean algebra or K-maps
- Draw the final logic diagram