# In the SRM and SLM instructions, both the operand R[SA] and the shift amount ield OP are

## Question:

In the SRM and SLM instructions, both the operand R[SA] and the shift amount ield OP are checked to see if either is 0 before the shifts begin.

**(a) **Redraw the state machine diagram for these operations with these checks removed.

**(b) **Use the original diagram and the new diagram to compare the number of clock cycles required for values of OP equal to 0 through 7.** **Assume that the probability of each OP value for 1 through 6 is 1/8, for 0 is 1/4, and for 7 is 0.** **Assume that the likelihood of a 0 operand is 1/8. Perform calculations to determine the best implementation (with checks or without checks)

based on the given probability information and comparative number of clock cycles for the two implementations. Provide a convincing argument for your selected answer.

## Step by Step Answer:

**Related Book For**

## Logic And Computer Design Fundamentals

**ISBN:** 9780133760637

5th Edition

**Authors:** M. Morris Mano, Charles Kime, Tom Martin