Professional Documents
Culture Documents
William Stallings
Computer Organization
and Architecture
10th Edition
© 2016 Pearson Education, Inc., Hoboken,
NJ. All rights reserved.
+ Chapter 3
A Top-Level View of
Computer Function and
Interconnection
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
+
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
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
ni
+ Data
Sequence of
arithmetic
and logic
functions
Results
Hardware
and Instruction Instruction
Software
codes
interpreter
Approaches
Control
signals
General-purpose
Data arithmetic Results
and logic
functions
MA R
I/O address I/O buffer
register (I/OAR) register (I/OBR)
• Specifies a • Used for the
particular I/O exchange of
+ device data between
an I/O module
and the CPU
MBR
PC MAR Bus 2
Instruction
Instruction
Instruction
IR MBR
I/O AR
Data
Execution Data
unit 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
Multiple Multiple
results
operands
Table 3.1
Classes of
Interrupts
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
User I/O User I/O User I/O
Program Program Program Program Program Program
1 4 1 4 1 4
5
2a
END
2 2
Interrupt Interrupt
2b
Handler Handler
WRITE WRITE 5 WRITE 5
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 Instruction Interrupts Process
Interrupt;
Interrupt
Instruction Enabled
HALT
4 4
I/O operation
I/O operation;
2a concurrent with
processor waits
processor executing
5 5
2b
2
4
I/O operation
4 3a concurrent with
processor executing
I/O operation;
processor waits 5
5 3b
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 or vector data
instruction
Interrupt
handler
Y
Interrupt
User program handler
X
Interrupt
handler
Y
15
0 t=
t =1
t = 25
t= t = 25 Disk
40
interrupt service routine
t=
35
Data N–1
External
Address M Ports Data
Internal
Data Interrupt
Signals
External
Data
Instructions Address
Control
Data CPU Signals
Interrupt Data
Signals
n
e
Typically consists of
Computer systems contain t
B c
multiple communication
lines a number of different
buses that provide
• Each line is capable of
pathways between
transmitting signals representing
u t
binary 1 and binary 0 components at various
levels of the computer
system hierarchy
e
System bus
• A bus that connects major
The most common s oi
ro
computer components (processor,
memory, I/O) computer interconnection
structures are based on the
use of one or more system
buses n
n
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Data Bus
Data lines that provide a path for moving data among system
modules
Control lines
Data lines
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
Flits
Routing Routing
Physical Physical
Rcv Clk
Transmission Lanes Reception Lanes
Fwd Clk
Rcv Clk
Gigabit PCIe
Memory
Ethernet
Chipset
PCIe–PCI PCIe
Memory
Bridge
PCIe
PCIe PCIe
Switch
PCIe PCIe
byte stream
128b/ PCIe
B5 B1
130b lane 1
B7 B6 B5 B4 B3 B2 B1 B0
128b/ PCIe
B6 B2
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
Message
Configuration
This address space is for
This address space enables control signals related to
the TL to read/write interrupts, error
configuration registers handling, and power
associated with I/O management
devices
Appended by PL
2 Sequence number
DLLP
Created
4
DLL
by
2 CRC
12 or 16 Header 1 End
0 or 4 ECRC
4 LCRC
1 STP framing