retagged by
1,056 views
1 votes
1 votes
A program runs in $20s$ in machine A  with a clock speed of $200MHz$. A computer architecture wants to build a machine B which will run this program in $6$ seconds. The architect has delivered that a substantial increase in clock rate is possible, but this will affect the design of rest of the CPU causing machine B to require $1.2$ times as many as clock cycles as machine A for this program. What clock rate should be targeted for  a best design? (In $MHz$)
retagged by

2 Answers

Best answer
3 votes
3 votes
Machine A, Cycle Time $= \frac{1}{200MHZ} = 5ns$

number of cyles needed = total time taken / Cyle time

$=\frac{20 Seconds}{5ns} = 4*10^9$

Machine B, cyles needed $= 1.2*4*10^9 = 4.8*10^9$

Total time taken = 6 seconds

Cycle Time = Total Time Taken/ Number of Cycles Needed

$=\frac{6 Seconds}{4.8*10^9} = 1.25ns$

Frequnecy $= \frac{1}{1.25ns} = 800 MHZ$
selected by
0 votes
0 votes
1 sec 200*${10^{6}}$ cycles

20 sec 20x200*${10^{6}}$ cycles

6 sec total cycles  1.2*20*200*10^6cycles

1 sec total cycle is (1.2*20*200*10^6)/6 =800*10^6

so 800 MHZ
Answer:

Related questions

0 votes
0 votes
1 answer
4