Question: Add Sub Extra Credit Problem Preliminaries The Add / Sub circuit you studied in practice problem 1 0 , week 3 , is shown below.
Add Sub Extra Credit Problem
Preliminaries
The AddSub circuit you studied in practice problem week is shown below. It adds two bit numbers and Now, let's assume that the user has two numbers and that are both positive signed numbers, one of the following four scenarios might occur:
If the required is then the user inputs to the A input and to the input and set the circuit to ADD ie
If the required is then the user inputs to the A input and to the input and set the circuit to SUB ie
If the required is then the user inputs the s complement of to the A input and to the input and set the circuit to ADD ie
If the required is then the user inputs the s complement of to the A input and the s complement of to the input and set the circuit to ADD ie
Note the following two facts:
In the and scenario, taking the s complement is done by hand first ie the user has to take the s complement before feeding the number to the circuit
In the third scenario, while the user could avoid taking the s complement by converting to and thus applying the second scenario taking the two's complement is inevitable in the fourth scenario.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
