• retagged by
1,571 views
0 0 votes

2 Answers

Best answer
2 2 votes

First of all in fetching the entire instruction , we need :

No of memory references  =  (4 + 2 + 1 + 1 + 4 + 1)

                                       =  13 

But each memory reference takes 4 cycles , so no of cycles = 13 * 4  =  52 

Now coming to memory reference in operand fetch and writeback , we have 3 such operands or result which are in direct addressing mode and 2 in indirect addressing mode..So 

No of references here  =  2*2 + 3  =  7

So no of cycles  =  7 * 4   =  28 cycles

So total cycles required for program execution = 52 + 28  =  80 cycles..

There is no ALU operations involved if u go by meaning of the instruction given in the question although ADD etc have been used..

So time taken   =   80 * 1 / (2 GHZ)

                       =   40 ns

Hence 40 ns should be the correct answer..So the options should be corrected..

• selected by
0 0 votes
im getting 23 ns
2GHz =>   0.5 ns

I1 - Memory -4 * 4 * 0.5 ns = 8 ns
I2 - Memory-2 * 4 * 0.5 ns = 4 ns
I3 -    ALU   -1 * 2 * 0.5 ns = 1 ns
I4 -    ALU   -1 * 2 * 0.5 ns = 1 ns
I5 - Memory-4 * 4 * 0.5 ns = 8 ns
I6 -    ALU   -1 * 2 * 0.5 ns = 1 ns
Position:
Show:

Related questions

75 75 votes
4 answers 4 answers
24.5k
24.5k views
go_editor asked Sep 29, 2014
24,548 views
On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer $500$ bytes from an I/O device to mem...
79 79 votes
11 answers 11 answers
33.8k
33.8k views
go_editor asked Sep 28, 2014
33,785 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...
197 197 votes
9 answers 9 answers
78.5k
78.5k views
Kathleen asked Sep 22, 2014
78,467 views
A $5$ stage pipelined CPU has the following sequence of stages:IF – instruction fetch from instruction memoryRD – Instruction decode and register readEX – Execute: ALU op...
75 75 votes
9 answers 9 answers
40.4k
40.4k views
Kathleen asked Sep 13, 2014
40,434 views
The access times of the main memory and the Cache memory, in a computer system, are $500$ n sec and $50$ nsec, respectively. It is estimated that $80\%$ of the main memor...