GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2024 set2

GATE 2024 set2 · CS · MSQ · 1 mark · Computer Organization and Architecture › Pipelining

GATE 2024 set2 Computer Science and Information Technology question: An instruction format has the following structure: Instruction Number: Opcode…

An instruction format has the following structure:

Instruction Number: Opcode destination reg, source reg-1, source reg-2

Consider the following sequence of instructions to be executed in a pipelined processor:

I1: DIV R3, R1, R2

I2: SUB R5, R3, R4

I3: ADD R3, R5, R6

I4: MUL R7, R3, R8

Which of the following statements is/are TRUE?

  1. (A)

    There is a RAW dependency on R3 between I1 and I2

  2. (B)

    There is a WAR dependency on R3 between I1 and I3

  3. (C)

    There is a RAW dependency on R3 between I2 and I3

  4. (D)

    There is a WAW dependency on R3 between I3 and I4

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion