Question: 2.3 Build a 4-bit adder/subtractor (30 points): To do so you must fill in the starter sub-circuit (Add Sub_4Bits) with proper circuitry as detailed below

 2.3 Build a 4-bit adder/subtractor (30 points): To do so you

2.3 Build a 4-bit adder/subtractor (30 points): To do so you must fill in the starter sub-circuit ("Add Sub_4Bits") with proper circuitry as detailed below You already have a 1-bit adder in the sub-circuit "Add 1Bit" of the project template file. Now, implement a 4-bit adder-subtractor in"Add Sub_4Bits" by using four instances of Add 1Bit" and complementary circuitry. (20 points) There is a control input signal, "Add_Sub". Whenever it is asserted to '1', this circuit ("Add Sub_4Bits") should perform 4-bit addition; otherwise when (Add_Sub- 0) the circuit should perform 4-bit subtraction (A-B) by using 2's complement methodology. For both cascs your circuit should show the correct result on the output "R". Note that inputs (A, B) as well as the output R are represented as signed (2's complement) 4-bit numbers Your implementation should be able to detect an overflow, if one occurs, and also to detect if the result of an operation has a value of zero (the template file provides two appropriate outputs)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!