Menu

[solved]-Consider Following Instruction Sequence Executes 5 Stage Scalar Pipelined System Branch Pr Q39075222

Consider the following instruction sequence that executes on our5-stage scalar pipelined system with no branch prediction, but witha hazard unit as well as a forwarding unit:

ori $4,$0,2

loop:

add $6,$7,$8

and $9,$4,$7

bne $4,$0,loop

srl $4,$4,1

addi $3,$0,1

sll $3,$3,1

a) The ori instruction is fetched in cycle 1. During which clockcycle does the sll instruction complete the write-back stage if noearly branch condition evaluation or branch prediction is used?

b) The ori instruction is fetched in cycle 1. There is no earlybranch condition evaluation. During which clock cycle does the sllinstruction complete the write-back stage if branch predictionbased on a decode history table (DHT) is used? Assume that the DHTalways predicts that the branch will be taken.

Expert Answer


Answer to Consider the following instruction sequence that executes on our 5-stage scalar pipelined system with no branch predicti… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *