# ASSIGNMENT-1

ACSA-2012
1. You have a system that contains a special processor for doing floating-point operations. You have determined that 60% of your computations can use the floating-point processor. When a program uses the floating-point processor, the speedup of the floating-point processor is 40% faster than when it doesn’t use it. a) What is the overall speedup by using the floating-point processor? b) In order to improve the speedup you are considering two options: • Option 1: Modify the compiler so that 70% of the computations can use the floating-point processor. Cost incurred is Rs. 25 lakhs. • Option 2: Improve the FP unit such that it doubles the speed of FP operations. Assume in this case that 50% of the computations can use the floating–point processor. Cost incurred is Rs. 30 lakhs. Which option would you recommend? Justify your answer quantitatively.

2. Suppose you have a load/store computer with the following instruction mix: Operation ALU ops Loads Stores Branches Frequency 35% 25% 15% 25% clock_cycle 1 2 2 3

a) Compute the average CPI. b) It is observed that 35% of the ALU ops are paired with a load, and we propose to replace these ALU ops and their loads with a new instruction. The new instruction takes 1 clock cycle. With the new instruction added, branches take 5 clock cycles, Compute the CPI for the new version. c) If the clock of the old version is 20% faster than the new version, which version has a lower CPU execution time and by how much percent ? 3. Consider the following four-segment normalized floating-point segment, which equals the pipeline clock period. X Y S1 S2 S3 S4 Z adder with a 10ns delay per