Docsity

Memory Organization & Cache Systems: Characteristics & Design, Slides of Computer Architecture and Organization

Partial preview of the text

Download Memory Organization & Cache Systems: Characteristics & Design and more Slides Computer Architecture and Organization in PDF only on Docsity!

Characteristics

  • Location
  • Capacity
  • Unit of transfer
  • Access method
  • Performance
  • Physical type
  • Physical characteristics
  • Organisation

Location

  • CPU
  • Internal
  • External

Unit of Transfer

  • Internal —Usually governed by data bus width
  • External —Usually a block which is much larger than a word
  • Addressable unit —Smallest location which can be uniquely addressed —Word internally —Cluster on M$ disks

Access Methods (1)

  • Sequential — Start at the beginning and read through in order — Access time depends on location of data and previous location — e.g. tape
  • Direct — Individual blocks have unique address — Access is by jumping to vicinity plus sequential search — Access time depends on location and previous location — e.g. disk

Memory Hierarchy

  • Registers —In CPU
  • Internal or Main memory —May include one or more levels of cache —“RAM”
  • External memory —Backing store

Memory Hierarchy - Diagram

Physical Types

  • Semiconductor —RAM
  • Magnetic —Disk & Tape
  • Optical —CD & DVD
  • Others —Bubble —Hologram

Physical Characteristics

  • Decay
  • Volatility
  • Erasable
  • Power consumption

The Bottom Line

  • How much? —Capacity
  • How fast? —Time is money
  • How expensive?

Hierarchy List

  • Registers
  • L1 Cache
  • L2 Cache
  • Main memory
  • Disk cache
  • Disk
  • Optical
  • Tape

Locality of Reference

  • During the course of the execution of a program, memory references tend to cluster
  • e.g. loops

Cache

  • Small amount of fast memory
  • Sits between normal main memory and CPU
  • May be located on CPU chip or module

Cache Design

  • Size
  • Mapping Function
  • Replacement Algorithm
  • Write Policy
  • Block Size
  • Number of Caches

Size does matter

  • Cost —More cache is expensive
  • Speed —More cache is faster (up to a point) —Checking cache for data takes time