The Gateway to Computer Science Excellence
0 votes
77 views

How  many cycles here indexed addressing mode will take?

in CO and Architecture by Active (1.1k points)
retagged by | 77 views

1 Answer

0 votes
acc to me ans should be like this..

for register: (0.10*1)=0.10 cycles

for immediate= it should be zero

for direct = 0.30*2 =0.60 cycles (becz 1 mem ref and for 1 mem ref 2 cycles are required)

mem indirect= 0.20*4=0.80cycles

index = 0.20*6=1.2cycles

now 0.10+0.60+0.80+1.2 =2.7 cycles

1cycle required 1ns time

so Tavg =2.7 ns

1 instruction time =2.7 ns

so in 1 sec=1/2.7 ns

that is 370.37 million
by Junior (951 points)
0
In index mode why you multiplied with 6?
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,384 answers
198,542 comments
105,341 users