Professional Documents
Culture Documents
18UEC091 CA Answer Sheet
18UEC091 CA Answer Sheet
veh Kum
8 UECO
nstsuctions 7
No-Of cyclesin
=7X 0-5
7XO 5
Tme
Tme Seüsed to complete nstsuction
Tronpip
3-5 ns
Aschi tatune
Fos Pene
fsequeny 1-6 GHz
= 6-625 ns
of I ctoch cyde =
1.6X 1o1
Time peviod
0.9ns
Spe ed up TnonpiPel? ne
3.Sns
TPipeline 0-qns
3.89
Si2e
Size of cathe memosy 32 kB
= 64 byrte
Block size
cache memos
No-of
Cache ine
lne Siz2e
S
32 kB 2
64
log, (25)
bits IS bitsS
rag index byte
No.Of ines to epoesent hfe =o 6 6 bits
iSbhs
Ta ind ex byte
y.heh kuh)
GUECO
600
d00 o010 Ootn Dl00 loro O TTOT
ioo To
A C
2 3
60ot o010 0I 100 1010 ot 1100 o0oo
2 bytes
No.of bits sequised to sepsesert byte = log,(Block size)
6 bitS
2 18
Cache S 2e
NO. Of sets
Blocksizex Associait
2 x2
ndex byte
TaY obits6 b1s
16 bits
set numbey = 1o bits
to xepsesent
NO.Of bifs 06 index
Addsess OK 21 B04
ven
00
0010 000 0l 0000 Oo0 IO 11
index byte
bits bits
set numben
Uah Kumn
130E C01
876 S43 2 0
ndex bts= ooo O
St32 +16+3 + 2+
th e set Of Cache will te
315 Seanhed
Sy3 2
byte Bts =
I oo Ot
2+2
= yq byte ill be foguacde
32+I6 +I
seplace
victim (v)
we
Deote Net Tckim Victim
Nert vidim
)Randemly Fick o as
hi+ to v
de mote
NV to V
e
o as NV
pi ck
) Rand ornly
2)
V to O.
Turn
)
y.umesh Kufm)
'18 UECO
acessd o
fa woKd S
Spatial locelsty Ttmeans
be accessed In
to that uosd
the adfacen.
hean futne block Sze
It depen ds
sefesened ow hen
TF a wosd s
tocalit
Temposal in ftne
sefesenced agai
Same wosi is
Least Recently
Used poliay
LRU
temco8al lcali ty.
xate 48% =
0.98
cae
-hit sate 0.02
misS Sate=
Cache
twosd 32bits =
4 bytes
CnTen
(BUE CO
ht atenu +Miss x s s
Avenage
acess Time AMAT
ater
-5 + 0.02X 315
l0. ns
L2
Hit Trme 6 cyle
Hit T me = 2 de 0. 7
MSS
0ate =
77. -
miss latery
t time misssote ot
miSs peralty ofLi n L2
Cach e
+0-0S|
6+0.07 X12S
2
A MAT
2t o.6S 6 + 8 7 S )
O-OS 14-7
2t
2.7375 Cyles
Y.Umesh u n
1SUECO
cahe Misses
of
3 types
These ane
to an
acsess alunyc
sefesene
Compukedy miss fisst
The
esult in miss Sugae st sS
ame
u ng v o id a b l e
ts
is
ThTs Occned tue t o
of miss
)Capadky miss This ty pe
capadty of Cache
Smallen uould accw) even in fulk
mis ses that
Defin ed
Sane capadr y
asso dative. cad of moy
neithen a compdso s
Con flict niss
c a p a d ty miss
addsessad by CPU in
block runben ane
will be i ss as
55
L
mod 4 = T
ine
Mss
modu =t n e
Mss line
mody =
Miss 4
t tinel
ine
mody
Miss./13
y.U onedh Kuy
I&UE COT|
in he cache
Tne
he type of cache n which
Disect. Mapped Cache
main memoBu can accomodate onl ane
a blocl of
ache emos
line
payticulan block ith
Babed on qiven fosmtula any
to (ne
Same index Can Come
1&UEC0 l
both
combi natton of
set Assodat ive
disect Tnsteadinq
Full douative and mapping
divide
the
block an line we
pladna nu rum bens wi
cand cetain Block
ines into sets
placed
in cetoin sets only
be
fosmla
Babed on qiven
tahen s block numl
nnod n
K n is no-of sets
Advantog es
conflict misses to some exte
Can seduce
stose
easily Seoched in ta
Can be avticula set will
cosoes ponding to
that
Taq stose
be Seanched.
Bsanch Pseclidion
2 bit Counte
5 brfs
t0e used diffesent
As e have two
Not tas en
States A staDngly.
wea kly Not taken
O Bsandh continauly
B oa n c h
in paticulan Sihaaton
bsanch is taken
the totoands downward
dfferent state
moVe
y.Umecth Kurnan
IgU£CO
weakty
stsongl taken
atually
taken
tce n atually taken
adually taren-
a d u a l y rOt t a k e n
wakly
actudly stsongy-
Not
Tot nE en taken atualy
taken
eottaken
O
atually taken
ifM Si
doesit change
is Psedichron
Astsong
dfftesent outcome
psovides
-ttes husteni sis
b extsa bit
one
y. Umech Kumo
1gUE Co
Bs aoch Psedictons
not taken
DAloayS
Al oays tken
2)
tovuad not taken
3)Backuand touken
le babed
4) Pso baed
S) Ps6g a n e
dependen
u e3
(1) D ata This
iS called a
as
Read aften
dsite AW
dependena stosed in Sz inpsevious
f lo Resutt
used to
instsuctio D is
exeute next instsuction
7his s calted a
aften Read WAR
WAR
wsite
depependeny
Antr
stosed n S
Result
psevios fnstuder
used in
6 to eatd
y.Umesh kuma
ISUECO
OP
S
6 o Sz