Deprecated: Implicit conversion from float-string "1571211521.345" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1571211521.345" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1571211521.345" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1571211521.345" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1571211521.345" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1576838234.020" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1576838234.020" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1576838234.020" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1576838234.020" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1576838234.020" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1596979198.506" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1596979198.506" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1596979198.506" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1596979198.506" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1596979198.506" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1619025263.040" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1619025263.040" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1619025263.040" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1619025263.040" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1619025263.040" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1579466729.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1579466729.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1579466729.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1579466729.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1579466729.391" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1583727861.685" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1583727861.685" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1583727861.685" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1583727861.685" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1583727861.685" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594

Deprecated: Implicit conversion from float-string "1624219305.432" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1624219305.432" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1624219305.432" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1624219305.432" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803

Deprecated: Implicit conversion from float-string "1624219305.432" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 594
CO and Architecture: GATE CSE 2014 Set 1 | Question: 55
retagged by
18,007 views
49 votes
49 votes
Consider two processors $P_1$ and $P_2$ executing the same instruction set. Assume that under identical conditions, for the same input, a program running on $P_2$ takes $\text{25%}$ less time but incurs $\text{20%}$ more CPI (clock cycles per instruction) as compared to the program running on $P_1$. If the clock frequency of $P_1$ is $\text{1GHZ}$, then the clock frequency of $P_2$ (in GHz) is ______.
retagged by

7 Answers

1 votes
1 votes

Let's assume values.

$P_1$ takes $10ns$ with $CPI=1$, and clock cycle time = $1ns$ (derived from frequency)

This means

$P_2$ takes $7.5ns$ with $CPI=1.2$, and clock cycle time = $?=xns$


Number of instructions = $10$. (Evident from $P_1$)

For $10$ instructions $P_2$ takes $7.5ns$ (Because they work on same instructions; given)

So, $10*1.2xns=7.5ns$

=> $x=\frac{7.5}{12}$

Frequency = $=\frac{1}{x}=\frac{12}{7.5}=1.6\ GHz$

 

0 votes
0 votes
For P1,

let no. of clocks = 100

clock time  = 1 ns (1/1GHz)

Total time = 100 * 1 ns = 100 ns

For P2,

No. of clocks = 20% more that P1 = 120

Total time = 25% less than P1 = 75 ns

    120 * x = 75 ns

⇒ x = 0.625 ns = 1/0.625 GHz = 1.6 GHz
0 votes
0 votes

We know that Execution time = CPI *$\frac{1}{Clock Rate}$   ………….(1)

P1 :

CPI = x(let)

Execution Time =y (let)

Put in equation 1

y = $\frac{x}{Clock rate}$     (given clock rate for P1 is 1 ghz)

y= $\frac{x}{1 Ghz}$

x = y*1ghz …...…….…….(2)

P2 :

CPI (given it is 20% more than P1) = x+x*$\frac{20}{100}$ =$\frac{120x}{100}$

Execution Time (given it is 25% less than P1) = y-y*$\frac{25}{100}$ =$\frac{75y}{100}$

Put in eq 1

$\frac{75y}{100}$ = $\frac{120x}{100}$ *$\frac{1}{Clock Rate}$

Clock Rate = $\frac{24x}{15y}$ 

Using eq 2

Clock Rate = $\frac{24 *y*1ghz}{15y}$ 

Clock Rate = 1.6 Ghz

Answer:

Related questions

20.0k
views
9 answers
50 votes
go_editor asked Sep 28, 2014
19,968 views
Consider a $6$-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is exec...
18.4k
views
6 answers
49 votes
go_editor asked Sep 26, 2014
18,379 views
A machine has a $32\text{-bit}$ architecture, with $1\text{-word}$ long instructions. It has $64$ registers, each of which is $32$ bits long. It needs to support $45$ ins...
22.8k
views
10 answers
126 votes
go_editor asked Sep 28, 2014
22,768 views
An access sequence of cache block addresses is of length $N$ and contains n unique block addresses. The number of unique block addresses between two consecutive accesses ...
26.7k
views
10 answers
100 votes
go_editor asked Sep 28, 2014
26,741 views
Consider an undirected graph $G$ where self-loops are not allowed. The vertex set of $G$ is $\{(i,j) \mid1 \leq i \leq 12, 1 \leq j \leq 12\}$. There is an edge between $...