Share
Explore BrainMass

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

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