Question

The Add/Sub circuit you studied in practice problem 10, week 3, is shown below. It adds...

The Add/Sub circuit you studied in practice problem 10, week 3, is shown below. It adds two 4‐bit numbers X and Y. Now, let’s assume that the user has two numbers X and Y that are both positive signed numbers, one of the following four scenarios might occur: 1. If the required is X + Y, then the user inputs X to the A input and Y to the B input and set the circuit to ADD (i.e. S=0). 2. If the required is X – Y, then the user inputs X to the A input and Y to the B input and set the circuit to SUB (i.e. S=1). 3. If the required is –X + Y, then the user inputs the 2’s complement of X to the A input and Y to the B input and set the circuit to ADD (i.e. S=0). 4. If the required is –X – Y, then the user inputs the 2’s complement of X to the A input and the 2’s complement of Y to the B input and set the circuit to ADD (i.e. S=0). Note the following two facts: 1. In the 3rd and 4th scenario, taking the 2’s complement is done by hand first (i.e. the user has to take the 2’s complement before feeding the number to the circuit). 2. In the third scenario, while the user could avoid taking the 2’s complement (by converting –X + Y to Y – X and thus applying the second scenario), taking the two’s complement is inevitable in the fourth scenario. Required In this problem we want you to remodel this Add/Sub circuit such that the user doesn’t have to take the 2’s complement at all neither in third nor in the fourth scenario. In other words, we want the machine to perform the following: Assuming X and Y are both positive signed numbers: 1. If the required is X + Y, then the user inputs X to the A input and Y to the B input and set the circuit to do the operation X+Y. 2. If the required is X – Y, then the user inputs X to the A input and Y to the B input and set the circuit to do the operation X – Y. 3. If the required is –X + Y, then the user inputs X to the A input and Y to the B input and set the circuit to do the operation –X + Y. 4. If the required is –X – Y, then the user inputs X to the A input and Y to the B input and set the circuit to do the operation –X – Y.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

0 XY ase ? 4 bit both positive signed numbers Given positive signed so first bit represents ( sign on positive Is hegative binary to d's compiment converter circuit lo o o of o-ooo 0+0+0+1+ H+I 0-07 +0+ i+io otoftitifitot! of tot of titoto Otorito-1 ottito totitol lotititit 1-otot x=0% TEXFxxxxxx x23 00 01 00 OM , LB D L >x, xz' = x;+x2 +Xo Xo, dont' cases because inputs are positive simed only

* multiple times I used in verstery to make 3 as to do as to, n, as 7 no as to only one enough too each I Do 2- 2 4 bit adder circuit T3 - DOV Ya-Do => 1 Y3 to

Add a comment
Know the answer?
Add Answer to:
The Add/Sub circuit you studied in practice problem 10, week 3, is shown below. It adds...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Required In this problem we want you to remodel this Add/Sub circuit such that the user...

    Required In this problem we want you to remodel this Add/Sub circuit such that the user doesn’t have to take the 2’s complement at all neither in third nor in the fourth scenario. In other words, we want the machine to perform the following: Assuming X and Y are both positive signed numbers: 1. If the required is X + Y, then the user inputs X to the A input and Y to the B input and set the circuit...

  • Please Can someone paraphrase this ? : 1.4 Binary Subtractor The subtraction of unsigned binary numbers...

    Please Can someone paraphrase this ? : 1.4 Binary Subtractor The subtraction of unsigned binary numbers can be done most conveniently by means of complement. Subtraction A–B can be done by tacking the 2’s complement of B and adding it to A. The 2’s complement can be obtained by taking the 1’s complement and adding one to the least significant pair of bits. The 1’s complement can be implemented with the inverters and a one can be added to the...

  • 16. Design a logic circuit which will add/subtract/complement 2-digit BCD numbers. You are given ...

    16. Design a logic circuit which will add/subtract/complement 2-digit BCD numbers. You are given 1-digit BCD adders, imultiplexers, 9's complement units. There will be two control signal ADD and C: When ADD-1, C-0 the circuit will perform addition, when ADD-0, C 0 the circuit will perform subtraction, when C Complements of inputs are not available. You can use logic levels 1 and 0. Use a minimum nümber of additional gätes. the circuit will find the 9's complement of the input...

  • PROBLEM STATEMENT The mini-calculator will use a small ALU to perform arithmetic operations on two 4-bit values which are set using switches. The ALU operations described below are implemented with a...

    PROBLEM STATEMENT The mini-calculator will use a small ALU to perform arithmetic operations on two 4-bit values which are set using switches. The ALU operations described below are implemented with an Adder/Subtractor component. A pushbutton input allows the current arithmetic result to be saved. An upgraded mini-calculator allows the saved value to be used in place of B as one of the operands. The small ALU that you will design will use the 4-bit adder myadder4 to do several possible...

  • 3. Design a combinational circuit with inputs a, b, c, d and outputs w, z, y, z, where the input ...

    1- Please answer all the question 2- with clear handwriting Thank you, 3. Design a combinational circuit with inputs a, b, c, d and outputs w, z, y, z, where the input and output both represent a signed numbers (2s complement). The output is 7 less than the input, if the input is positive, or zero. If the input is negative, the output is 3 greater than the input. 7. Use the Boolean functions developed in problem #3 to create...

  • Q3. The adder below adds two 16-bit numbers X and Y (i.e. S-X+Y), where X-Xi5Xi4...XiXo and...

    Q3. The adder below adds two 16-bit numbers X and Y (i.e. S-X+Y), where X-Xi5Xi4...XiXo and Y-Y15Y14...YiYo. Assume we are using two's complement representation for our signed numbers, in which flipping all the bits of a number Y and adding one to it will give-Y. Modify the circuit below by including a signal P that picks whether the circuit will add them as X+Y, or subtract them as X-Y = X+(-Y) Suppose when P=0 the circuit will add and when...

  • Please solve the problems from 2_5 Digital system Problem 2 Design a combinational circuit with inputs...

    Please solve the problems from 2_5 Digital system Problem 2 Design a combinational circuit with inputs a, b, c, d and outputs w, x, y, z. Assume that the inputs a, b, c d represent a 4-bit signed number (2s complement). The output is also a signed number in 2s complement which is 5 greater than the input if the input is less than 2, and is 2 less than the input if the input is greater than or equal...

  • Introduction: This experiment studies the design of an 8-bit adder/subtractor circuit using VHDL capture. The experiment...

    Introduction: This experiment studies the design of an 8-bit adder/subtractor circuit using VHDL capture. The experiment investigates the implementation of addition and subtraction operations with circuits. This lab uses the virtual simulation environment to validate the design practically in the FPGA board. Equipment: • This experiment requires Quartus Prime and the Intel's DE2-115 FPGA board. • All students should have the Intel QP and ModelSim-Intel-Starter-Edition softwares installed in personal computers. • VPN connection to UNB Network and remote desktop software...

  • In this problem, you will design a 4-bit 2's complement sub tractor, implement it in Logic...

    In this problem, you will design a 4-bit 2's complement sub tractor, implement it in Logic works, and test it. The 4-bit sub tractor works as follows: given two numbers X and Y in 2's complement binary representation on 4 bits, it outputs a 4-bit value representing X - Y in 2's complement. To obtain full marks, the following requirements must be met: You are only allowed to use basic gates, including NOT, AND, OR, NAND, NOR, XOR, XNOR. (You...

  • Please do problem 2 and 3 Complete the following homework problems. Show all work (making answers...

    Please do problem 2 and 3 Complete the following homework problems. Show all work (making answers for clarity sure it is legible) and circle all Problem 1 w3 X A w4 w1 C D Y w2 Determine Boolean functions for intermediate outputs wl,w2,w3, and w4 as well as the output signals X and Y. b) a) Construct a truth table showing the intermediate outputs wl,w2,w3, and w4 as well as the output signals X and Y Use K-maps to find...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT