Q. A CPU with an 8 ns clock period requires 6 cycles for a memory reference, 4…

Q. A CPU with an 8 ns clock period requires 6 cycles for a memory reference, 4 cycles for an ALU operation, and 2 cycles for a register reference.The following program is stored in memory starting at address (4150)₁₀ and is executed sequentially:

Instruction

   Meaning

Size (in Bytes)

MOV D₀, @1000

D₀ ← M[[1000]]

8

MOV D₁, 7(D₀)

D₁ ← M[7 + [D₀]]

6

ADD [7800], D₀

M[7800] ← M[7800] + D₀

8

MUL D₁, @4500

D₁ ← D₁ × M[[4500]]

8

MOV 5(D₁), [1000]

M[5 + [D₁]] ← M[1000]

6

HALT

—

2

Assume the system supports word-addressable memory with a word size of 16 bits.

If no interrupt occurs, what is the total program execution time (in ns)?

  1. A.

    1552 ns

  2. B.

    1584 ns

  3. C.

    1568 ns

  4. D.

    1600 ns

Attempted by 17 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…