Professional Documents
Culture Documents
MEMORY HIERARCHY
Auxiliary memory
Magnetic
taps
I/O
processor
Main
memory
Magnetic
disks
CPU
Cache
memory
MEMORY HIERARCHY
SYSTEM
GOAL
MEMORY CAPACITY
2n x m
n address bits = 2n addresses
m data bits
m is the width of the data path
DATA BUS
Carries data between the CPU and memory or I/O devices
Bi-directional
Data transferred out of the CPU for write operations
Data transferred into the CPU for read operations
Typical sizes: 8, 16, 32, 64 lines
Signal names:
D0, D1, D2, D3, etc.
ADDRESS BUS
Carries an address from the CPU to Memory or I/O devices
Unidirectional
The address is always supplied by the CPU
Typical sizes: 16, 20, 24 lines
Signal names:
A0, A1, A2, A3, etc.
CONTROL BUS
MEMORY UNIT
MAIN MEMORY
Memory implementations
RAM random access memory
Static RAM
Dynamic RAM
ROM read-only memory
The ROM portion of main memory is needed for storing an initial program
called bootstrap loader, witch is to start the computer software operating
when power is turned off
Memory Address Map is a pictorial representation of assigned address space for each chip in the
system
Assume that a computer system needs 512 bytes of RAM and 512 bytes of ROM
The RAM have 128 byte and need seven address lines, where the ROM have 512 bytes and need 9
address lines
BLOCK DIAGRAM
When line 10 is 0, CPU selects a RAM. And when its 1, it selects the
ROM
AUXILIARY MEMORY
Read-write head
Positioned very close to the platter surface (almost touching it)
Reads or writes magnetically encoded information.
Only one head reads /writes at a time.
To read/write a sector
disk arm swings to position head on right track
platter spins continually; data is read/written as sector passes under
Head-disk
assemblies
arm assembly is moved in or out to position a head on a desired track. Tracks under heads make a
cylinder (imaginary!).
A cylinder
the information on a cylinder can be accessed without moving the read/write arm.
COMPONENTS OF MAGNETIC
DISK
Access time average time required to reach a storage location in memory and obtain its
contents.
Access time = seek time + transfer time
Seek time time required to position the read write head to a location
Average seek time is 1/2 the worst case seek time.
Would be 1/3 if all tracks had the same number of sectors, and we ignore the time to
start and stop arm movement
4 to 10 milliseconds on typical disks
Transfer time time required to transfer data to and from the device.
4 to 8 MB per second is typical
Rotational latency time it takes for the sector to be accessed to appear under the head.
Average latency is 1/2 of the worst case latency.
MAGNETIC TAPE
Magnetic
tape units can be
stopped, started to move forward or
in reverse or can be rewound.
Information is recorded in blocks
referred to as records.
Gaps of unrecorded tape are
inserted between records where the
tape can be stopped.
The tape starts moving while in a
gap and attains its constant speed
by the time it reaches the next
record.
ASSOCIATIVE MEMORY
is location where
associated content is stored.
the
BLOCK DIAGRAM
Argument register
(A)
Key register (K)
input
read
write
Associative
memory array
& logic
M words
N bits per
word
output
EXAMPLE
Suppose that the argument register A and the key register K have the bit
configuration shown below. Only the three leftmost bits of A are compared
with memory words because K has 1s in these positions.
A
101 111100
K
111 000000
Word 1 100 111100
Word 2 101 000001
no match
match
The match logic for each word I in an associative memory can be expressed
by boolean function as.