Computer Memory and Storage Devices
Computer Memory and Storage Devices
SLO # 2
1
describe important
characteristics of
memory devices;
SLO # 2.1.1
2
Important Characteristics Of
Memory
Characteristics of Memory: In the broad sense, a microcomputer memory
system can be logically divided into three groups:
1) Processor memory
2) Primary or main memory
3) Secondary memory
3
Processor Memory
Processor memory refers to a set of internal registers. These registers hold
temporary results when computation is in progress. There is no speed
disparity between these internal registers and the microprocessor because
they are fabricated on the same chip using the same technology.
4
Primary or Main Memory
Primary memory or the main memory is the external memory to store both
program and data. The processor can access these memories directly.
Usually, the size of primary memory is much larger than the processor
memory but its operating speed is slower than that of the processor
registers.
5
Secondary Memory
Secondary memory refers to the storage medium compositing slow devices
such as hard disks and floppies. These devices are used to hold large data
and huge program that are not needed by the processor frequently.
Sometimes, secondary memories are also referred to as auxiliary or back
up storage.
6
Convert digital storage units from
one to another, i.e. bit, nibble,
byte, kilobyte (KB), kibibyte (KiB),
Megabyte (MB), Mebibyte (MiB),
Gigabyte (GB), Gibibyte (GiB),
Terabyte (TB), Tebibyte (TiB),
Petabyte (PB) and Pebibyte (PiB);
SLO # 2.1.2
7
Memory Unit
8
Conversion Formulas
9
Main Memory
SLO # 2.2
10
differentiate between
primary (main)
memory and
secondary memory;
SLO # 2.2.1
11
PRIMARY MEMORY SECONDARY MEMORY
Primary memory is directly accessible by Secondary memory is not directly accessible
Processor/CPU. by CPU.
Main memory. Auxiliary memory.
Instructions or data to be currently executed Data to be permanently stored is kept in
are copied to main memory. secondary memory.
Primary memory is usually volatile. Secondary memory is non-volatile.
Primary memories are made of Secondary memories are made of magnetic
semiconductors. and optical material.
Accessing data from primary memory is Accessing data from secondary memory is
faster. slower.
Primary memory is accessed by the data bus. Secondary memory is accessed by input-
output channels.
The computer has a small primary memory. The computer has a larger secondary
memory.
Primary memory is costlier than secondary Secondary memory is cheaper than primary
memory. memory
Primary memory is an internal memory. Secondary memory is an external memory.
12
differentiate among Random
Access Memory (RAM),
Read-Only Memory (ROM)
and internal processor
memory;
SLO # 2.2.2
13
Difference between RAM and ROM
Random Access Memory Read only Memory
Volatile(maintains its data while the Non-Volatile (does not lose content when
device is powered) power is lost)
Large size with higher capacity Small size with less capacity
Used for both read and write Used only for reading
Costlier Cheaper than RAM
Very fast but uses a lot of power Fast but uses very little power
14
Internal Processor Memory
Both are temporary memories but they vary mainly based on speed, size and cost.
1. Placement: Cache is usually present on the CPU chip itself. Primary memory(RAM)
is placed on the motherboard and is connected to the CPU via the Memory Bus.
2. Speed: Because cache is closer to the CPU, it is much faster than RAM. Each read
access on the primary memory has to travel via the Memory Bus while the CPU
cache is right there.
3. Size: The size of the cache is much less compared to that of primary memory. The
size of Primary Memory or RAM in today's computers is a few GBs while the size of
cache is a few MBs.
4. Cost: Cache is more expensive than primary memory.
15
compare the two types
of RAM, i.e. Static RAM
(SRAM) and Dynamic
RAM (DRAM);
SLO # 2.2.3
16
Secondary Memory
SRAM DRAM
Faster speed Slower speed
Small in size Large in size
Is costly Expensive Is Cheap
Used in Cache memory Used in Main memory
Charge leakage property Not Present hence require power
present refresh circuitry
17
Compare three types of
ROM, i.e. Programmable
ROM (PROM), Erasable
Programmable ROM (EPROM)
and Electrically Erasable
Programmable ROM
(EEPROM);
SLO # 2.2.4
18
Difference between PROM, EPROM and
EEPROM
PROM EPROM EEPROM
A Read Only Memory (ROM) A programable ROM that can A user-modifiable ROM that
that can be modified only be erased and reused. can be erased and
once by a user. reprogrammed repeatedly
through a normal electrical
voltage.
Stands for Programable Read Stands for Erasable Stands for Electrically
Only Memory. Programable Read Only Erasable Programable Read
Memory Only Memory
SLO # 2.2.5
20
Role of Basic Input/ Output System (BIOS)
in boot-up process
BIOS stands for Basic Input/output System, the BIOS (pronounced bye-oss)
is a ROM chip located on all motherboards that allows you to access and set
up your computer system at the most basic level.
The BIOS includes instructions on how to load basic computer hardware and
includes a test referred to as a POST (Power On Self-Test) that helps verify
the computer meets requirements to boot up properly. If the computer does not
pass the POST, you will receive a combination of beeps indicating what is
malfunctioning within the computer.
21
Role of Basic Input/ Output System (BIOS)
in boot-up process
Four main functions of BIOS:
POST - Test computer hardware insuring hardware is properly functioning before starting
process of loading Operating System.
Bootstrap Loader - Process of locating the operating system. If capable Operating system
located BIOS will pass the control to it.
BIOS - Software / Drivers which interfaces between the operating system and your
hardware. When running DOS or Windows you are using complete BIOS support.
CMOS Setup - Configuration program. Which allows you to configure hardware settings
including system settings such as computer passwords, time, and date.
22
Compare the three types
of cache memory, i.e.
Level-1 (L1) cache, Level-
2 ( L2 ) cache and Level-3
(L3) cache;
SLO # 2.2.6
23
What is Cache Memory?
Cache is a small amount of memory which is a part of the CPU - closer to the
CPU than RAM. It is used to temporarily hold instructions and data that the
CPU is likely to reuse.
The CPU control unit automatically checks cache for instructions before
requesting data from RAM. This saves fetching the instructions and data
repeatedly from RAM – a relatively slow process which might otherwise keep
the CPU waiting. Transfers to and from cache take less time than transfers to
and from RAM.
24
25
Secondary Memory
SLO # 2.3
26
Compare magnetic,
optical and solid state
storage devices;
SLO # 2.3.1
27
Optical Storage Vs Magnetic Storage
Speed SSDs are almost twice as fast Magnetic storage devices are slow at
at loading up and copying loading up and copying files.
files.
Noise SSDs are silent whereas HDDs Magnetic storage devices make spinning
make spinning disc sounds disc sounds.
29
Describe magnetic
storage and its types,
i.e. magnetic tapes
and disks;
SLO # 2.3.2
30
Magnetic storage
Hard drive
Floppy drive
Magnetic tape
31
Different types of Hard Disk
32
Hard Disk
The hard disk is the main storage device in your computer. It is a bit
like a filing cabinet: all of your data files and applications software are
stored on it.
The hard disk contains a number of metal platters which have been
coated with a special magnetic material. The data is stored in this
magnetic material. Thus, the hard disk is known as a magnetic storage
device.
In order to access the data, the platters spin many thousands of times
a second and a magnetic read and write head floats just above the
surface of the platter.
33
Tracks and Sectors
TRACKS
Each platter is broken into thousands of tightly packed concentric circles, known as
tracks. These tracks resemble the structure of annual rings of a tree. All the
information stored on the hard disk is recorded in tracks. Starting from zero at the
outer side of the platter, the number of tracks goes on increasing to the inner side.
Each track can hold a large amount of data counting to thousands of bytes.
SECTORS
Each track is further broken down into smaller units called sectors. As sector is the
basic unit of data storage on a hard disk. A single track typically can have
thousands of sectors and each sector can hold more than 512 bytes of data. A few
additional bytes are required for control structures and error detection and
correction.
34
Structure of
Hard disk
35
36
A floppy diskette is a
type of storage media,
capable of storing
electronic data, like a
computer file. The
floppy diskette was
first created in 1967
by IBM as an
alternative to buying
hard drives, which
were extremely
expensive at the time.
Floppy Disk
37
How Floppy Disk Stores Data
A floppy disk is a magnetic media and stores and reads data on the
floppy disk using a read head. When a 3.5" floppy diskette is inserted
into the drive, the metal slide door is opened and exposes the
magnetic disk in the floppy diskette. The read/write head uses a
magnetic polarity of 0 or 1. Reading this as binary data, the computer
can understand what the data is on the platter. For the computer to
write information to the platter, the read/write head aligns the
magnetic polarities, writing 0's and 1's that can be read later.
38
39
Magnetic Tape
Magnetic tape is a type of physical
storage media for different kinds of
data. It is considered an analog
solution. Magnetic tape has been a
major vehicle for audio and binary
data storage for several decades,
and is still part of data storage for
some systems.
42
Compact Disk
43
Digital Versatile
Disc
Short for digital versatile disc or digital
video disc, a DVD or DVD-ROM is
a disc capable of storing a significant
amount more data than a standard
compact disc. DVDs are widely used for
storing and viewing movies and other
data. The picture of the Matrix DVD
movie disc is an example of a DVD
movie. CD/DVD drives that utilize both of
these discs were first sold in 1997.
44
Blu-Ray
A Blu-ray disk (BD) is a high-capacity optical
disk medium developed for recording,
rewriting and playing back high definition
video. It can store large amounts of data
and was designed to supersede the DVD.
46
CD-ROM & DVD-ROM
47
CD-ROM and DVD-ROM
48
Uses of CD-ROMs and DVD-ROMs
49
Advantage/ Disadvantages of CD-ROMs and DVD-
ROMs
50
CD-R & DVD-R
51
CD-R and DVD-R
52
Uses of CD-R and DVD-R
53
Advantage/ Disadvantages of CD-R and DVD-R
54
CD-RW & DVD-RW
55
CD-RW and DVD-RW
56
Uses of CD-RW and DVD-RW
57
Advantage/ Disadvantages of CD-RW and DVD-
RW
58
DVD-RAM
59
DVD-RAM (Random Access Memory)
60
Uses of DVD-RAM
61
Advantage/ Disadvantages of DVD-RAM
62
Blu-ray RW
63
Blu-ray RW
64
Uses of Blu-ray RW
65
Advantage/ Disadvantages of Blu-ray RW
66
Describe solid state
storage devices (flash
memory and Secure
Digital (SD) cards);
SLO # 2.3.5
67
'Solid-State'?
68
Flash Memory
69
USB Memory Sticks
Memory sticks (or ‘thumb-drives’) have
made many other forms of portable storage
almost obsolete (why burn a CD or DVD
when you can more easily copy your files
onto a memory stick?).
70
Memory Cards
Many of our digital devices (cameras, mobile phones, MP3
players, etc.) require compact, non-volatile data storage. Flash
memory cards provide this and come in a variety of shapes and
sizes.
One of the most common formats used by digital cameras is the
SD Card. The cards store the digital images taken by the camera.
Mobile phones contain a Subscriber Identity Module (SIM) card
that contains the phone’s number, the phonebook numbers,
text messages, etc.
72
73