Question: 5. Design a digital circuit that takes two 4-bit numbers A and B as input and generates output Z as follows: (20 points) If

5. Design a digital circuit that takes two 4-bit numbers A and B as input and generates output Z as follows:

5. Design a digital circuit that takes two 4-bit numbers A and B as input and generates output Z as follows: (20 points) If A and B are odd numbers then Z-A-B. If A and B are even numbers then Z-B-A. If A is an even number and B is an odd number then Z=A+B. If A is an odd number and B is an even number then Z--A-B-1 Assume that you have access to as many as you need of AND, OR, INV, XOR gates and a single 4-bit FULL-ADDER. (Hint: Example of an even binary number is 1110 and an odd binary number is 1011) (Hint: How many control inputs do you need? And how would you implement them?)

Step by Step Solution

3.41 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To design a digital circuit based on the given rules we will need to use logic gates and potentially multiplexers to create the required outputs based on the conditions specified for the numbers A and ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!