Computer Hardware 2
Computer Hardware 2
Computer Hardware 2
GROUP II
Memory Representation
2
Memory hierarchy
1. Primary memory
2. Secondary memory
Memory Representation
3
Memory
4
There are two types of main memory, Random Access Memory (RAM) and Read
Only Memory (ROM)
Its purpose is to temporarily hold programs and data for processing. In modern
computers it also holds the operating system
Types of RAM
5. Cache memory
• Small amount of memory typically 256 or 512 kilobytes
• Temporary store for often used instructions
• Level 1 cache is built within the CPU (internal)
• Level 2 cache may be on chip or nearby (external)
• Faster for CPU to access than main memory
The operation of cache memory
8
1. Cache fetches data 2. CPU checks to see
from next to current whether the next
addresses in main instruction it requires is in
memory cache
Main Cache
Memory Memory CPU
(DRAM) (SRAM)
= Bus connections
Types of RAM
7. Virtual memory
• Uses backing storage e.g. hard disk as a temporary location for programs and
data where insufficient RAM available
• Swaps programs and data between the hard-disk and RAM as the CPU requires
them for processing
• A cheap method of running large or many programs on a computer system
• Cost is speed: the CPU can access RAM in nanoseconds but hard-disk in
milliseconds (Note: a millisecond is a thousandth of a second)
• Virtual memory is much slower than RAM
Read only memory (ROM)
10
ROM holds programs and data permanently even when computer is switched off
Data can be read by the CPU in any order so ROM is also direct access
Stores a program called the bootstrap loader that helps start up the computer
11
12
8-15
Direct Access Storage Devices
16
GEOMETRY:
TRACKS and SECTORS
Floppy Disks
17
High capacity
Known as a floppy-disk cartridge
Require special disk drives
Three well known types
Zip disks
HiFD disks
SuperDisks
18
Hard Disks
Use thicker, metallic platters for storage
Large capacity
Sensitive instruments
Internal Hard Disk
19
Removable
Massive storage capacity
Common in mainframes
Resembles stack of vinyl records
Hard-Disk Pack
21
Optical Disks
22
Compact
Permanent storage
Laser beams reflect off pits
Two common types
CD
DVD
Compact Disc
23
Optical format
From 650 MB to 1 GB capacity
Rotation speeds vary
Types
Read only: CD-ROM
Write once: CD-R
Rewriteable: CD-RW
Picture CDs and Photo CDs
24
CD–R
optical phase-change
recording
Erased, written up to
1,000 times
26
DVD
Digital Versatile Disk or Digital Video Disk (DVD)
Similar to CDs, but can store more data
Types
Read only
Write once
Rewritable
Higher capacity:
higher data density
multiple sides
multiple layers
Other Types of Secondary Storage
27
Solid-state storage
Magnetic tape
Solid-State Storage
28