Professional Documents
Culture Documents
Basic Concepts
The maximum size of the memory that can be used in any computer is determined by the addressing
scheme
For example, a 16-bit computer that generates 16-bit addresses is capable of addressing up
to 216=64K memory locations.
Similarly, machines whose instructions generate 32-bit addresses can utilize a memory that
contains up to 232=4G memory locations
Most modern computers are byte addressable. Form the system standpoint, we can view the
memory unit as a block box. Data transfer between the memory and processor takes place through
the use of two processor registers, MAR and MDR
Virtual Memory - Address Translation
All programs and data are composed of fixed-length units called pages, each of which consists of a
block of words that occupy contiguous locations in the main memory. Page cannot be too small or
too large. The virtual memory mechanism bridges the size and speed gaps between the main
memory and secondary storage similar to cache.
Memory Management Requirements
Multiple programs
System space / user space
Protection (supervisor / user state, privileged instructions)
Shared pages
Write buffer processor doesnt need to wait for the memory write to be completed
Prefetching prefetch the data into the cache before they are needed
Lockup-Free cache processor is able to access the cache while a miss is being serviced.
Dzaky ZF 511400067
Memory Hierarchy
Chace Memory
Small amount of fast memory. Sits between normal main memory and CPU. May be located on CPU
chip or module. Intended to achieve high speed at low cost
Mapping Function
Fewer cache line than main memory block. Need to determine which memory block currently
occupies a cache line. Need an algorithm to map memory block to cache line. Three Mapping
Techniques: Direct, Associative and Set associative.
Read Only Memory
There are volatile/non-volatile memory. PROM means programmable ROM. EPROM is erasable,
reprogrammable ROM. EEPROM that can be programmed and erased electrically. Flash Memory
similar to EEPROM. The difference is only possible to write an entire block of cells instead of a single
cell. Flash Memory are Low power, Use in portable equipment. The implementation of such modules
Flash cards and Flash drives.
Dzaky ZF 511400067
Typical Memory Parameters