Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Memory System
Main memory
The memory unit that communicates directly with CPU is called main
memory.
Auxiliary memory
Devices that provide backup storage are called auxiliary memory.
They are used for storing system programs, large data files and other
backup information.
Contd.,
Only programs and data currently needed by the processor
reside in main memory.
Cache
Main Memory
Magnetic Disk
Magnetic Tape
Memory hierarchy
I/O processor manages the data transfers between auxiliary
memory and main memory.
The cache holds those parts of the program and data that are
most heavily used,
while the auxiliary memory holds those parts that are not
presently used by the CPU.
Moreover, the CPU has a direct access to both cache and main
memory but not to auxiliary memory.
Multi-programming
The static RAM is easier to use and has shorter read and
write cycles.
Read-only memory (ROM)
A portion of the main memory is constructed with ROM
chips.
ROM is also random access.
0 0 x x Inhibit High-impedence
0 1 x x Inhibit High-impedence
1 0 0 0 Inhibit High-impedence
1 1 x x Inhibit High-impedence
ROM chip
A ROM chip is organized
externally in a similar manner.
However, since the data can only
read, the data bus can only be in
an output mode.
The block diagram of a ROM chip
is shown here
CS1
Chip select 1
CS2
Chip select 2
512 x 8
8-bit data bus
ROM
AD 9
9-bit address
ROM chip
Internal binary cells in ROM occupy less
space than in RAM.
The nine address lines in the ROM chip
specify any one of the 512 bytes stored
in it.
The two chip select inputs must be CS1
= 1 and CS2 = 0 for the unit to operate.
Otherwise, the data bus is in high
impedance state.
Memory address map
The designer of of a computer system must calculate
the amount of memory required for the particular
application and assign it to either RAM or ROM.
Decoder
3 2 1 0
CS1
CS2
Data
RD 128 x 8
RAM 1
WR
AD7
CS1
CS2
Data
RD 128 x 8
RAM 2
WR
AD7
CS1
CS2
Data
RD 128 x 8
RAM 3
WR
AD7
CS1
CS2
Data
RD 128 x 8
RAM 4
WR
AD7
CS1
CS2 Data
1- 7
}
512 x 8
8 ROM
AD9
9
Auxiliary memory (Secondary storage)
Large storage requirements of most computer systems
are economically realized in the form of
magnetic disks,
optical disks and
magnetic tapes
which are usually referred to as secondary storage
devices.
Often both sides of the disk are used and several disks
may be stacked on one spindle with read/write heads
available on each surface.
When the file is accessed for a read, all disks can deliver
their data in parallel.
Then, if one disk drive fails, all read and write operations
are directed to its mirror drive.
Argument register(A)
A1 Aj An
K1 Kj Kn
Mi
Associative memory (contd.,)
The cells in the array are marked by the letter C with
two subscripts. The first subscript gives the word
number and the second specifies the bit position in
the word.
Thus cell Cij is the cell for bit j in word i.
A bit Aj in the argument register is compared with all
bits in column j of the array, provided that Kj = 1 .
This is done for all columns j = 1,2,….,n.
If a match occurs between all unmasked bits of the
argument and the bits in word I, the corresponding bit
Mi in the match register is set to 1.
Otherwise, Mi is cleared to 0.
Associative memory (contd.,)
The internal organization of a typical cell Cij is shown
here.
Aj Kj
Input
Write
R S
F ij Match To M i
Read logic
Output
Associative memory (contd.,)
It consists of a flip-flop storage element
Fij and the circuits for reading, writing,
and matching the cell.