Chapter 3 - A Top-Level View of Computer Function and Interconnection
Chapter 3 - A Top-Level View of Computer Function and Interconnection
Computer Design
Spring 2023
+
William Stallings
Computer Organization
and Architecture
8th Edition
3
+
Chapter 3
A Top-Level View of Computer
Function and Interconnection
Spring 2023
+ 4
Outline
◼ Computer Components
◼ Computer Function
◼ Instruction Fetch and Execute
◼ Interrupts
◼ I/O Function
◼ Interconnection Structures
◼ Bus Interconnection
◼ Bus Structure
◼ Multiple-Bus Hierarchies
◼ Elements of Bus Design
◼ PCI
◼ Bus Structure
◼ PCI Commands
◼ Data Transfers
◼ Arbitration
Spring 2023
+ 5
Computer Components
◼ Hardwired program
◼ The result of the process of connecting the various components in
the desired configuration
Spring 2023
+
Hardware
and Software
Approaches
Spring 2023
7
Software
• A sequence of codes or instructions Software
• Part of the hardware interprets each instruction and
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
Spring 2023
8
MAR
Spring 2023
9
Computer
Components:
Top Level
View
Spring 2023
+ 10
Computer Function
Basic Instruction Cycle
Spring 2023
+ 11
Fetch Cycle
◼ At the beginning of each instruction cycle the processor
fetches an instruction from memory
Spring 2023
Action Categories
12
Processor- Processor-
memory I/O
Data
Control
processing
Spring 2023
+ 13
Spring 2023
+
Example
of
Program
Execution
Spring 2023
+ 15
Spring 2023
+ 16
Interrupts
Classes of Interrupts
Spring 2023
Program Flow Control 17
Spring 2023
+ 18
Spring 2023
+ 19
Spring 2023
+ 20
Program
Timing:
Short I/O
Wait
Spring 2023
+ 21
Program
Timing:
Long I/O
Wait
Spring 2023
Instruction Cycle State Diagram 22
With Interrupts
Spring 2023
23
Transfer of
Control
Multiple
Interrupts
Spring 2023
+ Time Sequence of 24
Multiple Interrupts
Spring 2023
+ 25
I/O Function
◼ I/O module can exchange data directly with the processor
Spring 2023
+ 26
Interconnection Structures
Spring 2023
27
+ Computer
Modules
Spring 2023
The interconnection structure must support the 28
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
Spring 2023
29
A communication pathway Signals transmitted by any
connecting two or more one device are available for
devices reception by all other
• Key characteristic is that it is
devices attached to the bus
I
n
a shared transmission • If two devices transmit during the
same time period their signals will
medium overlap and become garbled
n
e
Typically consists of
t
multiple communication
Computer systems contain a
number of different buses B c
lines
• Each line is capable of
that provide pathways
between components at e
transmitting signals various levels of the u t
r
representing binary 1 and computer system hierarchy
binary 0
s i
c
System bus
The most common o
• A bus that connects
major computer
computer interconnection
structures are based on the
o
components (processor, use of one or more system n
memory, I/O)
Spring 2023
buses
n
30
Data Bus
◼ Data lines that provide a path for moving data among system
modules
Spring 2023
+ Address Bus Control Bus
31
◼ 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
◼ Address width determines the command and timing information
maximum possible memory among system modules
capacity of the 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
Spring 2023
32
Control Bus
◼ Typical control lines include:
◼ Memory write: Causes data on the bus to be written into the
addressed location
◼ Memory read: Causes data from the addressed location to be placed
on the bus
◼ I/O write: Causes data on the bus to be output to the addressed I/O
port
◼ I/O read: Causes data from the addressed I/O port to be placed on
the bus
◼ Transfer ACK: Indicates that data have been accepted from or
placed on the bus
◼ Bus request: Indicates that a module needs to gain control of the bus
◼ Bus grant: Indicates that a requesting module has been granted
control of the bus
◼ Interrupt request: Indicates that an interrupt is pending
◼ Interrupt ACK: Acknowledges that the pending interrupt has been
recognized
◼ Clock: Is used to synchronize operations
◼ Reset: Initializes all modules
Spring 2023
33
Spring 2023
34
C
o a
n t
B
f i
u
i o
s
g n
u s
Spring 2023
r
+ 35
Spring 2023
+ 36
Spring 2023
+ 37
◼ BUS WIDTH:
◼ The width of the data bus has an impact on system performance, The wider the
data bus, the greater the number of bits transferred at one time.
◼ The width of the address bus has an impact on system capacity, the wider
the address bus, the greater the range of locations that can be referenced.
Spring 2023
+ 38
◼ Figure 3.18 shows a typical, but simplified, timing diagram for synchronous read and write
operations :
Spring 2023
39
Timing of
1
Synchronous
Bus
2 Operations
4
3
5
Spring 2023
40
1
2
3 Timing of
4 Asynchronous
Bus
Operations
2
3
Spring 2023
41
Bus Data
Transfer
Types
Spring 2023
+ 42
Peripheral Component
Interconnect (PCI)
◼ A popular high bandwidth, processor independent bus that can
function as a mezzanine or peripheral bus
◼ Delivers better system performance for high speed I/O subsystems
◼ The current standard allows the use of up to 64 data lines at 66 MHz.
◼ PCI is specifically designed to meet economically the I/O
requirements of modern systems;
◼ it requires very few chips to implement and supports other buses
attached to the PCI bus.
◼ PCI is designed to support a variety of microprocessor-
based configurations, including both single- and multiple-
processor systems.
◼ It makes use of synchronous timing and a centralized arbitration
scheme.
Spring 2023
+ 43
Example PCI
Configurations
Spring 2023
+ 44
Spring 2023
+ 45
PCI Commands
Data Transfers
c
a
a
c
h
d
d
Spring 2023
+ 47
Arbitration
Spring 2023
+ 48
Arbitration
Spring 2023
+ 49
Spring 2023
+ Summary
50
A Top-Level View of
Computer Function
and Interconnection
Chapter 3
◼ PCI express
◼ Computer components
◼ PCI physical and logical
◼ Computer function
architecture
◼ Instruction fetch and
◼ PCI commands
execute
◼ PCI data transfer
◼ Interrupts
◼ I/O function
◼ Interconnection structures
◼ Bus interconnection
◼ Bus structure
◼ Multiple bus hierarchies
◼ Elements of bus design
Spring 2023