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 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
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