Slot04 05 CH03 TopLevelView 38 Slides
Slot04 05 CH03 TopLevelView 38 Slides
Slot04 05 CH03 TopLevelView 38 Slides
Hardwired program
The result of the process of connecting the various components in the
desired configuration
+
Hardware
and Software
Approaches
Software 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
I/O
●
the hardware
Components
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
Memory address Memory buffer MEMORY
register (MAR) register (MBR)
• Specifies the address • Contains the data to
in memory for the be written into
next read or write memory or receives
the data read from
memory
MAR
Processor-
I/O
memory
Processor-
Control Data
processing
5941(h)
5(h) 0101
Add to AC from memory 941(h)
2941(h)
2(h): 0010Store AC to memory 941
Read
keyboard
+
Transfer of Control via Interrupts
CPU
5V
IO Module
+
Program
Timing:
Short I/O
Wait
+
Program
Timing:
Long I/O
Wait
Instruction Cycle State Diagram
With Interrupts
Transfer of
Control
Multiple
Interrupts
+
+ Time Sequence of Ex
Multiple Interrupts am
ple
+
I/O Function
I/O module can exchange data directly with the processor
An I/O
module is
allowed to
exchange
Processor Processor
Processor Processor data directly
reads an reads data
writes a unit sends data to with memory
instruction or from an I/O
of data to the I/O without going
a unit of data device via an
memory device through the
from memory I/O module
processor
using direct
memory
access
Signals
Signals transmitted
transmitted by by any
any one
one device
device
munication
munication pathway
pathway are
are available
available for
for reception
reception byby all
all
cting
cting two
two or
or more
more devices
devices other
other devices
devices attached
attached toto the
the bus
bus
3.4-
characteristic
characteristic is
is that
that it
it is
is aa If
If two
two devices
devices transmit
transmit during
during the
the
dd transmission same
same time period their signals will
time period their signals
transmission medium
medium will
overlap and become garbled
overlap and become garbled
lly
lly consists
line
consists of
unication
unication lines
line is
of multiple
lines
is capable
multiple
capable of
of
Computer
Computer systems
number of
number
systems contain
of different
provide
contain aa
different buses
buses that
that
Bus
provide pathways
pathways between
Inter-
mitting between
mitting signals
signals components
senting components at
at various
various levels
levels of
of
senting binary
binary 11 and
and the
yy 00 the computer
computer system
system hierarchy
hierarchy
System
System bus
A
A bus
bus
bus that
that connects
connects major
major
The
The most
computer
most common
common
computer interconnection
interconnection
connec
structures
structures are
are based
based on
on the
tion
computer the
computer components
components use of one or more system
(processor, use of one or more system
(processor, memory,
memory, I/O)
I/O) buses
buses
Data Bus
Data lines that provide a path for moving data among system
modules
Used to designate the source or Used to control the accessand the use of the
destination of the data on the data bus data and address lines
If the processor wishes to read a
word of data from memory it puts Because the data and address lines are shared
the address of the desired word on by all components there must be a means of
the address lines controlling their use
Width determines the maximum Control signals transmit both command and
possible memory capacity of the timing information among system modules
system
Timing signals indicate the validity of data and
Also used to address I/O ports address information
The higher order bits are used to
select a particular module on the Command signals specify operations to be
bus and the lower order bits select performed
a memory location or I/O port
within the module
Bus Interconnection Scheme
Fig. 3.17- Example Bus Configuration
Fig. 3.17- Example Bus Configuration
+ Elements of Bus Design
3.2 List and briefly define the possible states that define an instruction
execution.
3.3 List and briefly define two approaches to dealing with multiple
interrupts.
Computer components
Computer function
Instruction fetch and execute
Interrupts
I/O function
Interconnection structures
Bus interconnection
Bus structure
Multiple bus hierarchies
Elements of bus design