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, 22.06.2019 23:30
Define a function printfeetinchshort, with int parameters numfeet and numinches, that prints using ' and " shorthand. ex: printfeetinchshort(5, 8) prints: 5' 8"
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
question
Computers and Technology, 24.06.2019 00:50
Which of the following is not a key player in the sale of travel products?
Answers: 2
You know the right answer?
Assume this is executed on a standard 5 stage mips pipeline with no branch prediction. how many dyna...
Questions
question
Health, 24.03.2020 18:00
question
Mathematics, 24.03.2020 18:00
question
Mathematics, 24.03.2020 18:00
question
Mathematics, 24.03.2020 18:00
Questions on the website: 13722360