Docsity

Computer Organization and Assembly Language: Assignment 1 Solution, Assignments of Computer Architecture and Organization

Toggle sidebar
bg1
CS-530: Computer Organization and Assembly Language @ ARID-UIIT, Assignment 1 Solution
Prepared by [email protected]
1
Solution: (3 Marks)
Ic = 100,000
Effective/Overall CPI = 45,000 ร— 1 + 32,000 ร— 2 + 15,000 ร— 2 + 8,000 ร— 2
100,000
CPI = 1.55
f = 40 MHz = 40 ร— 106 Hz
MIPS = 40 ร— 106
1.55 ร— 106
MIPS โ‰ˆ 25.81
๐œ = 1
๐‘“= 1
40 ร— 106 s
Execution Time, T = 100,000 ร— 1.55ร— 1
40 ร— 106 s
T = 3.875 ms
pf3

Partial preview of the text

Download Computer Organization and Assembly Language: Assignment 1 Solution and more Assignments Computer Architecture and Organization in PDF only on Docsity!

Prepared by [email protected] Solution: (3 Marks) Ic = 100, Effective/Overall CPI =

45 , 000 ร— 1 + 32 , 000 ร— 2 + 15 , 000 ร— 2 + 8 , 000 ร— 2

CPI = 1.

f = 40 MHz = 40 ร— 106 Hz MIPS =

40 ร— 106

1. 55 ร— 106

MIPS โ‰ˆ 25.8 1

40 ร— 10

6 s

Execution Time, T = 100,000 ร— 1.55ร—

40 ร— 106

s T = 3.875 ms

Prepared by [email protected] Solution: (7 Marks) a. (6 Marks) CPIA = 40/18 โ‰ˆ 2. MIPSA โ‰ˆ 90 Execution_TimeA = 18 ร— 106 ร— 40/18 ร— 1 / (200 ร— 106 ) s = 0.2 s CPIB = 46/24 โ‰ˆ 1. MIPSB โ‰ˆ 104. Execution_TimeB = 24 ร— 106 ร— 46/24 ร— 1 / (200 ร— 106 ) s = 0.23s b. (1 Mark) Although machine B has a higher MIPS than machine A, yet it requires a longer CPU time to execute the same set of benchmark programs.