The Computer System Computer Function and Interconnection o Computer Functions o Interconnection Structures o Bus Interconnection
The Computer System Computer Function and Interconnection o Computer Functions o Interconnection Structures o Bus Interconnection
The Computer System Computer Function and Interconnection o Computer Functions o Interconnection Structures o Bus Interconnection
Peripherals Computer
Central Main
Processing Memory
Unit
Computer
Systems
Interconnection
Input
Output
Communication
lines
Structure - The CPU
CPU
Computer Arithmetic
Registers and
I/O Login Unit
System CPU
Bus
Internal CPU
Memory Interconnection
Control
Unit
Hardwired Program
• For every instruction there is a small set of basic
logic components are used
• These component can be combined in various ways
to store binary data and to perform arithmetic and
logical operations on data
• For each computation , a confirmation of logic
component is design.
• This is as ‘process of connecting the various
components in desire configuration as form of
programming ‘
• This resulting program is in form of hard ware so
known as hardwired program
• Program is actually sequence of steps and
for each step some arithmetic and logical
operation is performed on some data
• we need to provide the general purpose
hardware program that can accept a code
and generate control signal
• So instead of rewriting hardware for each
new program, we need to provide a new
sequence of codes
• Each codes nothing but instruction and
part of hardware interpret each instruction
and generates control signal
• This new method is called as software
Sequence of
Data arithmetic and Result
logic functions
Programming in Hardware
Instruction Instruction
code interpreter
Control signal
General purpose
Data arithmetic and Result
logic functions
Opcode
Ex.Opcodes
0001 = Load AC from Memory
0010 = Store AC to Memory
0101= Add to AC from Memory
Instruction Cycle
• Two steps:
—Fetch
—Execute
Fetch Cycle
• Program Counter (PC) holds address of
next instruction to fetch
• Processor fetches instruction from
memory location pointed to by PC
• Increment PC
—Unless told otherwise
• Instruction loaded into Instruction
Register (IR)
• Processor interprets instruction and
performs required actions
Execute Cycle
• Processor-memory
—data transfer between CPU and main memory
• Processor I/O
—Data transfer between CPU and I/O module
• 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
Instruction Cycle Diagram
Interrupts
• Mechanism by which other modules (e.g.
I/O) may interrupt normal sequence of
processing
• Program
—e.g. overflow, division by zero
• 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
Interrupts
Instruction Cycle with interrupt Diagram
Interconnection Structures
• A computer consists of a set of
components (CPU,memory,I/O) that com
municate with each other.
• The collection of paths connecting the
various modules is call the interconnection
structure.
• The design of this structure will depend on
the exchange that must be made between
modules.
Input/Output for each module
Read Read
Write Write
Memory
N Word
Internal
Data
0 Data
Address .
.
.
Address External
Data N-1 I/O Module Data
Internal
Data
Interrupt
Signal
External
Data
Instructions
Data
Interrupt Signal CPU Control
Signal
Data
Type of transfers
• Memory to CPU
• CPU to Memory
• I/O to CPU
• CPU to I/O
• I/O to or from Memory (DMA)
Bus Interconnection
• A bus is a communication pathway
connecting two or more device.
• A key characteristic of a bus is that it is a
shared transmission medium.
• A bus consists of multiple pathways or
lines.
• Each line is capable of transmitting signal
representing binary digit (1 or 0)
Bus Interconnection
• A sequence of bits can be transmit across
a single line.
• Several lines can be used to transmit bits
simultaneously (in parallel).
• A bus that connects major components
(CPU,Memory,I/O) is called System Bus.
• The most common computer
interconnection structures are based on th
e use of one or more system buses.
Bus Structure
• A system bus consists of 50-100 lines.
• Each line is assigned a particular meaning or
function.
• On any bus the lines can be classified into 3
groups
—Data Bus
—Address Bus
—Control Bus
Data Bus
• Provide a path for moving data between system
modules.
• These lines, collectively, are called the data bus
• The data bus typically consists of 8,16 or 32
separate lines, the numbers of lines being transfe
rred to as the width of the data bus.
• Each line carry only 1 bit at a time, the number
of lines determines how many bits can transferre
d at a time - overall system performance.
The Address Bus
• Used to designate the source or
destination of the data on the data bus
• The width of the address bus determines
the maximum possible memory capacity o
f the system.
The Control Bus
• Local bus
—CPU - Cache
• System bus
—Main memory - Cache
• Expansion bus
—I/O Modules - Main memory
Traditional Bus Architecture
High-Performance Architecture
• Local bus
—CPU - Cache/bridge
• System bus
—Cache/bridge - memory
• High-speed bus
—High-speed I/O module - Cache/bridge
• Expansion bus
—Low-speed I/O modules - Expansion interface
High-Performance Architecture
Bus Design
• Timing Read-modify-write
—Synchronous Read-after-write
—Asynchronous Block
Type
• Dedicated
permanent assigned bus either to
one function or to a physical subset o
f computer components
• Multiplexed
occurrence
occurrence of events of one event follows
on the bus is and depends on the
determined by a cloc previous event.
k (Clock Cycle or Bus
Cycle)
Method of Arbitration
• Centralized • Distributed
bus access control
controller (Arbiter), ha
rdware device,is resp logic in each module a
onsible for allocating ct together to share b
time on the bus (daisy us
chain)
Data Transfer Type
• Read Multiplexed
bus is used to specifying address and
then for transferring data after a wait
while data is being fetched
• Read Dedicated
address is put on bus and
remain there while data are put on the da
ta bus
Data Transfer Type
• Write Multiplexed
bus is used to specifying address
and then transferring data (same as read
operation)
• Write Dedicated
data put on data bus as soon as
the address has stabilized
Data Transfer Type
• Read-modify-write
address is broadcast once at
beginning a simply read is followed immed
iately by a write to the same address
• Read-after-write
a write followed
immediately by a read from the same ad
dress,performed for checking purposes
Data Transfer Type
• Block
one address cycle is followed by n data
cycles.
A Desktop System
A Server System
Universal Serial Bus
• Standard bus which is invented by a group of
companies : Compaq, DEC, IBM, Intel, Microsoft,
NEC, Northern Telecom, etc.
• Not change switch, jumper on board or other
devices
• Can use the same cable
• Device that use USB can use power supply from
PC.
• Up to 127 devices connected off single port
• Support real-time system
• Hot Plug-in
• Low cost
Multi-System Buses