Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

4. Devise an interview strategy from the interviewers point of view

Answered: 1 week ago