Aao Module 2, Lesson 1 Lecture
Aao Module 2, Lesson 1 Lecture
Aao Module 2, Lesson 1 Lecture
ARCHITECTURE AND
ORGANIZATION
MODULE 2, LESSON 1:
A TOP-LEVEL VIEW OF COMPUTER FUNCTION
AND INTERCONNECTION
By: MS. RACHELLE N. CAMACHO, MIT
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Computer Components
Most computer designs take advantage of the Von Neumann
Architecture
Four components:
Control Unit
Arithmetic logic Unit
Memory
I/O
Three key concepts:
Data and instructions are stored in a single read-write memory.
The contents of this memory are addressable by location, without regard to
the type of data contained there.
Execution occurs in a sequential fashion (unless explicitly modified) from one
instruction to the next
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Computer Components
Hardwired or Software?
Instead of rewiring the hardware for each new
program, the programmer can supply a new set
of control signals.
Program is a sequence of steps.
At each step, some arithmetic or logical
operation is performed on some data.
For each step, a new set of control signals is
needed.
Use a unique code for each possible set of
control signals
As to the general-purpose hardware a segment
that can accept a code and generate control
signals
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Computer Components
Software
A sequence of codes or instructions
Part of the hardware interprets each instruction and generates control signals.
Provide a new sequence of codes for each new program instead of rewiring the
hardware.
Major components
CPU
Instruction interpreter
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
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Computer Components
Computer Function
The basic function of a computer is to run programs
At the simplest level, you can view the work of the computer as
fetching and executing instructions (two step cycle)
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Computer Function
Fetch and Execute
At the beginning of each instruction cycle the processor fetches an instruction
from memory
The program counter (PC) holds the address of the instruction to be fetched
next
The processor increments the PC after each instruction fetch so that it will fetch
the next instruction in sequence.
The fetched instruction is loaded into the instruction register (IR)
The processor interprets the instruction and performs the required action.
Processor-memory: Data may be transferred from processor to memory or from memory to
processor.
Processor-I/O: Data may be transferred to or from a peripheral device by transferring between
the processor and an I/O module.
Data processing: The processor may perform some arithmetic or logic operation on data.
Control: An instruction may specify that the sequence of execution be altered
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Computer Function
Example
Consider a machine with
these characteristics
Single data register called
accumulator
Data and instructions are 16
bits
Uses 4 Bit Opcodes
Computer Function
Example Program
How would an
example program
execute on this
machine.
Let’s take a look
Computer Function
We begin in the upper left.
The program counter
contains 300 (the address of
the first instruction)
The instruction is stored as
1940 in Hex
Instruction gets loaded into
the instruction register.
Program counter will be
incremented Example Program- Step 1
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Computer Function
The author writes this is
Hexadecimal, so the first
four bits correspond to the
first hex digit.
The 1st four bits (0001) in
the IR indicate to load the
Accumulator with the
contents of the address 940.
Computer Function
Computer Function
Computer Function
Computer Function
Interrupts
Almost all computers provide a
way to interrupt normal
processor operations
Interrupts are a way to improve
efficiency since I/O can be a
bottleneck.
Several Types of Interrupts
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Interrupt Example
Idea is that the
processor wants to do
other things while
waiting for I/O
Program with 3 writes
Upper 1/3 no interrupt
Middle – interrupts
that require only shorts
bits of I/O
Lower Program with
long I/O waits Program Flow of Control without and
with Interrupts
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Interrupts
Multiple Interrupts
I/O Function
Can have I/O modules that exchange data directly with the processor.
Processor can read data from or write data to an I/O module
Processor identifies a specific device that is controlled by a particular I/O
module
I/O instructions rather than memory referencing instructions.
In some cases it is desirable to allow I/O exchanges to occur directly with
memory.
The processor grants to an I/O module the authority to read from or write to
memory so that the I/O memory transfer can occur without tying up the
processor.
The I/O module issues read or write commands to memory relieving the
processor of responsibility for the exchange.
This operation is known as direct memory access (DMA)
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Interconnection Structures
Computer Modules
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Interconnection Structures
Memory Processor I/O to Processor I/O to or
to to processor to I/O from
processor memory memory
The previous slide
An I/O
shows the data to be module is
allowed to
exchanged. exchange
The interconnection Processor Processor
data
directly
reads an Processor reads data Processor
structure needs to instruction writes a from an I/O sends data
with
or a unit of memory
unit of data
support the following data from to memory
device via
an I/O
to the I/O
device
without
going
types of transfers memory module
through the
processor
using direct
memory
access
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Bus Interconnection
Bus Interconnection
Signals transmitted by any one device are
A communication pathway connecting two or
available for reception by all other devices
more devices.
• Key characteristics is that it is a shared transmission
attached to the bus.
• I two devices transmit during the same time period
medium
their signals will overlap and become garbled
Data Bus
Address Bus
Used to designate the source or destination of the data
on the data bus
If the processor wishes to read aa word of data from
memory it puts the address of the desired word on the
address lines.
Width determines the maximum possible memory
capacity of the system.
Also used to address I/O ports
The Higher order bits are used to select a particular
module on the bus and the lower order bits select a
memory location of I/O port within the module.
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Control Bus
Used to control the access and the use of the data and
address lines..
Because the data and address lines are shared by all
components there must be a means of controlling their
use.
Control signals transmit both command and timing information
among system modules.
Timing signals indicate the validity of data and address
information.
Command signals specify operations to be performed
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Bus Operation
If one module wishes to send data to another, it must do two things:
Obtain the use of the bus
Transfer data via the bus
If one module wishes to request data from another module, it must
Obtain the use of the bus
Transfer a request to the other module over the appropriate control and address lines.
Wait for that second module to send the data.
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Point-to-point Interconnect
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Layered Protocol
QPI is defined as four layer model
Physical
Actual wires carry signals
Unit of Transfer is 20 bit (Phit)
Link
Transmission and Flow Control
Unit of Transfer is 80 bit (Flit)
Routing
Framework for directing packets through fabric
Protocol
QPI Layers
High-level set of rules for exchanging packets of
data between devices.
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Physical Layer
The QPI port consists of
84 individual links
Lane: Each data path
consists of a pair of wires
that transmits data one
bit at a time.
There re 20 data lanes in
each direction
6.4 GigaTransfers/Second
Physical Interface of the Intel QPI
means 16GB/second Interconnect
32 GB/s if bidirectional
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Link Layer
Responsible for Transmission and Flow Control
QPI performs flow control and error control at the
Flit (80 bit) level
Typically, the message is 72 bits with an 8 bit error
code
The low control function insures that you don’t
send data faster than you can receive it via a credit
scheme
Error Control checks for errors via an 8-bit CRC
Value
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Link Layer
Point-to-point interconnect scheme intended to
replace bus-based schemes such as PCI
Key requirement is high capacity to support the
needs of higher data rate I/O devices, such as
Gigabit Ethernet
Another requirement deals with the need to
support time dependent data streams.
Chipset – connects the processor and memory
subsystem to PCI Express
Switch – manages multiple PCIe Streams
Endpoint – An I/O device or controller that
implement PCIe
Bridge – allow older PCI device to be connected
to PCIe based systems Typical Configuration Using PCIe
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN
Configuration Message
This address space enables the TL to This address space is for control signals
read/write configuration registers related to interrupts, error handling, and
associated with I/O devices power management.
PhilCST
PHILIPPINE COLLEGE OF SCIENCE & TECHNOLOGY
OLD NALSIAN ROAD, BRGY. NALSIAN, CALASIAO, PANGASINAN