Docsity

Computer Architecture Homework: Effective CPI and Speedup Calculation, Assignments of Advanced Computer Architecture

Toggle sidebar
bg1
Computer Architecture Homework #1
Assigned Question #4
(a) (1) Effective CPI = โˆ‘๐ถ๐‘ƒ๐ผ๐‘–
๐‘›
๐‘–=1 ร—๐ผ๐ถ๐‘–
๐ผ๐‘›๐‘ ๐‘ก๐‘Ÿ๐‘ข๐‘๐‘ก๐‘–๐‘œ๐‘› ๐‘๐‘œ๐‘ข๐‘›๐‘ก
= (1 x 10%) + (17 x 40%) + (5 x 30%) + (3 x 20%)
= 0.1 + 6.8 + 1.5 + 0.6 = 9
(2) Execution time = ๐ถ๐‘ƒ๐ผ ร— ๐ผ๐ถ
๐ถ๐‘™๐‘œ๐‘๐‘˜ ๐‘Ÿ๐‘Ž๐‘ก๐‘’ =(4 ร— 1010) ร— 9
2 ร— 109 = 180
(1) Effective CPI of the enhancement
= Effective CPI โ€“ Frequency x (CPIold โ€“ CPInew)
= 9 โ€“ 40% x (17 โ€“ 7) = 9 โ€“ 4 = 5
(2) Speedup of the enhancement = ๐ถ๐‘ƒ๐‘ˆ ๐‘ก๐‘–๐‘š๐‘’ ๐‘œ๐‘Ÿ๐‘”
๐ถ๐‘ƒ๐‘ˆ ๐‘ก๐‘–๐‘š๐‘’ ๐‘›๐‘’๐‘ค = 9
5 ร— 1.2 = 1.5
Frequencynew = 10% + 40% + (30% x 1/3) + 20% = 80%
CPInew = 1ร—10%
80% + 17 ร—40%
80% + 5ร—10%
80% + 3ร—20%
80%
= 1/8 + 68/8 + 5/8 + 6/8 = 80/8 = 10
Speedup of the enhancement = ๐ถ๐‘ƒ๐‘ˆ ๐‘ก๐‘–๐‘š๐‘’ ๐‘œ๐‘Ÿ๐‘”
๐ถ๐‘ƒ๐‘ˆ ๐‘ก๐‘–๐‘š๐‘’ ๐‘›๐‘’๐‘ค = 9
10 ร— 0.8 = 1.125

Partial preview of the text

Download Computer Architecture Homework: Effective CPI and Speedup Calculation and more Assignments Advanced Computer Architecture in PDF only on Docsity!

Computer Architecture Homework

Assigned Question # 4

(a) (1) Effective CPI = โˆ‘^ ๐ถ๐‘ƒ๐ผ๐‘–

๐‘›

๐‘–= 1 ร—^

๐ผ๐ถ๐‘– ๐ผ๐‘›๐‘ ๐‘ก๐‘Ÿ๐‘ข๐‘๐‘ก๐‘–๐‘œ๐‘› ๐‘๐‘œ๐‘ข๐‘›๐‘ก = (1 x 10%) + (17 x 40%) + (5 x 30%) + (3 x 20%)

(2) Execution time = ๐ถ๐‘ƒ๐ผ ร— ๐ผ๐ถ ๐ถ๐‘™๐‘œ๐‘๐‘˜ ๐‘Ÿ๐‘Ž๐‘ก๐‘’

( 4 ร— 1010 ) ร— 9 2 ร— 109

(1) Effective CPI of the enhancement = Effective CPI โ€“ Frequency x ( CPIold โ€“ CPInew )

= 9 โ€“ 40% x (17 โ€“ 7) = 9 โ€“ 4 = 5

(2) Speedup of the enhancement = ๐ถ๐‘ƒ๐‘ˆ ๐‘ก๐‘–๐‘š๐‘’ (^) ๐‘œ๐‘Ÿ๐‘” ๐ถ๐‘ƒ๐‘ˆ ๐‘ก๐‘–๐‘š๐‘’ (^) ๐‘›๐‘’๐‘ค

9 5 ร— 1. 2

Frequencynew = 10% + 40% + (30% x 1/3) + 20% = 8 0%

CPInew = 1 ร—

10% 80%

+ 17 ร—

40% 80%

+ 5 ร—

10% 80%

+ 3 ร—

20% 80% = 1/ 8 + 68/ 8 + 5 / 8 + 6/ 8 = 8 0 / 8 = 10 Speedup of the enhancement = ๐ถ๐‘ƒ๐‘ˆ ๐‘ก๐‘–๐‘š๐‘’ (^) ๐‘œ๐‘Ÿ๐‘” ๐ถ๐‘ƒ๐‘ˆ ๐‘ก๐‘–๐‘š๐‘’ (^) ๐‘›๐‘’๐‘ค

9 10 ร— 0. 8