Components of a Computer
The Basic Computer Organization
The Five Major Components:
1. Processor (Central Processing Unit CPU)
2. Memory
3. System Bus
4. Input Devices I/O Bus Memory Bus
5. Output Devices Processor
I/O Devices:
The processor communicates with the outside
world through the I/O devices (e.g. printer,
monitor, disk drive, sensors, etc.)
The Basic Computer Organization
A Computer with a Direct Memory Access (DMA)
Controller:
I/O Bus Memory Bus
Processor
DMA
DTACK = 0 → Complete
DTACK = 0 → Complete
Location 2n-1
R/W
The number of address lines = n
# of addressable locations = 2n
Word length = m bits
# of lines in the data bus = m
Memory Types
Read / Write Memory (known as RAM):
Read and write operations are allowed,
Volatile memory:
The contents disappear when power is removed
Read Only Memory (ROM):
Contents can be read at any time but write
operation is allowed only once (by the
manufacture)
Non –Volatile memory
The contents are preserved even with power off
Memory Types
Programmable Read Only Memory (PROM):
Contents can be read at any time but write
operation is allowed only once (by the user),
Non –Volatile memory
Erasable Programmable Read Only Memory
(EPROM):
Similar to PROM but it can be erased and
reprogrammed as many times as necessary,
Information is erased by Ultra Violet light (slow),
Non –Volatile memory
Memory Types
Electrically Erasable Programmable Read
Only Memory (EEPROM):
Similar to EPROM except that it can be erased
by electrical signals (faster)
Select
Flags ALU Operation
Control Lines
Function Select Lines:
Select one of the functions that the ALU can perform
Flags:
The flag bit consist of Carry, Sign, overflow, etc…
Size of an ALU:
Indicates the size of an operation it can perform,
Communication
Modem, and
Network Interface Card (NIC)
The External Devices (Peripherals)
Typical I/O Data Rates
I/O Steps
Steps for Input Operation:
CPU checks I/O module device status
I/O module returns status
If ready, CPU requests data transfer
I/O module gets data from device
I/O module transfers data to CPU