MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ORGANIZATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider a pipelined processor with the following four stages-IF:Instruction FetchID:Instruction Decode and Operand FetchEX:ExecuteWB:Write Back The IF, ID and WB stages take one clock cycle each to complete the operation. The number of clock cycles for the EX stage depends on the instruction. The ADD and SUB instructions need 1 clock cycle and the MUL instruction need 3 clock cycles in the EX stage. Operand forwarding is used in the pipelined processor. What is the number of clock cycles taken to complete the following sequence of instructions? ADD R2, R1, R0 R2 ← R0 + R1MUL R4, R3, R2 R4 ← R3 + R2SUB R6, R5, R4 R6 ← R5 + R4
A
7
B
8
C
9
D
14
Explanation: 

Detailed explanation-1: -A pipelined processor uses a 4-stage instruction pipeline with the following stages: Instruction fetch (IF), Instruction decode (ID), Execute (EX) and Writeback (WB).

Detailed explanation-2: -A 5-stage pipelined processor has Instruction Fetch(IF), Instruction Decode(ID), Operand Fetch(OF), Perform Operation(PO)and Write Operand(WO)stages.

Detailed explanation-3: -Thus, Execution time in 4 stage pipeline = 1 clock cycle = 800 picoseconds.

There is 1 question to complete.