Timing a loop on a shared memory path

A simplified computer using Von Neumann Architecture executes exactly seven iterations of the following loop. Every iteration executes all four instructions once, including the branch in the final iteration.


Instruction

Data-memory transfers during execution

LOAD a value from memory

One read

ADD a second value from memory

One read

STORE the result in memory

One write

BRANCH if another iteration is required

None


Every executed instruction also requires one instruction-fetch transfer. All transfers use one shared path, occur one at a time and take exactly 30 ns each. During the measured interval, an input device occupies that path for one additional 180 ns interval, during which the processor makes no transfers.


Assume all processing time other than these transfers and this interruption is negligible. There are no additional instructions or transfers. Find the elapsed time from the start of the first fetch to completion of the final branch, in ns, to the nearest whole ns.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More How a Computer Works Questions: