"Cache Memory" in (Microprocessor Systems and Interfacing)
"Cache Memory" in (Microprocessor Systems and Interfacing)
in
[ Microprocessor Systems and Interfacing ]
Lecture-21
M. M. Yasin
[email protected]
“Computer Memory System”
Computer memory is organized into a hierarchy:
At the highest level (closest to the processor), are the
processor Registers.
Next comes one or more levels of Cache. When multiple
levels are used, they are denoted L1, L2, and so on.
Next comes Main Memory, which is usually made out of
dynamic random-access memory (DRAM).
All of these are considered internal to the computer system.
Note: It would be nice to use only the fastest memory, but because
that is the most expensive memory, we trade off access time for cost by
using more of the slower memory.
Direct:
Individual blocks or records have a unique address based on
physical location. Access is accomplished by direct access to
reach a general vicinity plus sequential searching, counting,
or waiting to reach the final location.
Associative:
This is a random access type of memory that enables one to
make a comparison of desired bit locations within a word for
a specified match. Thus, a word is retrieved based on a
portion of its contents rather than its address. As with
ordinary random-access memory, each location has its own
addressing mechanism, and retrieval time is constant
independent of location.
Fall 2019 - M. M. Yasin 1.7
“Cache Memory Principles”
Cache memory is intended to give memory speed
approaching that of the fastest memories available, and at
the same time provide a large memory size at the price of
less expensive memories.