Professional Documents
Culture Documents
Class 2 - 3 - A Top Level View of Computer Functions Adn Interconnection
Class 2 - 3 - A Top Level View of Computer Functions Adn Interconnection
Class 2 - 3 - A Top Level View of Computer Functions Adn Interconnection
3 SKS
Hardware
and Software Instruction Instruction
Control
signals
General-purpose
Data arithmetic Results
and logic
functions
For the Glory of the Nation Figure 3.1 Hardware and Software Approaches
Major components:
• CPU I/O
• Instruction interpreter Components
• Module of general-purpose arithmetic and logic
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
For the Glory of the Nation
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
For the Glory of the Nation Figure 3.4 Characteristics of a Hypothetical Machine
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights
reserved.
Memory CPU Registers Memory CPU Registers
300 1 9 4 0 3 0 0 PC 300 1 9 4 0 3 0 1 PC
301 5 9 4 1 AC 301 5 9 4 1 0 0 0 3 AC
302 2 9 4 1 1 9 4 0 IR 302 2 9 4 1 1 9 4 0 IR
• •
• •
940 0 0 0 3 940 0 0 0 3
941 0 0 0 2 941 0 0 0 2
Step 1 Step 2
Memory CPU Registers Memory CPU Registers
300 1 9 4 0 3 0 1 PC 300 1 9 4 0 3 0 2 PC
301 5 9 4 1 0 0 0 3 AC 301 5 9 4 1 0 0 0 5 AC
302 2 9 4 1 5 9 4 1 IR 302 2 9 4 1 5 9 4 1 IR
• •
• •
940 0 0 0 3 940 0 0 0 3 3+2=5
941 0 0 0 2 941 0 0 0 2
Step 3 Step 4
Memory CPU Registers Memory CPU Registers
300 1 9 4 0 3 0 2 PC 300 1 9 4 0 3 0 3 PC
301 5 9 4 1 0 0 0 5 AC 301 5 9 4 1 0 0 0 5 AC
302 2 9 4 1 2 9 4 1 IR 302 2 9 4 1 2 9 4 1 IR
• •
• •
940 0 0 0 3 940 0 0 0 3
941 0 0 0 2 941 0 0 0 5
Step 5 Step 6
Multiple Multiple
operands results
Table 3.1
Classes of Interrupts
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
Interrupts
Disabled
Check for
Fetch Next Execute
START Interrupt;
Instruction Instruction Interrupts Process Interrupt
Enabled
HALT
1 1
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
For the Glory of the Nation Figure 3.10 Program Timing: Short I/O Wait
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights
reserved.
Time
1 1
4 4
5
2
4
4
3 I/O operation
concurrent with
I/O operation; processor executing;
processor waits then processor
waits
5
5
For the Glory of the Nation Figure 3.11 Program Timing: Long I/O Wait
Multiple Multiple
operands results
No
Instruction complete, Return for string interrupt
fetch next instruction or vector data
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
multiple communication a number of different buses
lines that provide pathways
• Each line is capable of transmitting between components at
Intercon
signals representing binary 1 and
binary 0 various levels of the
computer system hierarchy
-nection
System bus
• A bus that connects major computer The most common
components (processor, memory, computer interconnection
I/O) structures are based on the
use of one or more system
For the Glory of the Nation
buses
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
Routing Routing
Flits
Link Link
Fwd Clk
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
Physical Physical
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
128b
D+ D–
Descrambler
(a) Transmitter
8b
(b) Receiver
• Memory • I/O
• The memory space includes system • This address space is used for
main memory and PCIe I/O devices legacy PCI devices, with reserved
• Certain ranges of memory address ranges used to address
addresses map into I/O devices legacy I/O devices
• Configuration • Message
• This address space enables the TL • This address space is for control
to read/write configuration signals related to interrupts, error
registers associated with I/O handling, and power management
devices
Appended by PL
2 Sequence number
DLLP
Created
by DLL
4
2 CRC
12 or 16 Header 1 End
0 or 4 ECRC
4 LCRC
1 STP framing