Question: Exercise 4. [30 Marks The following tables summarizes the instructions present in some program (Table 1) as well as two different processors (Table 2). Operation

Exercise 4. [30 Marks The following tables summarizes the instructions present in some program (Table 1) as well as two different processors (Table 2). Operation Instruction Count ALU 2000 Load 1000 Store 600 Branch 400 Operation LALU Load Store Branch Processor 1 Processor 2 3 1 4 6 2 2 Table 1: Program Instructions Table 2: Processor Instruction Cycles CPI for Processor 1 is 3.15 CPI for processor 2 is 2.65 (c) calculate the poster? (Hint: for (c) (5 Marks] Assuming that Processor 1 operates at 2.8 GHz and Processor 2 operates at 2.4 GHz calculate the CPU time for the program when run on each processor. On which processor is the program faster? (Hint: for easy calculations, 1GHz = 1 x 10Hz) (d) [5 Marks) In terms of the three factors calculating CPU time (instruction count, CPI, clock frequency) explain why the processor from part (c) is the faster one. How could a programmer change the program described in Table 1 so that it would run faster on the other processor? (e) (10 Marks) Calculate the CPU time of the program described in Table 1 running on Processor 1 (at 2.8 GHz) when also considering memory stall cycles (and thus have CPU time calculated using CPIstall). Assume this processor has one level of cache, an instruction miss rate of 2%, a data miss rate of 5% and a miss penalty of 100 cycles. Exercise 4. [30 Marks The following tables summarizes the instructions present in some program (Table 1) as well as two different processors (Table 2). Operation Instruction Count ALU 2000 Load 1000 Store 600 Branch 400 Operation LALU Load Store Branch Processor 1 Processor 2 3 1 4 6 2 2 Table 1: Program Instructions Table 2: Processor Instruction Cycles CPI for Processor 1 is 3.15 CPI for processor 2 is 2.65 (c) calculate the poster? (Hint: for (c) (5 Marks] Assuming that Processor 1 operates at 2.8 GHz and Processor 2 operates at 2.4 GHz calculate the CPU time for the program when run on each processor. On which processor is the program faster? (Hint: for easy calculations, 1GHz = 1 x 10Hz) (d) [5 Marks) In terms of the three factors calculating CPU time (instruction count, CPI, clock frequency) explain why the processor from part (c) is the faster one. How could a programmer change the program described in Table 1 so that it would run faster on the other processor? (e) (10 Marks) Calculate the CPU time of the program described in Table 1 running on Processor 1 (at 2.8 GHz) when also considering memory stall cycles (and thus have CPU time calculated using CPIstall). Assume this processor has one level of cache, an instruction miss rate of 2%, a data miss rate of 5% and a miss penalty of 100 cycles
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
