# MCS-284 Chapter 1 Homework

When turning in a homework problem, mark it with the exercise number shown in bold here. These will be the reference numbers I use in reporting back your standing on the homework.

• 1.2: Do exercise 1.2 on pages 58-59. In parts 1.2.3 and 1.2.4, give each answer in units that make the corresponding numeric value be at least 1 and less than 1000.

• 1.4.1-3: Do parts 1.4.1-1.4.3 of exercise 1.4 on page 60.

• 1.4.4-6: Do parts 1.4.4-1.4.6 of exercise 1.4 on page 60.

• 1.x1: You are considering a change in the design of a computer. The software that runs on the computer is fixed, and will not be changed. The computer can execute floating point instructions in 4 cycles each and other instructions in 1 cycle each. The average CPI (for the particular software, which is fixed) is 2. A proposed revision to the computer's design would allow the cycle time to be reduced by 40%. However, the floating point instructions will now take 5 cycles and the other instructions will take 2 cycles.

1. What fraction of the instructions executed are floating point?

2. What is the average CPI of the new computer running the same workload?

3. Is the proposed change beneficial for this workload? Why or why not?

Instructor: Max Hailperin