lem in the pipeline of Teletraan-2. Instruction (2) will be waiting for the result generated by Instruction (1). That means the operand fetch stage cannot fetch the operand of Instruction (2) from R1, unless the write back stage finishes writing the result of Instruction (1) into R1. As a result, the pipeline is stalled for 3 CPU clock cycles. What should we do to alleviate the problem? A. Nothing. We will have to let Instructions (2), (3), and (4) wait. B. We will put Instructions (2), (3), and

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

When we execute such a program:
(1) R1 = 3 + 5
(2) R2 = R1 / 4
(3) R3 = 4 * 16
(4) R4 = R3 * 2
We realize a problem in the pipeline of Teletraan-2. Instruction (2) will be waiting for the result
generated by Instruction (1). That means the operand fetch stage cannot fetch the operand of
Instruction (2) from R1, unless the write back stage finishes writing the result of Instruction (1)
into R1. As a result, the pipeline is stalled for 3 CPU clock cycles. What should we do to
alleviate the problem?
A. Nothing. We will have to let Instructions (2), (3), and (4) wait.
B. We will put Instructions (2), (3), and (4) in a queue. The first instruction whose operands
are ready will be issued and executed. In this case, Instruction (3) will be the next
instruction executed after Instruction (1).
C. We will put Instructions (2), (3), and (4) in a queue. The first instruction whose operands
are ready will be issued and executed. In this case, Instruction (4) will be the next
instruction executed after Instruction (1).
D. We will let the operand fetch stage fetch the operands of Instruction (2) without waiting,
because we can later add another instruction to correct the error.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Would the answer be B or C based on the information given?

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Analysis of Performance Measurement
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education