William Stallings Computer Organization and Architecture 9 Edition
William Stallings Computer Organization and Architecture 9 Edition
William Stallings
Computer Organization
and Architecture
9th Edition
+
Chapter 3
A Top-Level View of Computer
Function and Interconnection
+
Computer Components
Contemporary computer designs are based on concepts developed by
John von Neumann at the Institute for Advanced Studies, Princeton
Hardwired program
The result of the process of connecting the various components in the
desired configuration
+
von Neumann architecture
+
Hardware
and Software
Approaches
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
Memory address Memory buffer
MEMORY
register (MAR) register (MBR)
• Specifies the address • Contains the data to
in memory for the be written into
next read or write memory or receives
the data read from
memory
MAR
Processor- Processor-
memory I/O
Data
Control processing
Program
Timing:
Short I/O
Wait
+
Program
Timing:
Long I/O
Wait
Program Flow Control
+
Instruction Cycle With Interrupts
Instruction Cycle State Diagram
With Interrupts
+
Transfer of Control via Interrupts
Transfer of
Control
Multiple
Interrupts
+
+ Time Sequence of Ex
Multiple Interrupts am
ple
+
I/O Function
I/O module can exchange data directly with the processor
An I/O
module is
allowed to
exchange
Processor
Processor data directly
reads an Processor Processor
reads data with memory
instruction writes a unit sends data to
from an I/O without
or a unit of of data to the I/O
device via an going
data from memory device
I/O module through the
memory
processor
using direct
memory
access
A communication pathway Signals transmitted by any one
connecting two or more devices device are available for reception
• Key characteristic is that it is a shared by all other devices attached to Bus
transmission medium the bus
• If two devices transmit during the same
time period their signals will overlap
Inte
and become garbled
r
con
Typically consists of multiple
nect
communication lines
• Each line is capable of transmitting
Computer systems contain a
number of different buses that
ion
signals representing binary 1 and provide pathways between
binary 0 components at various levels of
the computer system hierarchy
System bus
• A bus that connects major computer
components (processor, memory, I/O)
The most common computer
interconnection structures are
based on the use of one or more
system buses
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 data bus use of the data and address lines
If the processor wishes to read a
word of data from memory it puts
Because the data and address lines
the address of the desired word on are shared by all components there
the address lines must be a means of controlling their
use
Width determines the maximum
possible memory capacity of the Control signals transmit both
system command and timing information
among system modules
Also used to address I/O ports
Timing signals indicate the validity
The higher order bits are used to
of data and address information
select a particular module on the
bus and the lower order bits select Command signals specify operations
a memory location or I/O port
to be performed
within the module
Bus Interconnection Scheme
Bus
Confi
gurat
ions
+
Elements of Bus Design
Timing of
Synchronous
Bus Operations
Timing of
Asynchronous
Bus
Operations
+
Point-to-Point Interconnect
Principal reason for change was At higher and higher data rates
the electrical constraints it becomes increasingly difficult
encountered with increasing the to perform the synchronization
frequency of wide synchronous and arbitration functions in a
buses timely fashion
Memory I/O
The memory space includes This address space is used for
system main memory and PCIe legacy PCI devices, with
I/O devices reserved address ranges used to
Certain ranges of memory address legacy I/O devices
addresses map into I/O devices
Configuration Message
This address space enables the This address space is for control
TL to read/write configuration signals related to interrupts,
registers associated with I/O error handling, and power
devices management
+
PCIe
Protocol
Data
Unit
Format
+
TLP Memory Request Format
+ Summary A Top-Level View of
Computer Function and
Interconnection
Chapter 3
Point-to-point interconnect
Computer components
QPI physical layer
Computer function
QPI link layer
Instruction fetch and execute
QPI routing layer
Interrupts
QPI protocol layer
I/O function
Interconnection structures PCI express
Bus interconnection PCI physical and logical
Bus structure architecture
Multiple bus hierarchies PCIe physical layer
Elements of bus design PCIe transaction layer
PCIe data link layer