Question

I have an 4-bit unsigned Binary adder that performs F=A+B with carry in and carry out,...

I have an 4-bit unsigned Binary adder that performs F=A+B with carry in and carry out, I have to draw the smallest circuit using the adder and whatever other combinational logic gates I need to perform the 4-bit function below on 2's complement numbers A and B

F=A+B if ADD=1,

F=A-B if ADD=0

Homework Answers

Answer #1

The circuit is shown below

Lets see what happend when ADD = 1

When ADD = 1, the output of the NOT gate will be 0. So the carry in bit Cin will be zero. Also the one input to each EX - OR gate will be 0. So the number B will go as it is to the adder and the numbers A and B will get added. We will get the output A + B

Lets see what happend when ADD = 0

When ADD = 0, the output of the NOT gate will be 1. So the carry in bit Cin will be 1.  Also the one input to each EX - OR gate will be 1. So the number B will go as its one's complement. Now the Cin bit is also 1. So effectively we get the two's complement of B as the second number. Now A and the two's complement of B will be added. This is nothing but A - B . We will get the output A - B

Know the answer?
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
Similar Questions
Design a 4-bit adder-subtractor circuit using the 4-bit binary Full adders (74LS83) and any necessary additional...
Design a 4-bit adder-subtractor circuit using the 4-bit binary Full adders (74LS83) and any necessary additional logic gates. The circuit has a mode input bit, M, that controls its operation. Specifically, when M=0, the circuit becomes a 4-bit adder, and when M=1, the circuit becomes a 4-bit subtractor that performs the operation A plus the 2’s complement of B.Where A and B are two 4-bits binary numbers. That is, * When M=0, we perform A+B, and we assume that both...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210,...
Adder Start out by picking 2 positive six bit binary numbers that are less than 3210, written in 2's complement notation. The eventual goal is to add these two numbers. 1) Look at the LSB bit of the numbers, and using logic gates (NANDs, NORs, etc.) design a circuit that correctly gives the right output for any possible combination of bits in the LSB place. 2) Now look at the next column to the left (next to LSB). In this...
Use contraction beginning with a 4-bit adder-subtractor with carry in, to design a 4-bit circuit without...
Use contraction beginning with a 4-bit adder-subtractor with carry in, to design a 4-bit circuit without carry out that increments its input by 0010 for input S=0 and decrements its input by 0010 for input S=1. Perform the design by designing the distinct 1-bit full adder cells needed and indicating the type of cell used in each of the four bit positions.
4) Convert the following binary values from 4 bit numbers to 7 bit values a) 2s...
4) Convert the following binary values from 4 bit numbers to 7 bit values a) 2s complement value: 0101 b) 2s complement value: 1010 c) Unsigned binary value: 0101 d) Unsigned binary value: 1010 e) Sign Magnititude value: 0101 f) Sign Magnititude value: 1010
The software I am using Is Logisim. Design and build a circuit to add 2 2-bit...
The software I am using Is Logisim. Design and build a circuit to add 2 2-bit binary numbers. This means that you will have 4 input lines and 3 output lines. The three output lines are 2 bits for the sum and a carry out line. Use logisim to construct your circuit. Upload the .circ file to blackboard
Design a module that can perform a binary-coded decimal (BCD) addition. You have two 4-bit BCD...
Design a module that can perform a binary-coded decimal (BCD) addition. You have two 4-bit BCD (decimal digits 0 to 9) inputs “a” and “b” and an 8-bit output “x” which represents a two digit BCD number. X [7:4] represents the upper BCD digits X [3:0] represents the lower BCD digits In the Verilog file, please code a BCD adder. It should follow the following format. module bcd_adder( a,b,x ); input wire [3:0] a; input wire [3:0] b; output reg...
#9) You are to implement the following function F(A,B,C,D,E,F) which outputs a 1 whenever the binary...
#9) You are to implement the following function F(A,B,C,D,E,F) which outputs a 1 whenever the binary number represented by ABCDE is ODD and 0 otherwise. A is the MSB and E is the LSB. Draw the function F(A,B,C,D,E,F) and show the work that led you to that answer. Since I am not so sadistic as to have you draw the truth table of a 6 variable function and draw the K-map of such a function, you should realize, as a...
Can i get the answer to these questions in detail explaining how you go to the...
Can i get the answer to these questions in detail explaining how you go to the solution 1.Convert to/from Hex (0) 2.Octal Binary Unsigned/ 2’s complement 3.Understand how to shift and rotate. 4.Understand the relationship between shifting and multiplication/division 5.Be able to recognize and use the following gates: AND OR NOT NAND NOR XOR 6.Understand how a half adder works Given a logical statement ((A OR B) AND NOT(C OR A)) show the gates. 7.What is the difference between an...
Hardware security HW-1 Combinational Logic Q.1 a) Complete the truth table for the 4-inputs, 16 cells...
Hardware security HW-1 Combinational Logic Q.1 a) Complete the truth table for the 4-inputs, 16 cells LUT ( Look-up Table) and map the follwing function on the LUT. Asume ‘a’ to the MSB ( Most significant bit) and lable all inputs and outputs of the LUT. F= a+bd LUT A (MSB) B C D (LSB) F (output)     Draw the circuit level for the above function. Q.2 Assume that a simple diagram of a switch used in SRAM based FPGA...
What tools could AA leaders have used to increase their awareness of internal and external issues?...
What tools could AA leaders have used to increase their awareness of internal and external issues? ???ALASKA AIRLINES: NAVIGATING CHANGE In the autumn of 2007, Alaska Airlines executives adjourned at the end of a long and stressful day in the midst of a multi-day strategic planning session. Most headed outside to relax, unwind and enjoy a bonfire on the shore of Semiahmoo Spit, outside the meeting venue in Blaine, a seaport town in northwest Washington state. Meanwhile, several members of...