Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help completing the following computer architecture problem (I know that

ID: 3605994 • Letter: I

Question

I need help completing the following computer architecture problem (I know that the anser should have about 25 columns):

Consider a 5-stage IF, ID, EX, MEM and WB pipeline. Assume that we use “predict branch not taken” method. Calculation of branch address is made in the EX stage. Data is forwarded when possible.

You are to analyze the pipeline execution of this following code. Draw the 5-stage execution diagram using the template shown (i.e., see the initial two cycles below.) Point out where the stalls are needed to prevent data and control hazard. Point out where data are forwarded from one stage to another stage.

*** . Show your work. ****

(a)       addi $s0, $0, 2

(b) loop: lw $t0, 12 ($s0)

(c)       add $t1, $t0, $t0

(d)       lw $t2, 0($t1)

(e)       add $t4, $t1, $t2

(f)       sw $t2, 0($t4)

(g)       subi $s0, $s0, 1

(h)       bne $s0, $zero, loop

(i)       lw $s1,16($s0)

Explanation / Answer

P(monsters are spooky) = 0.7 , P(monsters are scary) = 0.3

P(monsters are ghosts) = 0.25

P(ghost are spooky) = 0.8 , P(ghost are scary) = 0.2

(a) P(Spooky ghost given that it is a monster) = 0.25* 0.8 = 0.2

(b) P(not a Spooky ghost given that it is a monster) = 0.7*(1-0.25) = 0.525

(c) )P(monster is spooky given that it not a ghost) = P(Monster is spooky and not a ghost)/P(not a ghost)

=0.525/0.75 = 0.7

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote