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
Problem 1. a) Carry generate and Carry propagate are defined as Gi= Ai Bi, Pi =...
Problem 1. a) Carry generate and Carry propagate are defined as Gi= Ai Bi, Pi = Ai ⊕Bi, respectively (i = 0, 1). Show the algebraic expressions for SUM (S1, S0) and CARRY-OUT (C2, C1) functions of a 2-bit adder in terms of Gi, Pi, Ci. A and B are 2-bit unsigned integers. Ci are carries.   b) Show the schematics for the RIPPLE-CARRY implementation of C2 of the carry generator with inputs G0, G1, P0, P1 and C0 for the...
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...
Use VHDL to design a 4-bit ALU (Arithmetic logic Unit) with the 8 instructions: ADD, REVERSE,...
Use VHDL to design a 4-bit ALU (Arithmetic logic Unit) with the 8 instructions: ADD, REVERSE, MUL, INC, XNOR, NOT, RROTATION, LROTATION. 1-Assume codes for instructions are: 000=ADD, 001=REVERSE, 010=MUL, 011=INC, 100=XNOR, 101=NOT, 110=RROTATION, and 111=LROTATION. 2-Assume input numbers are unsigned. 3-For instructions REVERSE, NOT, RROTATION, and LROTATION use number A3A2A1A0. 4-For addition result will be in C3C2C1C0 and carry out CO. 5- For multiplication use repeated addition such as A+A+A+... ( B times) and outputs are in D3D2D1D0, C3C2C1C0....
#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...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT