Lec02 - Computer Function and Interconnection
Lec02 - Computer Function and Interconnection
Lec02 - Computer Function and Interconnection
Contents
Computer components
Computer function
Interconnection structures
Bus interconnection
PCI Express
+ 3
Computer Components
Hardwired program
The result of the process of connecting the various components in
the desired configuration
+
Hardware
and Software
Approaches
5
Software
• A sequence of codes or instructions
• Part of the hardware interprets each instruction and Software
generates control signals
• Provide a new sequence of codes for each new
program instead of rewiring the hardware
Major components:
• CPU I/O
• Instruction interpreter
Components
• Module of general-purpose arithmetic and logic
functions
• I/O Components
• Input module
+ • Contains basic components for accepting data
and instructions and converting them into an
internal form of signals usable by the system
• Output module
• Means of reporting results
• Main memory
+ 6
Main Memory
MAR
Computer
Components:
Top Level
View
+ 9
Computer Function
Fetch Cycle
At the beginning of each instruction cycle the processor
fetches an instruction from memory
Data
Control
processing
Simple
Example
+
Example
of
Program
Execution
+ 16
Instruction fetch (if): Read instruction from its memory location into the
processor.
Operand fetch (of): Fetch the operand from memory or read it in from I/O.
Operand store (os): Write the result into memory or out to I/O.
+ 18
Classes of Interrupts
Virtually all computers provide a mechanism by which
other modules (I/O, memory) may interrupt the normal
processing of the processor.
Program Flow Control 19
1, 2, 3 – code segments
4 – I/O preparation
5 – code to complete I/O
+ 20
Program
Timing:
Short I/O
Wait
+ 23
Program
Timing:
Long I/O
Wait
24
Instruction Cycle State Diagram
With Interrupts
25
Transfer of
Control
Multiple
Interrupts
+
+ 26
Multiple Interrupts
Two approaches:
1. Disable other interrupts
Processor can and will ignore other interrupt request
signal while completing the current interrupt
If an interrupt occurs during this time, it generally
remains pending and will be checked by the processor
after the processor has enabled interrupts.
Nice and simple
2. Define priorities
Allow an interrupt of higher priority to cause a lower-
priority interrupt handler to be itself interrupted
+ Time Sequence of 27
E me
x p
Multiple Interrupts a l
+ 28
I/O Function
I/O module can exchange data directly with the processor
Computer
Modules
The interconnection structure must support the 30
An I/O
module is
allowed to
exchange
data
Processor Processor
directly
reads an Processor reads data Processor
with
instruction writes a from an I/O sends data
memory
or a unit of unit of data device via to the I/O
without
data from to memory an I/O device
going
memory module
through the
processor
using direct
memory
access
31
A communication pathway Signals transmitted by any one
connecting two or more device are available for
devices reception by all other devices
attached to the bus
• Key characteristic is that it is a
shared transmission medium • If two devices transmit during the I
same time period their signals will
overlap and become garbled n
n
e
Typically consists of multiple t
communication lines
• Each line is capable of transmitting
Computer systems contain a
number of different buses that
B c
signals representing binary 1 and
binary 0
provide pathways between e
components at various levels of
the computer system hierarchy u t
r
s i
c
System bus
• A bus that connects major o
computer components (processor,
memory, I/O)
The most common computer
interconnection structures are o
based on the use of one or
more system buses n
n
32
Data Bus
Data lines that provide a path for moving data among system
modules
Used to designate the source or Used to control the access and the
destination of the data on the use of the data and address lines
data bus
If the processor wishes to Because the data and address lines
read a word of data from are shared by all components there
memory it puts the address of must be a means of controlling their
the desired word on the use
address lines
Control signals transmit both
Width determines the maximum command and timing information
possible memory capacity of the among system modules
system
Timing signals indicate the validity
Also used to address I/O ports of data and address information
The higher order bits are
used to select a particular Command signals specify operations
module on the bus and the to be performed
lower order bits select a
memory location or I/O port
within the module
34
C
o a
n t
B
f i
u
i o
s
g n
u s
r
+ 36
Peripheral Component
Interconnect (PCI)
A popular high bandwidth, processor independent bus that can
function as a peripheral bus
Computer Function
and Interconnection
Lec02
PCI express
Computer components
PCI physical and logical
Computer function
architecture
Instruction fetch and
execute
Interrupts
I/O function
Interconnection structures
Bus interconnection
Bus structure
Multiple bus hierarchies
Elements of bus design