Consider the instruction sequence in a five?stage pipeline IF, OF, E, M, OS:

1. ADD r0,r1,r2
2. ADD r3,r0,r5
3. STR r6,[r7]
4. LDR r8,[r7]
Instructions 1 and 2 will create a RAW hazard. What about instructions 3 and 4? Will they also create a RAW
hazard?


Yes ? possibly. Register r6 may not have been stored before it is read (in memory) by the next instruction. Of
course, part of the problem is the bad code. You are storing a value in memory and then reading it back. You
should replace the LDR r8,[r7] by MOV r8,r6.

Computer Science & Information Technology

You might also like to view...

The "brain" of the computer that carries out the commands issued when you create documents, draw pictures, or manipulate numbers is the ____________________.

A. storage device B. software C. RAM D. microprocessor

Computer Science & Information Technology

A structure should be used instead of an array when __________.

a. related items should be grouped together b. related items are of different data types c. related items contain strings of different lengths d. there are a limited number of related items

Computer Science & Information Technology

When a single device controls a LAN, it is known as

a. centralized control b. distributed control c. data-link control d. none of the above

Computer Science & Information Technology

To add a footer, you can click the ________ button in the Text group on the Insert tab

Fill in the blank(s) with correct word

Computer Science & Information Technology