Comp. Arch C3 - Func. and Interconn
Comp. Arch C3 - Func. and Interconn
William Stallings
Computer Organization
and Architecture
9th Edition
2
+
Chapter 3
A Top-Level View of Computer
Function and Interconnection
+ 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 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
6
MAR
Computer
Components:
Top Level
View
+ 8
Fetch Cycle
At the beginning of each instruction cycle the processor
fetches an instruction from memory
Processor- Processor-
memory I/O
Data
Control
processing
Classes of Interrupts
Program Flow Control 15
+ 16
Program
Timing:
Short I/O
Wait
+ 19
Program
Timing:
Long I/O
Wait
Instruction Cycle State Diagram 20
With Interrupts
21
Transfer of
Control
Multiple
Interrupts
+
+ Time Sequence of 22
E me
Multiple Interrupts x p
a l
+ 23
I/O Function
I/O module can exchange data directly with the processor
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
26
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 a devices attached to the bus
I
n
shared transmission medium • If two devices transmit during the
same time period their signals will
overlap and become garbled
n
e
Typically consists of multiple
t
communication lines Computer systems contain a
number of different buses B c
• Each line is capable of
transmitting signals representing
that provide pathways
between components at e
binary 1 and binary 0
various levels of the u t
r
computer system hierarchy
s i
c
System bus
o
o
• A bus that connects major The most common computer
computer components (processor,
memory, I/O) interconnection structures
are based on the use of one
or more system buses n
n
27
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
29
C
o a
n t
B
f i
u
i o
s
g n
u s
r
+ 31
Timing of
Synchronous
Bus
Operations
33
Timing of
Asynchronous
Bus
Operations
+ 34
Point-to-Point Interconnect
Multicore
Configuration
Using
QPI
37
QPI Layers
+ 38
Peripheral Component
Interconnect (PCI)
A popular high bandwidth, processor independent bus that can
function as a mezzanine or peripheral bus
PCIe
Transmit
and
Receive
Block
Diagrams
Receives read and write requests from
+
the software above the TL and creates
request packets for transmission to a
destination via the link layer
Configuration Message
This address space enables This address space is for
the TL to read/write control signals related to
configuration registers interrupts, error handling,
associated with I/O devices and power management
49
PCIe
Protocol
Data
Unit
Format
+ 51