Professional Documents
Culture Documents
William Stallings Computer Organization and Architecture 10 Edition
William Stallings Computer Organization and Architecture 10 Edition
William Stallings
Computer Organization
and Architecture
10th Edition
Hardwired program
The result of the process of connecting the various components in the
desired configuration
and Software
Instruction
Approaches
Instruction
codes interpreter
Control
signals
General-purpose
Data arithmetic Results
and logic
functions
Major components:
• CPU I/O
• Instruction interpreter
• Module of general-purpose arithmetic and logic
Components
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
MAR
I/O AR
Data
Execution
unit Data
I/O BR Data
Data
PC = Program counter
Buffers IR = Instruction register
MAR = Memory address register
MBR = Memory buffer register
I/O AR = Input/output address register
I/O BR = Input/output buffer register
Processor- Processor-
memory I/O
Data
Control processing
0 1 15
S Magnitude
Multiple Multiple
operands results
Table 3.1
Classes of Interrupts
1 4 1 4 1 4
Interrupt Interrupt
2b Handler Handler
END END
3a
3 3
3b
(a) No interrupts (b) Interrupts; short I/O wait (c) Interrupts; long I/O wait
i
Interrupt
occurs here i + 1
Interrupts
Disabled
Check for
Fetch Next Execute
START Interrupt;
Instruction Instruction Interrupts Process Interrupt
Enabled
HALT
1 1
4 4
I/O operation
I/O operation;
processor waits 2a concurrent with
processor executing
5 5
2b
2
4
I/O operation
4 3a concurrent with
processor executing
I/O operation;
processor waits 5
5 3b
1 1
4 4
5
2
4
4
3 I/O operation
concurrent with
I/O operation; processor executing;
processor waits then processor
waits
5
5
Multiple Multiple
operands results
No
Instruction complete, Return for string interrupt
fetch next instruction or vector data
Interrupt
handler Y
Interrupt
User program handler X
Interrupt
handler Y
Disk
interrupt service routine
Data N–1
External
Address M Ports Data
Internal
Data Interrupt
Signals
External
Data
Instructions Address
Control
Data CPU Signals
Interrupt Data
Signals
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
conn
Typically consists of multiple
communication lines Computer systems contain a
ectio
• Each line is capable of transmitting
signals representing binary 1 and
binary 0
number of different buses that
provide pathways between
components at various levels of
n
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
Control lines
Data lines
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
I/O device
I/O Hub
DRAM
DRAM
Core Core
A B
DRAM
DRAM
Core Core
C D
I/O device
I/O device
I/O Hub
Fig u re 3 . 1 7 Mu lt ic o re Co n f ig u ra t io n U s in g QP I
Routing Routing
Flits
Link Link
Fi g u re 3 .1 8 Q P I La y e rs
Rcv Clk
Transmission Lanes Reception Lanes
Fwd Clk
Rcv Clk
Fi g u re 3 . 1 9 P h y s i c a l I n t e r f a c e o f t h e I n t e l Q P I I n t e rc o n n e c t
Gigabit PCIe
Memory
Ethernet
Chipset
PCIe–PCI PCIe
Memory
Bridge
PCIe
PCIe PCIe
Switch
PCIe PCIe
Fig u re 3 . 2 1 Ty p ic a l Co n fig u ra t io n Us in g P CI e
Physical Physical
Fi g u r e 3 .2 2 P CI e P r o t o c o l La y e r s
B5 B1 128b/ PCIe
130b lane 1
B7 B6 B5 B4 B3 B2 B1 B0
B6 B2 128b/ PCIe
130b lane 2
128b/ PCIe
B7 B3
130b lane 3
Differential
Scrambler Receiver
8b 1b Clock recovery
circuit
Data recovery
128b/130b Encoding circuit
130b 1b
1b 130b
Transmitter Differential
128b/130b Decoding
Driver
128b
D+ D–
Descrambler
(a) Transmitter
8b
(b) Receiver
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
Appended by PL
2 Sequence number
DLLP
Created
by DLL
4
2 CRC
12 or 16 Header 1 End
0 or 4 ECRC
4 LCRC
1 STP framing
Fig u re 3 . 2 5 P CI e P ro t o c o l D a t a Un it Fo rm a t