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 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories is this true or false?
Answers: 2
question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 22.06.2019 22:20
Pp 4.1 design and implement a class called sphere that contains instance data that represents the sphere’s diameter. define the sphere constructor to accept and initialize the diameter and include getter and setter methods for the diameter. include methods that calculate and return the volume and surface area of the sphere (see pp 3.5 for the formulas). include a tostring method that returns a one-line description of the sphere. create a driver class called multisphere, whose main method instantiates and updates several sphere objects.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e.g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
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
Mathematics, 18.03.2021 19:50
question
Mathematics, 18.03.2021 19:50
Questions on the website: 13722363