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
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
I/O
Processor- Processor-
memory
Control Data
processing
1940(h)
1: 0001 Load AC from memory
940(h) Data address
5941(h)
5: 0101 Add to AC from memory
2941(h)
2: 0010Store AC to memory
Add 2 memory cell at addresses 940,
941. The result is stored at 941
+
Instruction Cycle State Diagram
+ Classes of Interrupts
Virtually all computers provide a mechanism by which other
modules (I/O, memory) may interrupt the normal processing
of the processor. An interrupt can be caused by:
Program Flow Control
+
Transfer of Control via Interrupts
+
Instruction Cycle With Interrupts
+
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 transmitted by any one device are
mmunication pathway available for reception by all other devices
ecting two or more devices attached to the bus
3.4-
characteristic is that it is a • If two devices transmit during the same
time period their signals will overlap and
ed transmission medium become garbled
em bus
us that connects major
The most common computer
interconnection structures are
connec
mputer components
ocessor, memory, I/O)
based on the use of one or
more system buses tion
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