Chache Memory, Internal Memory and External Memory
Chache Memory, Internal Memory and External Memory
Typically:
• Higher performance → higher cost;
• Lower performance → lower cost
INTRODUCTION
• Unity of transfer:
• For internal memory, the unit of transfer is equal to the number of
electrical lines into and out of the memory module.
• This may be equal to the word length, but is often larger, such as
64,128,or 256 bits.
• To clarify this point, consider three related concepts for internal
memory:
CHARACTERISTICS OF MEMORY SYSTEMS
• Word:
• The “natural” unit of organization of memory.
• The size of the word is typically equal to the number of bits used to represent an integer and to the instruction length.
• there are many exceptions.
• Addressable units:
• the addressable unit is the word.
• However, many systems allow addressing at the byte level.
• In any case, the relationship between the length in bits A of an address and the number N of addressable units is N.
• Unit of transfer:
• this is the number of bits read out of or written into memory at a time.
• The unit of transfer need not equal a word or an addressable unit.
• For external memory,
• data are often transferred in much larger units than a word, and these are referred to as blocks.
CHARACTERISTICS OF MEMORY SYSTEMS
• Performance:
• Access time ( latency ):
• For RAM: time to perform a read or write operation;
• For Non-RAM: time to position the read-write head at desired location;
• Memory cycle time: Primarily applied to RAM:
• Access time + additional time required before a second access;
• Required for electrical signals to be terminated/regenerated;
• Concerns the system bus.
CHARACTERISTICS OF MEMORY SYSTEMS
• Physical characteristics:
• Volatile: information decays naturally or is lost when powered off;
• Nonvolatile: information remains without deterioration until changed:
• no electrical power is needed to retain information.;
• E.g.: Magnetic-surface memories are nonvolatile;
• Semiconductor memory (memory on integrated circuits) may be either
volatile or nonvolatile.
MEMORY HIERARCHY
This principle can be applied across more than two levels of memory:
• Processor registers:
• Fastest, smallest, and most expensive type of memory
• Followed immediately by the cache:
• Stages data movement between registers and main memory;
• Improves performance;
• Is not usually visible to the processor;
• Is not usually visible to the programmer.
• Followed by main memory:
• Principal internal memory system of the computer;
• Each location has a unique address
CACHE MEMORY PRINCIPLES
Typically:
• Higher performance → higher cost;
• Lower performance → lower cost
INTERNAL MEMORY
ABEBE A. JUNE, 2019
INTRODUCTION
• Assume:
• • CPU with a clock frequency of 50 Mhz;
• • Memory access time: 65ns;
• • Memory write time: 75ns
• How many clock pulses do we need for read / write operations?
EXAMPLE (2/7)
• Write operation:
• 1 Voltage signal is applied to the bit line
• • Low voltage = 0;
• • High voltage = 1;
• 2 A signal is then applied to the address line:
• • transistor closes...
• • ...charge goes to the capacitor
• How do you think a read operation works?
DYNAMIC RAM (DRAM)
• Read operation:
• 1 Address line is activated
• 2 Transistor turns on
• 3 Capacitor charge goes to bit line...;
• • ...Low voltage = 0
• • ...High voltage = 1
• 4 Cell readout discharges the capacitor:
• • state must be restored;
• Do you have any idea of other type of technology that can be employed?
STATIC RAM (SRAM)
• • DRAMs:
• • Periodically refresh capacitor’s charge;
• • SRAM:
• • No need to periodically refresh;
DRAM VS SRAM
•
READ-ONLY MEMORY (ROM)
• Magnetic Disk
• RAID
• Removable
• Optical
• CD-ROM
• CD-Recordable (CD-R)
• CD-R/W
• DVD
• Magnetic Tape
MAGNETIC DISK
• Recording & retrieval via conductive coil called a head • Read (traditional)
• May be single read/write head or separate ones • Magnetic field moving relative to coil produces curre
• Coil is the same for read and write
• During read/write, head is stationary, platter rotates
• Read (contemporary)
• Write
• Separate read head, close to write head
• Current through coil produces magnetic field
• Partially shielded magneto resistive (MR) sensor
• Pulses sent to head
• Electrical resistance depends on direction of magnetic
• Magnetic pattern recorded on surface below
field
• High frequency operation
• Higher storage density and speed
INDUCTIVE WRITE MR READ
DATA ORGANIZATION AND FORMATTING
• Bit near centre of rotating disk passes fixed point slower than bit on outside of disk
• Increase spacing between bits in different tracks
• Rotate disk at constant angular velocity (CAV)
• Gives pie shaped sectors and concentric tracks
• Individual tracks and sectors addressable
• Move head to given track and wait for given sector
• Waste of space on outer tracks
• Lower data density
• Fixed head
• One read write head per track
• Heads mounted on fixed ridged arm
• Movable head
• One read write head per side
• Mounted on a movable arm
REMOVABLE OR NOT
• Removable disk
• Can be removed from drive and replaced with another disk
• Provides unlimited storage capacity
• Easy data transfer between systems
• Nonremovable disk
• Permanently mounted in the drive
MULTIPLE PLATTER
• Slow
• Universal
• Cheap
• Obsolete?
WINCHESTER HARD DISK (1)
• Universal
• Cheap
• Fastest external storage
• Getting larger all the time
• 250 Gigabyte now easily available
SPEED
• Seek time
• Moving head to correct track
• (Rotational) latency
• Waiting for data to rotate under head
• No redundancy
• Data striped across all disks
• Round Robin striping
• Increase speed
• Multiple data requests probably not on same disk
• Disks seek in parallel
• A set of data is likely to be striped across multiple disks
RAID 1
• Mirrored Disks
• Data is striped across disks
• 2 copies of each stripe on separate disks
• Read from either
• Write to both
• Recovery is simple
• Swap faulty disk & re-mirror
• No down time
• Expensive
OPTICAL STORAGE CD-ROM
• Difficult
• Move head to rough position
• Set correct speed
• Read address
• Adjust to required location
• (Yawn!)
CD-ROM FOR & AGAINST
• CD-Recordable (CD-R)
• WORM
• Now affordable
• Compatible with CD-ROM drives
• CD-RW
• Erasable
• Getting cheaper
• Mostly CD-ROM drive compatible
• Phase change
• Material has two different reflectivities in different phase states
DVD - WHAT’S IN A NAME?
• Multi-layer
• Very high capacity (4.7G per layer)
• Full length movie on single disk
• Using MPEG compression
• Serial access
• Slow
• Very cheap
• Backup and archive
• Linear Tape-Open (LTO) Tape Drives
• Developed late 1990s
• Open source alternative to proprietary tape systems