You are on page 1of 4

Phn dch :PipeLine.

Gii thiu:
B li vi x l MIPS32 4K b sung pipeline gm 5 giai on tng t pipeline R300 .PipeLine cho php cc b x l nng cao tn s trong khi gim thiu phc tp ca thit b,gim c v gi thnh cng nh s tiu th v in nng. Ni dung gm cc phn sau: + cc giai on ca PipeLine. + Cache Miss lnh + Cache Miss d liu + cc php ton nhn ,chia. + PipeLine MDU(vi nhn 4Kc v 4Km) + PipeLine MDU(ch vi nhn 4Kp) + Tr hon nhnh. + ng r d liu, + X l Interlock + iu kin thot. + Lnh interlock + Lnh Hazard

I.cc giai on ca pipeline


C 5 giai on: Instruction(I stage) Execution (E stage) Memory (M stage) Align/Accumulate (A stage) Writeback (W stage) C 3 nhn thc thi mt c ch Bypass ,c ch ny cho php kt qu ca qu trnh c gi mt cch trc tip n lnh cn n n m khng phi vit kt qu n thanh ghi v sau c n tr li. Hnh sau minh ha nhng thao tc trong mi tng ca b x l 4Kc

Hnh sau minh ha nhng thao tc trong mi tng ca b x l 4Km

Hnh sau minh ha nhng thao tc trong mi tng ca b x l 4Kp

I.1 giai on I: np lnh During(trong thi gian)np lnh: +Mt lnh c np vo trong cache lnh +I-TLB x l dich mt a ch vt l o. I.2 giai on E:thc thi lnh Trong giai on thc thi: +cc ton hng c np t thanh ghi +ton hng t giai on M v A c chuyn ti giai on ny. +sau ALU bt u thc hin cc php ton s hc v logic t thanh ghi lnh n thanh ghi lnh . +ALU tnh ton a ch o d liu trong vic ti v lu tr cc lnh. +ALU quyt nh trong trng hp iu kin r nhnh l ng v tnh ton a ch nhnh ch trong cu lnh r nhnh +lnh logic chn mt a ch lnh. +cc php ton nhn v chia bt u trong giai on ny. I.3 giai on M: Np vo b nh +php ton s hc v php ton logic hon tt. +tm trong cache d liu v dch t a ch o sang a ch vt l c thc hin bi lnh np v lnh lu tr. +tm kim d liu trong cache v TLB c thc hin v khng nh l cache hit hay l cache miss +ton hng MULL 16x16 hoc 32x16 hon tt trong mng v tr hon trong 1 xung vi giai on M. +ton hng MULL 32x32 mt 2 xung ng h trong giai on M hon tt chu k th hai ca mng

+ton hng MULT/MADD/MSUB 16x16 32x16 hon tt trong mng +ton hng MULT/MADD/MUSB i mt xung trong giai on M ca pipeline MDU hon tt chu k th hai trong mng. +thao tc chia mt ti a 32 xung ng h trong giai on M ca pipeline MDU (4Kc and 4Km
cores).

+ thao tc nhn mt 31 xung ng h trong giai on M ca pipeline MDU. (4Kp core only).
I.4 giai on A: Align/Accumulate

+b canh chnh tch ri np d liu vi cc ranh gii t ca n. +thao tc MUL to kt qu sn sng vit tr li.vit tr li thanh ghi thc s th c thc hin trong giai on W. +thao tc MULT/MADD/MSUB x l carry-propagate-add.iu ny bao gm mc kt qu i vi thao tc MADD/MSUB,
+thao tc chia thc hin iu chnh cui cng. +thao tc nhn /chia vit kt qu ti thanh ghi HI/LO

I.5 giai on W :Writeback i vi thanhghi n thanh ghi hoc lnh load,kt qu c vit tr li thanh ghi nh giai on ny.

II.Instruction Cache Miss


Khi cache lnh c nh ch s