Professional Documents
Culture Documents
Memory
A collection of cells,
each with a unique
physical address;
Both addresses and
contents are in
binary
1
Memory
◼ The Memory stores the instructions as
well as data
◼ The CPU has to be directed to the
address of the instruction codes
◼ The memory is connected to the CPU
through the following lines:
1. Address
2. Data
3. Control
Addressability
The Processor "sees" all the other parts of the computer,
(ROM & RAM, Backing storage, Input and Output devices)
as one continuous block of locations each with its own
unique address.
1. Address Bus
This is used by the Processor to indicate which location has
to be accessed.
5
Calculating maximum memory size
6
example:
Calculate the maximum memory size of a computer with a
24 bit address bus and a memory word size of 16 bits.
3. Control bus
The Control bus is a collective name for a number of discrete
lines each of which has a different function and operates at
different times. They are best viewed as a number of
individual lines.
Examples include: read line, write line, reset line, clock line,
interrupt line.
8
Memory Read
◼ In a memory read operation the CPU loads the
address onto the address bus.
◼ Most cases these lines are fed to a decoder
which selects the proper memory location.
◼ The CPU then sends a read control signal.
◼ The data stored in that location is transferred to
the processor via the data lines.
Memory Write