Home » Computer Organization and Architecture » Computer organization and architecture miscellaneous » Question

Computer organization and architecture miscellaneous

Computer Organization and Architecture

  1. Consider the sequence of machine instructions given below.
    MULR5, R0, R1
    DIVR6, R2, R3
    ADDR7, R5, R6
    SUBR8, R7, R4

    In the above sequence, R0 to R8 are general purpose registers. In the instruction shown, the first register stores the result of the operation performed on the second and the third registers. This sequence of instructions is to be executed in a pipelined instruction processor with the following 4 stages: (1) Instruction Fetch and Decode (IF), (2) Operand Fetch (OF), (3) Perform Operation (PO) and (4) Write Back the result (WB). The IF, OF and WB stages take 1 clock cycle each for any instruction and 5 clock cycles for DIV instruction. The pipelined processor uses operand forwarding from the PO stage to the OF stage. The number of clock cycles taken for the execution of the above sequence of instructions is _________.
    1. 52
    2. 13
    3. 31
    4. 35
Correct Option: B

I ⇒ Instruction Fetch and Decode
O ⇒ Operand Fetch
P ⇒ Perform operation
W ⇒ write back the result



Your comments will be displayed only after manual approval.