Computer Organization: Foundations of Computer Science à Cengage Learning
Computer Organization: Foundations of Computer Science à Cengage Learning
Organization
Foundations of Computer Science ã Cengage Learning 1
We divide a computer into three subsystem:
1. Central Processing Unit (CPU).
2. Main Memory .
3. the input/output subsystem.
6
Memory types
Two main types of memory exist:
1. RAM (Random access memory)
A. Static RAM (SRAM).
B. Dynamic RAM (DRAM).
2. ROM (Read-only memory): written by
manufacturers, the CPU can read from ROM but
cannot write into it.
A. Programmable read-only memory (PROM).
B. Erasable programmable read-only memory
(EPROM).
C.Electrically erasable programmable read-only
memory (EEPROM).
7
Memory Hierarchy
Computer users need a lot of memory, especially memory that is
very fast and inexpensive. This demand is not always possible to
satisfy—very fast memory is usually not cheap. A compromise
needs to be made. The solution is hierarchical levels of memory.
8
Cache memory
Cache memory is faster than main memory, but slower
than the CPU and its registers. Cache memory, which is
normally small in size, is placed between the CPU and
main memory.
9
3. INPUT/OUTPUT SUBSYSTEM
This subsystem allows a computer to communicate with
the outside world and to store programs and data even
when the power is off. Input/output devices can be
divided into two broad categories:
1. non-storage devices (they cannot store
information) for examples:
1. Keyboard, Mouse.
2. Monitor.
3. Printer, …etc.
2. storage devices (can store large amounts of
information to be retrieved at a later time)
auxiliary storage devices.
1. Magnetic. 2. optical. 10
Magnetic storage device
Magnetic storage device use magnetization to store bits
of data. If a location is magnetized, it represent 1 and if
not magnetized then it represent 0. examples
1. Magnetic disk .
2. Magnetic tape.
11
Optical storage devices
1. CD[Compact Disk].
3. DVD.
12
SUBSYSTEM INTERCONNECTION
it is explore how the three subsystems ( CPU, Memory,
I/O) are interconnected. The interconnection plays an
important role because information needs to be
exchanged between them.
•Connecting CPU and memory
They connected by three groups of connections, each
called a bus:
1. data bus.
2. address bus
3. control bus
13
Connecting I/O devices
It cannot be connected directly to the buses that connect
the CPU and memory, because the nature of I/O devices
is different from the nature of CPU and memory. I/O
devices are electromechanical, magnetic, or optical
devices, whereas the CPU and memory are electronic
devices. I/O devices also operate at a much slower speed
than the CPU/memory. There is a need for some sort of
intermediary
to handle this difference. Input/output devices are
therefore attached to the buses through input/output
controllers or interfaces. There is one specific controller
for each input/output device.
14
Connecting I/O devices to the buses
15
Controller or Interface bridge the gap between the nature
of I/O devices ,CPU and the memory. Several kinds of
controllers are in use.
The most common ones today are
1.SCSI (Small Computer System Interface)
2.Firewire
3.USB (Universal Serial Bus)
16