Explore BrainMass
Share

add hardware to ALU

The MIPS ALU (see enclosed figure) is extended to support an instruction "set-on-not-equal-signs". The instruction 'snes $rd, $rs, $rt' is similar to 'slt'. It sets $rd to '1' if the sign bit of $rs sign bit of $rt. Your task is to add the minimum required hardware to the ALU so that this instruction is executable in one execute cycle (that is one cycle not counting the fetch and execute).

© BrainMass Inc. brainmass.com August 18, 2018, 10:16 pm ad1c9bdddf

Solution Summary

The MIPS ALU (see enclosed figure) is extended to support an instruction "set-on-not-equal-signs". The instruction 'snes $rd, $rs, $rt' is similar to 'slt'. It sets $rd to '1' if the sign bit of $rs sign bit of $rt. Your task is to add the minimum required hardware to the ALU so that this instruction is executable in one execute cycle (that is one cycle not counting the fetch and execute).

$2.19