Consider the following data path diagram. Consider an instruction: \(R0 ← R1 +…

GATE · 2020 · CS · Computer Science & IT

Consider the following data path diagram.

Consider an instruction: R0←R1+R2R0 ← R1 + R2 The following steps are used to execute it over the given data path. Assume that PC is incremented appropriately. The subscripts r and w indicate read and write operations, respectively.

1.    R2r, TEMP1r,ALUadd, TEMP2wR2_{r},\text{ TEMP1}_{r},ALU_{\text{add}}, \text{ TEMP2}_{w}

2.    R1r, TEMP1wR1_{r},\text{ TEMP1}_{w}

3.    PCr, MARw, MEMrPC_{r}, \text{ MAR}_{w}, \text{ MEM}_{r}

4.     TEMP2r, R0w\text{ TEMP2}_{r}, \text{ R0}_{w}

5.     MDRr, IRw\text{ MDR}_{r}, \text{ IR}_{w}

Which one of the following is the correct order of execution of the above steps ?

  1. A.

    2, 1, 4, 5, 3

  2. B.

    1, 2, 4, 3, 5

  3. C.

    3, 5, 2, 1, 4

  4. D.

    3, 5, 1, 2, 4

Attempted by 35 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…