Question
Explain how a 32-bit ALU can support the MIPS slt instruction. Remember to explain ALL the steps. Please elaborate with 32 1-bit ALUs Note: Only
Explain how a 32-bit ALU can support the MIPS slt instruction. Remember to explain ALL the steps. Please elaborate with 32 1-bit ALUs
Note:
Only the first ALU, ALU0 has its Less input coming from Set of last ALU (ALU31). All other ALUs have their Less input set to 0.
Only the last ALU, ALU31 has the Set output.
-All Less inputs of ALU1-31 connected to 0 except for Less input of ALU0 (the lsb).
-lsb Less input (ALU0) connected to Set output from (ALU31) msb
-If ALU performs a-b and we select input 3 in multiplexor (i.e the operation), then Result=0....001 if a, Result=0....000 otherwise.
-When we want ALU to subtract, set both control lines CarryIn and Binvert to 1
-For adds or logical operations both control lines should be 0.
Combine CarryIn and Binvert into a single control line called Bnegate
4-bit control line that represents
1-bit Ainvert
1-bit Bnegate
2-bits Operation
Think about how the slt operation is achieved and fill the following table using the 4-bit control line from above (Enter 0 or 1)
Ainverty | Binvert | Operation | Function | |
|
|
|
| slt |
Ainvert Operation Binvert Carryln 0 0 Result 0 2 Less 3 CarryOut Ainvert Operation Binvert Carryln 0 0 Result 0 2 Less 3 CarryOut
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started