Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 4 ) Con of data path ( IF , D / R , ALU, DM , WB . Also assume that writing into aregistethrehcalopcpkencsycnile.thAelsofi,rsatsshuamlfe

Q4) Con
of data path (IF, D/R, ALU, DM, WB. Also assume that writing into aregistethrehcalopcpkencsycnile.thAelsofi,rsatsshuamlfe tha clock cycle while reading from aregister happens ni thesecond shpalrfeodficttaken) tofetch the instruction the hardware wil apply "predicted- taken"predictor (i.e. alway
takes twocycles as after the branch and flush it later ni case of misprediction. Also, assume branch
did in class.
Loop:
Iw
St9,0(St8)
#I1; Load from location (1000) addi
$9, St9,-1
#12
SW
St9, O(St8)
#13
addi
St8,St8,8 #14
addi
St1, $t1,-1
#15; $t1 initiallycontains 1(one) one
$t1, $zero, Loop #16
SW
St9,0($t8)
#17
1000
A
1008
C
(a) List the read-after-write data dependencies. As an example, x on y ($5) shows instruction x has d dependency oninstruction ysince it is reading register $5.
(b)Assume the 5-stage MIPS pipelinewith no forwarding,what is the total number ofstall cycles?W si the execution time (in cycles) for the whole program? Showyour work.
(c) Assumethe5-stageMIPSpipelinewithfull forw
si theexecution time (incycles) for th arding, what is the total number
e whole program?Show yourwork. of stall cycles?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions