Skip to main content
permalink

Unit 2.3.1 A simple model of memory and registers

permalink

permalinkFor computation to happen, input data must be brought from memory into registers and, sooner or later, output data must be written back to memory.

permalinkFor now let us make the following assumptions:

  • Our processor has only one core.

  • That core only has two levels of memory: registers and main memory, as illustrated in Figure 2.3.1.

    permalink
    Figure 2.3.1. A simple model of the memory hierarchy: slow memory and fast registers.

  • Moving data between main memory and registers takes time βRM per double. The RM is meant to capture movement between registers (R) and memory (M).

  • The registers can hold 64 doubles.

  • Performing a flop with data in registers takes time γR.

  • Data movement and computation cannot overlap.

permalinkLater, we will refine some of these assumptions.