Vision de Alto Nivel Del Computador V5 PDF
Vision de Alto Nivel Del Computador V5 PDF
William Stallings
Computer Organization
and Architecture
9th Edition
Chapter 3
A Top-Level View of Computer
Function and Interconnection
LEARNING OBJECTIVES
◼ Hardwired program
◼ The result of the process of connecting the various components in
the desired configuration
+
Sequence of
Data arithmetic Results
Hardware
and logic
functions
Approaches
I nstruction I nstruction
codes interpreter
Control
signals
General-purpose
Data arithmetic Results
and logic
functions
MAR
I /O M odule n–2
n–1
PC = Program counter
Buffers IR = I nstruction register
M AR = M emory address register
M BR = M emory buffer register
I /O AR = I nput/output address register
I /O BR = I nput/output buffer register
Processor- Processor-
memory I/O
Data
Control
processing
0 1 15
S Magnitude
M ultiple M ultiple
operands results
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
M
+
Instruction Cycle With Interrupts
I nterrupts
Disabled
Check for
Fetch Next Execute
START I nterrupt;
I nstruction I nstruction I nterrupts Process I nterrupt
Enabled
HALT
Time
+ 1 1
4 4
I/O operation
I/O operation;
processor waits 2a concurrent with
processor executing
5 5
2b
2
4 Program
4 3a
I/O operation
concurrent with
processor executing
Timing:
Short I/O
I/O operation;
processor waits 5
5 3b
Wait
(b) With interrupts
3
+ 1 1
4 4
2
5 Program
4 Timing:
Long I/O
4
3 I/O operation
concurrent with
Wait
I/O operation; processor executing;
processor waits then processor
waits
5
5
M ultiple M ultiple
operands results
No
I nstruction complete, Return for string interrupt
fetch next instruction or vector data
Transfer of
I nterrupt
Control
handler Y
I nterrupt Multiple
Interrupts
User program handler X
I nterrupt
handler Y
+
15
0 t=
t =1
t = 25
t= t = 25 Disk
40 interrupt service routine
t=
35
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
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
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
Bus Interconnection Scheme
Control lines
Data lines
M ain
M emory
Local I /O
controller C
System Bus
o a
Network Expansion
n t
bus interface Serial
SCSI
M odem
Expansion Bus
B
(a) Traditional Bus Architecture f i
M ain
u
i o
M emory
Cache
s
Local Bus System Bus
Processor /Bridge
FAX Expansion
bus interface Serial
u s
r
M odem
Expansion Bus
Clock Timing of
Status
lines
Status signals Synchronous
Address
lines
Stable address Bus
Address
enable
Operations
Data
Valid data in
Read lines
cycle
Read
Data
Valid data out
Write lines
cycle
Write
Address
lines Stable address
Read
Timing of
Asynchronous
Data
lines Valid data
Acknowledge
Address
lines Stable address
Data
lines Valid data
Write
Acknowledge
I /O device
I /O Hub
Multicore
Configuration
DRAM
DRAM
Core Core
A B
Using
QPI
DRAM
DRAM
Core Core
C D
I /O device
I /O device
I /O Hub
Packets
Protocol Protocol
Routing Routing
Flits
Link Link
Figu r e 3 .2 1 QPI La ye r s
+
Physical Interface of the Intel QPI
Interconnect
COM PONENT A
I ntel QuickPath I nter connect Port
Fwd Clk
Rcv Clk
Transmission Lanes Reception Lanes
Fwd Clk
Rcv Clk
PCIe Gigabit
Ethernet
PCI e
M emory
Configuration
Chipset
PCI e–PCI PCI e
M emory
Bridge
PCI e
PCI e PCI e
Switch
PCI e PCI e
Transaction layer
packets (TLP)
Transaction Transaction
Physical Physical
B4 B0 128b/ PCI e
130b lane 0
byte stream
B5 B1 128b/ PCI e
130b lane 1
B7 B6 B5 B4 B3 B2 B1 B0
B6 B2 128b/ PCI e
130b lane 2
B7 B3 128b/ PCI e
130b lane 3
Differential
Scrambler Receiver
8b 1b Clock recovery
circuit
128b/130b Encoding
Data recovery
circuit
PCIe
130b 1b
Transmit
Parallel to serial Serial to parallel
and
1b 130b
Receive
Block
Transmitter Differential
128b/130b Decoding
Driver
Diagrams
128b
D+ D–
Descrambler
(a) Transmitter
8b
(b) Receiver
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
PCIe TLP Transaction Types
Address Space TLP Type Purpose
Memory Read Request
Transfer data to or from a location in the
M emory Memory Read Lock Request system memory map.
Memory Write Request
I/O Read Request Transfer data to or from a location in the
I /O
I/O Write Request system memory map for legacy devices.
Config Type 0 Read Request
Config Type 0 Write Request Transfer data to or from a location in the
Configuration
Config Type 1 Read Request configuration space of a PCIe device.
Config Type 1 Write Request
Message Request Provides in-band messaging and event
M essage reporting.
Message Request with Data
Completion
M emory, I /O, Completion with Data
Returned for certain requests.
Configuration Completion Locked
Completion Locked with Data
Number
+
of octets
1 STP framing 1 Start
Appended by PL
2 Sequence number
DLLP
Created
by DLL
4
2 CRC
12 or 16 Header 1 End
Unit
Format
0 or 4 ECRC
4 LCRC
1 STP framing
Traffic T E
R Fmt Type R R Attr R Length
Class E P
Last First
16 octets
Requestor I D Tag
DW BE DW BE
Address [63:32]
Address [31:2] R