subject
Computers and Technology, 21.11.2019 20:31 Shathep

Assume this is executed on a standard 5 stage mips pipeline with no branch prediction. how many dynamic instructions are executed, including nops? how does this relate to the number of cycles? consider the following code

li $t0, 5

li $t1, 0x10010004

loop: addi $t0, $t0, -1

lw $t1, 0($t1)

bne $t0, $zero, loop

add $v0, $t0, $zero

a) assume this is executed on a standard 5 stage mips pipeline with no branch prediction. how many dynamic instructions are executed, including nops? how does this relate to the number of cycles?

b) how many dynamic instructions and cycles would this take with perfect branch prediction?

c) assume a 1 bit branch predictor is used, where the original state is not taken. give the full log of the branch history table, showing predicted and actual branches. underline the incorrect predictions. what is the final state of the branch prediction, and how many cycles were required in total?

d) this code is executed on a single cycle machine (m1) at 100 mhz, and on a multicycle machine with 1 bit branch predictor (m2) at 133.33 mhz. compute texe (t execution) on both m1 and m2. what is the total branch misprediction overhead (that is, what percentage of the total execution time is due to mispredicting the branch? )

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:30
Who can provide you with a new password when you have forgotten your old one? your provide you with a new password in case you forget your old one.
Answers: 3
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
List at least one thing to check for when you're checking the clarity and professionalism of a document.
Answers: 1
You know the right answer?
Assume this is executed on a standard 5 stage mips pipeline with no branch prediction. how many dyna...
Questions
Questions on the website: 13722362