A 5-stage pipelined processor has the stages: Instruction Fetch (IF), Instruction Decode  (ID), Operand Fetch (OF), Execute (EX) and Write Operand (WO). The IF, ID, OF, and WO stages take 1 clock cycle each for any instruction. The EX stage takes 1 clock cycle for ADD  and SUB instructions, 3 clock cycles for MUL instruction, and 6 clock cycles for DIV  instruction. Operand forwarding is used in the pipeline (for data dependency, OF stage of the  dependent instruction can be executed only after the previous instruction completes EX).  What is the number of clock cycles needed to execute the following sequence of instructions?  MUL R2,R10,R1  DIV R5,R3,R4  ADD R2,R5,R2   SUB R5,R2,R6

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter4: Processor Technology And Architecture
Section: Chapter Questions
Problem 15VE: A(n) ________________ instruction always alters the instruction execution sequence. A(n)...
icon
Related questions
Question

A 5-stage pipelined processor has the stages: Instruction Fetch (IF), Instruction Decode 
(ID), Operand Fetch (OF), Execute (EX) and Write Operand (WO). The IF, ID, OF, and WO
stages take 1 clock cycle each for any instruction. The EX stage takes 1 clock cycle for ADD 
and SUB instructions, 3 clock cycles for MUL instruction, and 6 clock cycles for DIV 
instruction. Operand forwarding is used in the pipeline (for data dependency, OF stage of the 
dependent instruction can be executed only after the previous instruction completes EX). 
What is the number of clock cycles needed to execute the following sequence of instructions? 
MUL R2,R10,R1 
DIV R5,R3,R4 
ADD R2,R5,R2 
 SUB R5,R2,R6 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Types of Database Architectures
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning