Professional Documents
Culture Documents
Csa Chapter 1
Csa Chapter 1
• CU – Control Unit
interprets the instructions in memory and causes them to be
executed.
24
The concept of cache memory
25
Cache Memory
26
Memory Organization in a computer system
Auxiliary Memory
Magnetic
Tapes
I/O Main
Processor Memory
Magnetic
Tapes
Cache
CPU
Memory
27
Memory cache is a portion of the high-speed
SRAM (static random access memory) and is
effective because most programs access the same
data or instructions repeatedly.
37
I/O bus
• I/O buses connect the CPU to all other components,
except RAM. Data are moved on the buses from one
component to another, and data from other
components to the CPU and RAM.
• The I/O buses differ from the system bus in speed.
Their speed will always be lower than the system bus
speed. Over the years, different I/O buses have been
developed.
• As mentioned earlier, I/O buses are really extensions
to the system bus. On the motherboard, the system
bus ends in a controller chip, which forms a bridge to
the I/O buses. 38
Examples of I/O Bus
39
I/O Interface
• Input-output interface provides a method for
transferring information between internal
storage and external I/O devices.
• Peripherals connected to a computer need
special communication links for interfacing
them with the central processing unit.
• The purpose of the communication link is to
resolve the differences that exist between the
central computer and each peripheral.
40
There are 2 types of interfaces:
• Parallel interface
• Serial interface
41
Parallel interface
• there are multiple lines connecting
the I/O module and the peripheral,
and multiple bits are transferred
simultaneously that is all the bits of a
word are transferred simultaneously
over the data bus.
• A parallel Interface is commonly
used for higher-speed peripherals.
Like tape and disk where as serial is
used for printer and terminals 42
Serial interface
• In serial interface there is only one
line used to transmit data and bits
are transmitted one at a time.
43
Examples of I/O Interface
44
I/O Module Diagram
Data
Processor Address
Control
46
Asynchronous Serial Transfer
49
Isolated I/O versus Memory Mapped
I/O
• The isolated I/O method isolates memory and
I/O address so that memory address values
are not affected by interface address
assignment since each has its own address
space.
• The memory-mapped I/O configuration is to
use the same address space for both memory
and I/O. This is the case computer employ
only one set of read and write signal and do
not distinguish between and I/O address.
50
2. Isolated I/O versus Memory
Mapped I/O (Cont.)
Enter
NO
Done?
YES
Continue
51
I/O Data Transfer Modes
• There are THREE (3) method for
managing input and output:
–Programmed I/O (also known as
polling)
–Interrupt-driven I/O
–Direct Memory Access (DMA)
52
1. Programmed I/O
• In programmed I/O, the CPU polls each device
to see if it needs servicing. Enter
NO
Disk ready?
YES
NO
Done?
YES
Continue 53
2. Interrupt-Driven I/O
• Interrupt
- unexpected command that require
immediate attention from the CPU when it is
ready to exchange data(input) or to produce
output.
• Interrupt Request Line(IRQ).
The hardware line use to send the interrupt
signal to cpu.
54
3. Direct Memory Access (DMA)
A direct memory access (DMA) device can transfer
data directly to and from memory rather than using
the CPU as an intermediary, and can thus relieve
congestion on the system bus.
without with
DMA DMA
Bus
55
Differentiation between synchronous
& asynchronous.
56
57
END OF CHAPTER 1
58