Question: The ALU supported set on less than (slt) using just the sign bit of the adder. Lets try a set on less than operation using
The ALU supported set on less than (slt) using just the sign bit of the adder. Let’s try a set on less than operation using the values -7ten and 6ten.
To make it simpler to follow the example, let’s limit the binary representations to 4 bits: 1001two and 0110two.
1001two – 0110two = 1001two + 1010two = 0011two
This result would suggest that -7 > 6, which is clearly wrong. Hence, we must factor in overflow in the decision. Modify the 1-bit ALU in Figure B.5.10 on page B-33 to handle slt correctly. Make your changes on a photocopy of this figure to save time.
Step by Step Solution
3.49 Rating (172 Votes )
There are 3 Steps involved in it
The ALUsupported set less than slt uses just the sign bit In this case if we try a set ... View full answer
Get step-by-step solutions from verified subject matter experts
