subject

Problems in this exercise refer to the following sequence of instructions: or r1,r2,r3
or r2,r1,r4
or r1,r1,r2
Also, assume the following cycle times for each of the options related to forwarding:
LvwIno-KNMFEHQcgLMwL0r3E6xL95nbeRNo mFEPV
Part 1: Indicate dependences and their type.
Read after write dependency in r1 between Instructions 1 and 2 & 3.
Read after write dependency in r2 between Instructions 2 and 3.
Write after read in r2 from Instruction 1 to 2.
Write after read in r1 from Instruction 2 to 3.
Write after read in r1 from Instruction 1 to 3.
Part 2: Assume there is no forwarding in this pipelined processor. Indicate hazards and add nop instructions to eliminate them.
No hazards from write after read and write after write, since there are 5 stages.
Read after writes cause data hazards.
or r1, r2, r3
NOP
NOP
or r2, r1, r4
NOP
NOP
or r1, r1, r2
Part 3: Assume there is full forwarding. Indicate hazards and add NOP instructions to eliminate them.
In full forwarding the data hazards above are eliminated, thus there is no need for NOP instructions.
Part 4: What is the total execution time of this instruction sequence without forwarding and with full forwarding?
Without forwarding:
TotalExecutionTime=(7 + 4) x 250ps = 2750ps
Full forwarding:
TotalExecutionTime=(7 + 0) x 300ps = 2100ps
What is the speedup achieved by adding full forwarding to a pipeline that had no forwarding?
Speed up: 2750 / 2100 = 1.3095
Part 5: Add nop instructions to this code to eliminate hazards if there is ALU-ALU forwarding only (no forwarding from the MEM to the EX stage).
Part 6: What is the total execution time of this instruction sequence with only ALU-ALU forwarding? What is the speedup over a no-forwarding pipeline?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:00
Stacy works as blank. the most important soft skill she needs for this role is blank.
Answers: 3
question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
This program should be a short piece of code that prints all of the positive integers from 1 to 100 as described more fully below. the program may contain multiple methods, and if using an oo language, should be contained within a single class or object. the program should be designed so that it begins execution when invoked through whichever mechanism is most common for the implementation language. â–ş print out all positive integers from 1 to 100, inclusive and in order. â–ş print messages to standard output, matching the sample output below. â–ş in the output, state whether the each integer is 'odd' or 'even' in the output. â–ş if the number is divisible by three, instead of stating that the number is odd or even, state that the number is 'divisible by three'. â–ş if the number is divisible by both two and three, instead of saying that the number is odd, even or divisible by three; state that the number is 'divisible by two and three'. â–ş design the logic of the loop to be as efficient as possible, using the minimal number of operations to perform the required logic. sample output the number '1' is odd. the number '2' is even. the number '3' is divisible by three. the number '6' is divisible by two and three.
Answers: 1
question
Computers and Technology, 24.06.2019 22:10
In command prompt, whats a command that will list only .ini files in c: \windows\system32 directory?
Answers: 1
You know the right answer?
Problems in this exercise refer to the following sequence of instructions: or r1,r2,r3
or r2...
Questions
question
Mathematics, 08.10.2019 22:00
question
Mathematics, 08.10.2019 22:00
Questions on the website: 13722367