Chapter 3 - A Top Level View of Computer Function and Interconnection
Chapter 3 - A Top Level View of Computer Function and Interconnection
Hardwired program
The result of the process of connecting the various components in
the desired configuration
+
Hardware
and Software
Approaches
Software
• A sequence of codes or instructions Software
• 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 I/O
• Instruction interpreter Components
• 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 Memory buffer MEMORY
address register (MBR)
register (MAR) • Contains the data
• Specifies the to be written into
address in memory memory or
for the next read or receives the data
write read from memory
MAR
Data
Control
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 E me
Multiple Interrupts x p
a l
+
I/O Function
I/O module can exchange data directly with the processor
An I/O
module is
allowed to
exchange
data
Processor Processor
directly
reads an Processor reads data Processor
with
instruction writes a from an I/O sends data
memory
or a unit of unit of data device via to the I/O
without
data from to memory an I/O device
going
memory module
through the
processor
using direct
memory
access
A communication pathway Signals transmitted by any
connecting two or more one device are available for
devices
• Key characteristic is that it is a
reception by all other
devices attached to the bus 3.4-
Bus
shared transmission medium • If two devices transmit during the
same time period their signals will
overlap and become garbled
Inter-
Typically consists of multiple
conne
Computer systems contain a
communication lines
• Each line is capable of
transmitting signals representing
number of different buses
that provide pathways ction
binary 1 and binary 0 between components at
various levels of the
computer system hierarchy
System bus
• A bus that connects major The most common computer
computer components (processor,
memory, I/O) interconnection structures
are based on the use of one
or more system 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
destination of the data on the the data and address lines
data bus
If the processor wishes to
read a word of data from Because the data and address lines are
memory it puts the address of shared by all components there must be
the desired word on the a means of controlling their use
address lines
Control signals transmit both command
Width determines the maximum
possible memory capacity of the and timing information among system
system modules
Also used to address I/O ports Timing signals indicate the validity of
The higher order bits are data and address information
used to select a particular
module on the bus and the Command signals specify operations to
lower order bits select a
memory location or I/O port be performed
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.
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