Question

Design a 2-bit alu that performs the following four operations: (However, the internal circuit of the...

Design a 2-bit alu that performs the following four operations: (However, the internal circuit of the full adder may be omitted)

s0 s1     operation           comment

0 0          clear                    F=00

0   1         A plus B                F=A+B

1   0        A minus B              F=A-B

1   1     A exclusive-or B    F=A exclusive-or B

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


->as shown in figure that if s0=0 and s1=0 then simply zero will be F

->if s0=0 and s1=1 then we have to perform A+B so that we have two Full Adder(FA) which will perform A+B and output of both FA are f0 and f1 and it is our F.

->if s0=1 and s1=0 then we have to perform A-B so that we have two Full Adder(FA) which will perform A-B and output of both FA are f0 and f1 and it is our F.

->if s0=1 and s1=1 then we have to perform A-ex-OR-B so that we have two Full Adder(FA) which will perform A-ex-OR-B and output of both FA are f0 and f1 and it is our F.

Truth table

//if you get your solution then please give like to question

Add a comment
Know the answer?
Add Answer to:
Design a 2-bit alu that performs the following four operations: (However, the internal circuit of the...
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
  • 2d) (10 pts) Design a 2-bit ALU using a 2-bit adder and multiplexors (muxes) for the...

    2d) (10 pts) Design a 2-bit ALU using a 2-bit adder and multiplexors (muxes) for the following operation table W X ALU operation 0 0 A +2 0 1 A & B (bit-wise) 1 0 B >> 1 (filled with 0) A-B Note: To make a connection, instead of drawing a line to make a connection, write a signal at each mux input using al, a, b1, b0, 0, or 1 and/or logic gates if needed. а0 b1 bo si...

  • A 1-bit ALU is shown as in Figure 3. The circuit performs both arithmetic and logic...

    A 1-bit ALU is shown as in Figure 3. The circuit performs both arithmetic and logic operations. Determine the operations of the ALU for each combination of the two (2) operation bits , OP1 and OP2, and Binvert bit by completing Table 1. When do 1’s complement and 2’s complement operations are performed. (Please explain each step)             Binvert carry in operation a 10 1 Result b 12 3 carry out Figure 3 Binvert Operation Operation- bit OP1 OP2 0...

  • Design a 4-bit Arithmetic Logic Unit (ALU) according to the following specification

     Design a 4-bit Arithmetic Logic Unit (ALU) according to the following specification. Follow the design shown during the lecture. Notice this table is different, though. a. Create the internal of 1-bit of the logic unit (It is recommended that you design the internal of a 4 to 1 MUX first, create a symbol for it and use it for creating the logic unit) b. Create a symbol for your logic unit and use four of them to make a 4-bit logic unit c....

  • Problem 3 - Arithmetie Logic Unit (ALU) Design us poins Design a 4-bit ALU that has two selection...

    Problem 3 - Arithmetie Logic Unit (ALU) Design us poins Design a 4-bit ALU that has two selection variables Si Design an optimized circuit (mus external gates for circuit B operates based on the function table given below. The arithmetic unit and So and generates the arithmetic operations given below. and generatest Use a 4-1 MUX block with Si So Cin = 1 F-A (complement) F = A+B (add) FB (transfer) F A+B F = A+ 1 (negate) F A+B+...

  • 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...

  • 1. Assuming that the ALU has a 6-bit control word, how many different operations can it...

    1. Assuming that the ALU has a 6-bit control word, how many different operations can it perform? 2. Consider the ALU shown on slide 9 of Lecture 16. Calculate the result for each operation specified in Table 1. Assume that A 1101 and B 0111. Specify the operation performed, the resut, and the value of each status bit 3 Write the VHDL code to describe an ALU that performs four operations: AND, OR, NOT, and Addition. Use a with-select-when statement....

  • Design a 4-bit ALU with the truth table above. In this design A and B are two 4-bit binary inputs, s0, s1, s2, s3 and Ci...

    Design a 4-bit ALU with the truth table above. In this design A and B are two 4-bit binary inputs, s0, s1, s2, s3 and Cin are control signals. There is no need to draw the internal circuits of MUX & Full adders but I need the logic gates drawn out. S3 S2 s1 Cin Operation 0 A 0 0 0 1 A+1 0 0 1 10 A+B 0 1 1 A+B+1 A+B 0 0 0 0 0 A+B'+1 0...

  • Design a 2-bit full adder. this circuit would have 5 inputs, two for the number A...

    Design a 2-bit full adder. this circuit would have 5 inputs, two for the number A = (a1,a0), two for the number B = (b1,b0), and one for the carry-in Cin. It would also have three outputs, two for the sum bit S = (s1,s0) and one for the carry out Cout.

  • Design a 2-bit full adder. this circuit would have 5 inputs, two for the number A...

    Design a 2-bit full adder. this circuit would have 5 inputs, two for the number A = (a1,a0), two for the number B = (b1,b0), and one for the carry-in Cin. It would also have three ouputs, two for the sum bit S = (s1,s0) and one for the carry out Cout.

  • This section gives you freedom to come up with your own solutions. An Arithmetic and Logic Unit (...

    This section gives you freedom to come up with your own solutions. An Arithmetic and Logic Unit (ALU) is a combinational circuit that performs logic and arithmetic micro-operations on a pair of 4-bit operands. The operations performed by an ALU are controlled by a set of function-select inputs. In this lab you will design a 4-bit ALU with 3 function-select inputs: Mode M, Select S1 and S0 inputs. The mode input M selects between a Logic (M=0) and Arithmetic (M=1)...

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