Documente Academic
Documente Profesional
Documente Cultură
A Top-Level View of
Computer Function and
Interconnection
William Stallings
Computer Organization
and Architecture
Revision
Bit = smallest quantity of information
Byte = 8-bit
RAM
Size
Operating System
Clock Speed
?
System Concept:
Hardware Vs Software
Problem with hardware:
Hardwired computer systems,
i.e. inflexible, particularly for a
general purpose hardware
because it has to re-route
wired connections for different
tasks.
Solution using software:
Instead of using hardwires,
supply unique control signals
to general purpose hardware
to do various different tasks.
How?
Using programs to control
or/and correctly route the
control signals.
For each operation, a set of
different control signals is
needed.
Control Signals
What controls the signals?
A control unit or simply known as a controller
CPU
Constitute the control Unit and ALU
Input/output
Data and instructions need to get into the
system and results out
Main memory
Storage place for code/instructions and
data
Computer Components:Top Level View
Computer function:
Basic Instruction Cycle
Two steps:
Fetch
Execute
Fetch Cycle
Data processing
Some arithmetic or logical operation on data
Control
Alteration of sequence of operations
e.g. jump
Combination of above
Example of Program Execution
Load
(opcode 1)
into AC
the
content of
addr 940
Add
(opcode 5)
AC with
content of
addr 941
Store
(opcode 2)
result in
addr 941
Instruction Cycle - State Diagram
Write
result in
memory or
out to I/O
Analyze Exec
instr operatn
Timer
Generated by internal processor timer
Used in pre-emptive multi-tasking
I/O
from I/O controller
Hardware failure
e.g. memory parity error
Program Flow Control
Interrupt Cycle
Added to instruction cycle
Processor checks for interrupt
Indicated by an interrupt signal
If no interrupt, fetch next instruction
If interrupt pending:
Suspend execution of current program
Save context
Set PC to start address of interrupt handler
routine
Process interrupt
Restore context and continue interrupted
program
Transfer of Control via Interrupts
Instruction Cycle with Interrupts
Program Timing Short I/O Wait
Instruction Cycle (with Interrupts) -
State Diagram
Multiple Interrupts
Disable interrupts
Processor will ignore further interrupts whilst
processing one interrupt
Interrupts remain pending and are checked
after first interrupt has been processed
Interrupts handled in sequence as they occur
Define priorities
Low priority interrupts can be interrupted by
higher priority interrupts
When higher priority interrupt has been
processed, processor returns to previous
interrupt
Multiple Interrupts - Sequential
Multiple Interrupts Nested
Time Sequence of Multiple Interrupts
Computer Connection
All main computer components (i.e. CPU,
memory, I/O) are connected via a system
interconnection
(5)
Sends data (2)
(2)
(3)
Receives addresses (of
locations) (3)
(1)
Receives control
signals operations
Read (4)
Write(5)
Input/Output
Connection(1)
Control signals operations
for
Read
Write
Processor to memory
Processor writes data to memory
I/O to processor
Processor reads data from I/O device
via I/O module
Processor to I/O
Processor sends data to I/O
How it transmit?
Using single bit signal 1s or 0s each line
Need multiple lines for multiple digits transmission
Transmission method
When? At one time, only one device can transmit
How? Use broadcast technique
Why broadcast? One bus connects multiple devices
Bus Interconnection Scheme
Data Bus
A collection of lines that carry data b/w
modules
Operations
Memory read get data of specified addr from memory
via addr bus, put onto data bus
Memory write put data onto data bus, addr onto addr
bus, transmit to memory
I/O read put addr of I/O port onto addr bus, get data
from I/O via data bus
I/O write addr of I/O port onto addr bus, put data
onto data bus, send to specified I/O
Control Bus (2)
Msg
Transfer ACK ackowledge receipt of data or
transmission of data
Interrupt ACK ackowledge receipt of interrupt
request
Request
Bus request a module requests to use the bus
Bus grant permission to use bus sent out
Timing
Clock to synchronize operations
Reset Initializes all modules
Bus Clock Rate
Measured in MHz
A conventional shared
bus on the same chip Difficulties of reducing
magnified the difficulties bus latency with
of increasing bus data increasing number of
rate to keep up with the computer peripherals
processors
SOLUTION:
Point-to-Point Interconnect
1. QuichPath Interconecction
(QPI)
2. Peripheral Component
Interconnect (PCI)
+
Quick Path Interconnect
Introduced in 2008
QPI
Multiple direct connections
High bandwidth
Bus width at least 32-bit
Designed
To support different MP-based configuratns including
single and multiple processor systems
To make use of synchronous timing
Arbitration
Not shared, i.e. each PCI master has its own
connection directly to PCI arbiter
Error lines
To report parity or other errors
PCI Bus Lines (Optional)
(Table 3.4 of textbook)
Interrupt lines
Not shared
Cache support
JTAG/Boundary Scan
For testing procedures
PCI Commands
Bus activity occurs in the form of transaction
between initiator (master) and target.
How?
Master claims bus and determines type of transaction
that will occur, e.g. I/O read/write
PCI-Express x16 2004 4 GB/s write speed and 4 GB/s read speed simultaneously
PCI-Express x1 2004 250 MB/s write speed and 250 MB/s read speed simultaneously
AGP 1X 1996 bandwidth shared between reads and writes to a maximum of 267 MB/s
PCI 1993 bandwidth shared between reads and writes to a maximum of 133 MB/s
Discussion/Assignment
What is PCI?
PCI vs AGP?
PCI vs PCIe?
2. What is a process?
==========================