Top-Level View of Computer Function and Interconnection
Top-Level View of Computer Function and Interconnection
Top-level view of
Computer Function and
Interconnection
CHAPTER 02
Contents
Understand the basic elements of an instruction cycle and the
role of interrupts.
Describe the concept of interconnection within a computer
system (buses)
Explain the need for multiple buses arranged in a hierarchy.
Assess the relative advantages of point-to-point
interconnection compared to bus interconnection.
Present an overview of QPI, PCIe
3
https://www.dropbox.com/s/o
bp7ohk4t6cx49u/Screenshot
%202017-12-
19%2020.10.33.png?dl=0
5
• Instruction Cycle
Computer • Interrupts
Functions
6
Instruction Cycle
INSTRUCTION FETCH & EXECUTE
Instruction Cycle
Activities
Polling vs
Interrupt
Interrupt vs Polling 12
Interrupt Polling
Basic Device notify CPU that it CPU constantly checks
needs CPU attention device status whether it
needs CPU's attention.
Mechanism An interrupt is a hardware Polling is a protocol
mechanism
Servicing Interrupt handler services CPU services the device.
the Device.
Indication Interrupt-request line Command-ready bit
indicates that device needs indicates the device
servicing. needs servicing.
Occurrence An interrupt can occur at CPU polls the devices at
any time. regular interval
Example Let the bell ring then open Constantly keep on
the door to check who has opening the door to
come. check whether anybody
has come.
13
Interrupt
An interrupt is a hardware mechanism that
enables CPU to detect that a device needs
its attention. Interrupt
handler
The CPU has a wire interrupt-request
line (IRQ) which is checked by CPU after
execution of every single instruction. IRQ
When CPU senses an interrupt signal on the
IRQ line, CPU stops its currently executing
task and respond to the interrupt send by
Iret
I/O device by passing the control to interrupt
handler. The interrupt handler then service
the device.
14
Interrupts
Way to improve processing efficiency.
Classes of interrupts
Multiple Interrupts
Interconnection
Structures
22
Computer modules
Computer is a network of basic modules.
CPU
Memory module
A memory module will consist of N words of equal length.
I/O module
Functionally similar to memory.
Processor
The processor reads in instructions and data, writes out data after
processing, and uses control signals to control the overall operation
of the system.
Types of transfers
The interconnection structure must support the following types of
transfers
Bus interconnection
A bus is a communication pathway connecting two or more devices.
Bus structure
Computer systems contain a number of different buses that provide
pathways between components.
Bus Structure
A system bus consists of from about fifty to hundreds of separate lines
and can be classified into three functional groups: data, address, and
control lines:
Multiple-Bus Hierachies
A great number of devices connected to the bus will suffer system
performance (bottleneck).
Multiple-Bus Hierachies
High-performance architecture
32
Computer Buses
66MHz
33,66MHz
8 MB/s then
33,66,100,133
High-performance architecture
33
Bus Arbitration
Because only one unit at a time can successfully transmit over the
bus, some method of arbitration is needed.
The device which initiates data transfer is called the master, while the
other device involves in the data exchange is called the slave.
34
Bus Timing
The way in which events are coordinated on the bus.
Point-to-Point Interconnect
The electrical constraints encountered with increasing the frequency
of wide synchronous buses. At higher and higher data rates, it
becomes increasingly difficult to perform the synchronization and
arbitration functions in a timely fashion.
Significant characteristics
Multiple direct connections: Multiple components within the system
enjoy direct pairwise connections to other components. This
eliminates the need for arbitration found in shared transmission
systems.
Packetized data transfer: Data are not sent as a raw bit stream.
Rather, data are sent as a sequence of packets, each of which
includes control headers and error control codes.
39
A B
C D
40
QPI Protocol
QPI is defined as a four-layer protocol architecture, encompassing
the 4 layers:
41
QPI Layers
1. The Physical layer:
QPI Layers
2. The Link layer:
Operate on the level of the flit (flow control unit). The basic unit of
transfer is the 80-bit flit, which has 64 bits for data, 8 bits for "link-layer
header", and 8 bits for error detection (four 20-bit transfers, two per
clock).
3. The Routing layer: determine the course that a packet will traverse
across the available system interconnect.
At 3.2 GHz, the QPI transfers two data per clock cycle, making the bus to work
as if it was using a 6.4 GHz clock rate or 6.4 GT/s (giga transfers per second – a
unit of Intel).
Since 16 bits are transmitted per time ➔ a maximum theoretical transfer rate
of 12.8 GB/s on each direction (6.4 GHz x 16 bits / 8) or 25.6GB/s for two
datapaths
QPI
20 bits 20 bits
45
At 1600 MHz FSB (which actually 400MHz transferring 4 data per clock cycle )
PCI has not been able to keep pace with the data rate demands of
attached devices.
Trans.
Ver Year Rate x1 x16
(GT/s) (GB/s (GB/s)
1 2003 2.5 0.25 4.00
2 2007 5 0.50 8.00
3 2010 8 0.96 15.75
4 2017 16 1.97 31.51
5 2019 32 3.94 63.02