retagged by
620 views
0 votes
0 votes
An instruction pipelined processor has five stages namely, instruction fetch (F), instruction decode
(D), Instruction execution (E), memory Access for operand (M) and write Back (W) with stage
latencies of 1 ns, 2ns, 2 ns, 1 ns, 1 ns respectively. To gain interms of frequency, the designer
decided to split the decoder stage into two stages D1 and D2 each of latency 1 ns and execute stage
into 3 stages E1, E2 and E3 stages each of latency 2ns/3.
A program has '100' instructions, all instructions use all stage services. The amount of time saved
(in ns) using new design over old design is __________.

I am getting 99 but the answer provided is 96. Can you please verify.
retagged by

1 Answer

0 votes
0 votes

Old design:

K = 5, tp= max (1, 2 ,2, 1, 1)=2 ns ,n = 100

Execution time = (k+n-1)x tp  = (5 + 100-1) × 2 = 208 ns

 

New design:

K = 8, tp= max (1, 1, 1, 2/3, 2/3 2/3, 1,1 ) =1 ns

Execution time = (k+n-1)x tp  = (8 + 100-1) × 1 = 107 ns

Amount of time saved = (208 – 106) = 101 ns

Hence final answer should be 101 ns.

 

 

Related questions

5 votes
5 votes
2 answers
1
0 votes
0 votes
0 answers
3