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
A terrestrial biome is named according to the _____ in which a group of plants and animals occur together.
ikadub [295]

Answer:

Predominate Vegetation

Explanation:

3 0
4 years ago
A rookie programmer has just typed over 1000 lines code into the command line interpreter for a project that is due the next day
Kipish [7]

Answer:

I believe the answer is ''You have to remove all code from the interpreter before closing it'.

Explanation:

3 0
3 years ago
The top element in the hierarchy is the html element , which contains all of the other elements within a Hypertext Markup Langua
Anna [14]

the answer is true

The top element in the hierarchy is the html element

6 0
4 years ago
Which of these loops will initialize each element in the array ar to hold the value 4 ?A. for (int i = 1; i < ar.length; i++
Dima020 [189]

Answer:

Option (d) is correct.

Explanation:

In java language "ar.length" is used to tells the size of the array. The array is used to declare more than one variable. Its index value is started from 0. so when a user needs to initialize the value of an array, they need to start the index value at 0. because ar[0] indicates the first variable of an array.

In option (d), index value is started from 0 and ends with (array_size-1). so it gives the accessed to all the variable of an array and the statement "ar[i]=4;", initialize the value 4 to all array variable.  

while another option is not valid because--

  • In option a, Index value starts from 1 which accesses the second variable of an array.
  • In option b, the statement "i<= ar.length;", gives an unbound array exception because it took the size greater than the array size.  
  • In option c, statement "i<ar.length-1;", can not give accessed to the last element of an array.

8 0
4 years ago
Why were patents important to the development of the film industry?
nata0808 [166]

Answer:

In the moment of Edison and Lumière, there were already numerous other types of movie sizes. This diversity of movie sizes and high demand for movie produced frenzy in the current business. Patents on the various sizes and styles of the film were intensifying as corporations attempted monopolies of this industry. To prevent the confusion of these courts, the leading nine corporations that were making cinema in 1909 decided to pool together their rights and produced the 35mm movie as the standard size (Rogge ). At that same year, it was assumed by both the French and the Germanic cinema associations as the necessary size for usage.

5 0
3 years ago
Other questions:
  • An app for a hair styling stop needs a form for the various services that they offer. What control should be used to display all
    6·1 answer
  • What can emulate a fully configured PC or server?
    15·1 answer
  • Which of the following tasks is least effective at preventing a computer virus?
    7·1 answer
  • PLEASE HELP!! Which of the following computing devices would best address the needs for a CYBER SECURITY ANALYST?
    8·1 answer
  • What does the action tool allow you to do in Microsoft power point?
    9·1 answer
  • What nuclear remediation site had their computers wiped clean by notpetya?
    15·1 answer
  • Select the correct answer.
    11·1 answer
  • Super computer in nuclear energy ​
    13·1 answer
  • If cost of 1 kg sugar is 36 find price of 3 kg sugar​
    8·1 answer
  • recursive function that accepts a stack of integers as a parameter and replaces every even value in the stack with two occurrenc
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!