MJay

[Qual-CA] - Chapter 1.3 문제풀이 본문

PSU/Qualifying Exam - CA

[Qual-CA] - Chapter 1.3 문제풀이

MJSon 2019. 10. 5. 00:31

Computer Organization and Architecture 문제 풀이

 

1.3

 

 

 

a랑 b는 뭘까? 

 

Performance를 갖는 다는 건 - Instruction / Sec, 즉 초마다 얼마나 많은 Instruction을 할 수 있는 것이다. 

 

Instruction / Sec - Instruction / Cycle (1/CPI)  * Cycle / Sec (Clock Rate)

 

고로 CPI의 역수와 Clock Rate를 곱하면 된다.

 

Number of Cycles 를 찾는 다는 건 -> Clock / Sec * Sec 이렇게 하면 Clock 이 생긴다 

 

즉 Clock Rate 에 시간을 곱하면 된다.



Number of Instruction - CPI 역수에 Cycle을 곱하면 된다. 위에서 Number of Cycle을 곱했으니 문제없음



 

clock rate = Clock / Sec = Number of Insturction * CPI 역수 * /time




Clock Rate = Cycle / Sec - 

 

Clock Rate 는 Cycle/sec 이다. 

 

Clock Rate - Cycle / Sec 이고

 

Time 은 Cycle 이 도는 시간  -> Cycle / Time 이다. 

 

 

Cycle / Sec = CPI * Number of Cycles * 1/Sec 

 

CPI * N of Cycles * 0.7

 

 그리고 시간은 위에서 말한대로 10초인데 , 30%가 줄어들었으니 70%로 생각하면 된다. 






5 Execution time 이니

 

Time - new / Time - old = 7 / 10 = 0.7

 

F new = F old / 0.7 

 

6. Instruction은 



Ins - new = Ins - old * 0.7 이렇게 접근하면 된다. 

 

 

 

Class A : 10^5

Class B : 2 * 10^5

Class C : 3 * 10^5

Class D : 3 * 10^5

 

Time = No Instruct * CPI / clock rate  = No Of Instruction * Cycle / Instuction * Time / Cycle

 

이렇게 더하면 된다. 

 

 

CPI = Clock rate * time / No of insturction

 












'PSU > Qualifying Exam - CA' 카테고리의 다른 글

Computer Arhictecture 시험 준비중  (0) 2020.09.15
[Computer Architecture]  (0) 2019.10.10
[Qual-CA] - Chapter1 Problem  (0) 2019.10.05