Chapter 4 - Memory Part 2
Chapter 4 - Memory Part 2
1- Asynchronous DRAMs
2- Synchronous DRAM (SRAM)
3- Double Data Rate SDRAM (DDR SDRAM)
4- Rambus DRAM (RDRAM)
Type of DRAM Architectures:
1- Asynchronous DRAMs
Type of DRAM Architectures:
Synchronous DRAM (SRAM)
Type of DRAM Architectures:
Synchronous DRAM (SRAM)
• In SDRAM, data exchanges with the processor are synchronized to
an external clock signal and running at the full speed of the
processor/memory bus without imposing wait states.
• New data are placed on the data lines at the rising edge of each
clock pulse.
Memory Latency
The amount of time it takes to transfer a word of
data to or from the memory
Memory Bandwidth
The number of bits or bytes that can be
transferred in one second
• The basic operation of the cache is as follows: when the CPU needs
to access memory, the cache is examined. If the word is found in
the cache, it is read from the fast memory. If the word addressed by
the CPU is not found in the cache, the main memory is accessed to
read the word.
• When a cache hit occurs, the data and address buffers are disabled
and communication is only between processor and cache, with no
system bus traffic.
Cache Memory Operation
• When a cache miss occurs, the desired address is loaded onto the
system bus and the data are returned through the data buffer to
both the cache and the processor. In other organizations, the
cache is physically interposed between the processor and the
main memory for all data, address, and control lines. In this latter
case, for a cache miss, the desired word is first read into the cache
and then transferred from cache to processor.
Cache Memory Organization
Cache Memory Addressing
Cache Memory Addressing
When virtual memory is used, the address fields of machine
instructions contain virtual addresses. For reads to and writes from
main memory, a hardware memory management unit (MMU)
translates each virtual address into a physical address in main
memory.
• Associative Mapping
• Direct Mapping
• Set Associative Mapping
Main Memory Mapping Procedures
Main Memory Mapping Procedures
2- Direct Mapping
Main Memory Mapping Procedures
2- Direct Mapping
Main Memory Mapping Procedures
3- Set Associative Mapping