Question

Suppose you are designing a 32-bit sequential ALU. ALU output (HI & LO) is 0 for...

Suppose you are designing a 32-bit sequential ALU. ALU output (HI & LO) is 0 for NoOP operation code. How many 1-bit 11x1 multiplexers do you need to implement the 'result' and 'done' selection for the output fo this ALU?

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

By constructing a 1-bit ALU and then create the desired 32-bit ALU by connecting 32 1-bit ALUs.A 1-bit ALU can be constructed using a full-adder, two multiplexors and a few gates. The two 1-bit data inputs are named a and b, and the 1-bit output is named Result. This ALU can perform addition, subtraction, AND, OR on the two data inputs according to an operation code supplied to the ALU. The two-bit control input named Operation partially specifies the operation code.

A 1-bit ALU.

Operation    Binvert      CarryIn     Result         Function

   00                 0              X               a AND b      Logical AND
   01                 0              X               a OR b         Logical OR
   10                 0              0                a + b            Addition
   10                 1              1                a - b             Subtraction
   11                 1              1                Less             Sets on less than

X means don't care, + means arithmetic addition, and - means arithmetic subtraction. The four-input multiplexor on the right has its 2-bit select input connected to the Operation line. The output of this multiplexer is the 1-bit output of the ALU named Result. Recall that subtracting b from a is the same as adding the 2's complement of b to a. The two-input multiplexor on the left selects b or its inverted value, depending on the 1-bit select input named Binvert. This input is set to 0 for addition, AND, and OR, and set to 1 for subtraction. The CarryIn input is set to 0 for addition and set to 1 for subtraction.

Add a comment
Know the answer?
Add Answer to:
Suppose you are designing a 32-bit sequential ALU. ALU output (HI & LO) is 0 for...
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
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