1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
krok68 [10]
3 years ago
9

Assume that the following code segment C is executed on a pipelined architecture that will cause data hazard(s): Code segment C:

add $s2, $t2, $t3 sub $t4, $s2, $t5 add $t5, $s2, $t6 and $t5, $t4, $t6 2 2.A.) (10 POINTS) First describe schematically, what will be the first data hazard that will occur in this code segment. Then, schematically provide a solution for the first data hazard that will occur in this code segment by using each of the following data hazard remedies. Please note that for each item below you apply the solution independently, i.e. each solution should be isolated from other solutions. Ignore any further data hazard your proposed solution may cause. So, only try to solve the first data hazard that will occur in the code segment C. 2.B.) (10 POINTS) rearranging the code statements, i.e. reorganizing the order of instructions in the original code segment C. 2.C.) (10 POINTS) nop, i.e. inserting nop operation(s) into the original code segment C. 2.D.) (10 POINTS) stalling, applying stalling operations(s) into the original code segment C. 2.E.) (10 POINTS) data forwarding, i.e. applying data forwarding towards instruction(s) in the original code segment C.

Computers and Technology
1 answer:
KiRa [710]3 years ago
5 0

Answer:

See explaination

Explanation:

a) Reorganizing the code

ADD $s2 , $t2, $t3

ADD $t5, $s2, $t6

SUB $t4, $s2, $t5

AND $t5,$t4,$t6

The reordering of the instruction leads to less hazards as compared to before.

b) with NOP

ADD $s2 , $t2, $t3

NOP

NOP

SUB $t4, $s2, $t5

NOP

ADD $t5, $s2, $t6

NOP

NOP

AND $t5,$t4,$t6

c. Pipeline with stalls

see attachment please

d. pipeline with forwarding

see attachment

You might be interested in
Each vertex in a graph of n bertices can be the origin of at most ____edges
EastWind [94]

Answer:

B. n-1

Explanation:

If there are n vertices then that vertex can be origin of at most  n-1 edges.Suppose that you have a graph with 8 vertices you can select a vertex from these 8 vertices now you have 7 other vertices.So the vertex you selected can have at most 7 edges or it can be origin of at most 7 edges.So we conclude that the answer is n-1.

6 0
3 years ago
What is one current method of detecting planets orbiting around other stars?
Gnoma [55]
C

D is the old way.

A they have not done yet

B not even a thing
5 0
3 years ago
( PLEASE I NEED THIS LIKE REALLY FAST- )
levacccp [35]
50 because the negative doesn’t matter when getting an absolute value
5 0
2 years ago
Read 2 more answers
You will transform the program that was written to play a letter guessing game (project 2) to an object-oriented program.general
Sedbober [7]
We need to program from the project to even solve this.
6 0
2 years ago
What is a formula? What is a function? (In the context of Excel)
mel-nik [20]

Answer: A formula is an expression which calculate the value of a cell .A funcation is a predefined formula that performs calculations using specific values in particular order.According to context of excel.

4 0
3 years ago
Other questions:
  • Find a, b, and c<br> A a=4 square root of 6 b= 8 square root of 2 ; c= 4 square root of 2
    12·1 answer
  • Fordham3 Hardware is known for its consensus buying center culture. Recognizing this corporate culture, someone attempting to se
    8·1 answer
  • What is required to display content on transparencies?
    6·1 answer
  • Fourlotts Corp. provide integrated services that include storing manufactured goods, packaging, and delivering it to the dealers
    13·1 answer
  • When I click on someone who asked a question and i want to see there answer it is always blurred and when I asked a question I c
    8·1 answer
  • WILL GIVE BRAINLIST IF ANSWER IS RIGHT AND YOU TELL ME HOW YOU GOT YOUR ANSWER (dont copy and past from a site)
    10·2 answers
  • 4. Give four reasons why a laptop computer is more expensive than a desktop computer of the
    10·1 answer
  • This is a human-made physical system.
    15·1 answer
  • CODING TIME
    8·1 answer
  • How many accelerometers are there in an IRS system?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!