Professional Documents
Culture Documents
Chap 3
Chap 3
William Stallings
Computer Organization
and Architecture
10th Edition
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 address I/O buffer register
register (I/OAR) (I/OBR)
• Specifies a particular • Used for the exchange
I/O device of data between an
+ I/O module and the
CPU
MBR
Processor- Processor-
memory I/O
Data
Control
processing
4. The data at address 941 are added to the AC and the PC is incremented
Interrupts are also used to stop a process when some type of error
has occurred
The error may or may not be recoverable
Classes of Interrupts
The first system, without interrupts, must wait during each write
operation
The second system, with interrupts, can initiate the write and then
proceed with normal operations
When the write is complete the processor is interrupted do the
postprocessing necessary at the end of the write
I/O to or
Memory to Processor I/O to Processor
from
processor to memory processor to I/O
memory
An I/O
module is
allowed to
exchange
Processor Processor
Processor Processor data directly
reads an reads data
writes a unit sends data to with memory
instruction or from an I/O
of data to the I/O without going
a unit of data device via an
memory device through the
from memory I/O module
processor
using direct
memory
access
A common bus structure was previously dominant and is still used for
many embedded systems
Multiple devices connect to the bus
A signal transmitted by one device can be received by any device on the
bus
The devices must be synchronized so that signals do not overlap
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
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
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
within the module
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
+
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
Physical Layer: the actual wires carrying signals, along with the
circuitry and logic to support the transfer of 1’s and 0’s.
The unit of data transfer at the physical layer is 20 bits, which is called a
Phit (physical unit)
Data Link Layer – responsible for reliable transmission and flow control
Data packets at the data link layer are called DLLPs
Transaction Layer – generates and consumes data packets and manages the
flow between two components
Data packets at the transaction layer are called TLPs
At each physical lane data are buffered and processed 16 bytes (128 bits) at a
time
Each block is encoded into a 130 bit code word for transmission
There in no common clock; the receiver looks for transitions in the data for
synchronization
The extra 2 bits ensure that in a long sequence of 1’s there are at least some 0’s
to provide these transitions
The data link layer sends packets between two devices that are concerned
with “bookkeeping” between the two devices.
The data link layer also adds error checking and address bits to each TLP
to ensure they arrive at the correct device
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