3. ünite
3. ünite
Chapter 3
A Top-Level View of
Computer Function and
Interconnection
• Hardwired program
– The result of the process of connecting the various components in the
desired configuration
I nstruction I nstruction
codes interpreter
Control
signals
General-purpose
Data arithmetic Results
and logic
functions
Instruction
Instruction
IR MBR
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
Figure 3.7
(a) No
interrupts
I /O 4 I /O 5
Program Command END
User 1 2a 2b 3a 3b
WRI TE WRI TE WRI TE
Program
(b) I nterrupts,
short I /O wait
I /O 4 I /O I nterrupt 5
Program Command Handler END
User 1 2 3
WRI TE WRI TE WRI TE
Program
(c) I nterrupts,
long I /O wait
I /O 4 I /O I nterrupt 5
Program Command Handler END
Figure 3.8
1
i
Interrupt
occurs here i+1
Interrupts
Disabled
Check for
Fetch Next Execute
START Interrupt;
Instruction Instruction Interrupts Process Interrupt
Enabled
HALT
1 1
Figure 3.10 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
Figure 3.11
I/O operation; 2 I/O operation
processor waits concurrent with
processor executing;
then processor
waits
5
5
2
4
4
3 I/O operation
concurrent with
I/O operation; processor executing;
processor waits then processor
waits
5
5
M ultiple M ultiple
operands results
Return for
string or
I nstruction complete, vector data
No
fetch next instruction interrupt I nterrupt
check
I nterrupt
I nterrupt
Figure 3.13
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
An I/O
module is
allowed to
exchange
Processor Processor data directly
reads an Processor reads data Processor with
instruction writes a unit from an I/O sends data memory
or a unit of of data to device via to the I/O without
data from memory an I/O device going
memory module through the
processor
using direct
memory
access
Bus
Typically consists of
Interconnection
multiple communication Computer systems contain a
lines number of different buses
that provide pathways
• Each line is capable of between components at
transmitting signals representing
binary 1 and binary 0 various levels of the
computer system hierarchy
System bus
• 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
Control lines
Data lines
I/O device
I/O Hub
Figure 3.17
DRAM
DRAM
Core Core
A B
DRAM
DRAM
Core Core
C D
I/O device
I/O device
I/O Hub
Routing Routing
Flits
Link Link
Figur e 3 .1 8 QPI La ye r s
Copyright © 2022 Pearson Education, Ltd. All Rights Reserved
Figure 3.19
COMPONENT A
Intel QuickPath Interconnect Port
Fwd Clk
Rcv Clk
Transmission Lanes Reception Lanes
Fwd Clk
Rcv Clk
#1 #2 #n
Figure 3.21
Gigabit PCIe
Memory
Ethernet
Chipset
PCIe–PCI PCIe
Memory
Bridge
PCIe
PCIe PCIe
Switch
PCIe PCIe
Physical Physical
Figure 3.23 B7 B6 B5 B4 B3 B2 B1 B0
B4 B5 B6 B7
B0 B1 B2 B3
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
system main memory and for legacy PCI devices, with
PCIe I/O devices
– Certain ranges of memory
reserved address ranges
addresses map into I/O used to address legacy I/O
devices devices
• 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
Appended by PL
2 Sequence number
DLLP
Figure 3.25
Created
by DLL
4
2 CRC
12 or 16 Header 1 End
0 or 4 ECRC
4 LCRC
1 STP framing