Memory Addresses
Word (Memory)
The storage cells of memory are of a regular and fixed size known as a word. In exams, take a word to be .
Link to original
Words in memory are arranged in groups known as blocks, which are different sizes depending on the system.
A memory address uniquely identifies a word and is composed of two fields:
- : which block the word is in
- : where the word is within the block Also referred to as the word field.
title: Example
Assume a memory consists of $2^{14}$ words and each block has $8$ words.
1. How many blocks does main memory have?
$$
\text{blocks} = \frac{\text{number of words}}{\text{block size}} = \frac{2^{14}}{2^3} = 2^{11}
$$
2. How many bits does an address have?
We need to uniquely identify every word in the system.
$$
\text{bits} = \lceil \log_2 (2^{14}) \rceil = 14 \text{ bits}
$$
3. What are the field sizes of the address?
$11$ bits to identify block, $3$ bits for the offset.