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

Explain how a 32-bit ALU can support the MIPS slt instruction. Remember

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.

to explain ALL the steps. Please elaborate with 32 1-bit ALUs Note:

-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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!