Professional Documents
Culture Documents
CH03-COA10e ComputerFunction
CH03-COA10e ComputerFunction
Hardwired program
The result of the process of connecting the various components in the desired
configuration
Datapath Data
A control unit (control path) featuring a Registers Data
program counter for controlling program and
Instructions
execution
Instruction Address
An arithmetic and logic unit (ALU) also register
PC
register
Address
Hardware
and Software Instruction Instruction
Approaches
codes interpreter
Control
signals
General-purpose
Data arithmetic Results
and logic
functions
Assembler
0000 1001 1100 0110 1010 1111 0101 1000
1010 1111 0101 1000 0000 1001 1100 0110 Machine Language
1100 0110 1010 1111 0101 1000 0000 1001 Program
0101 1000 0000 1001 1100 0110 1010 1111
Machine Interpretatio
Control Signal
Specification
°
°
+ Bottlenecks in VN Architecture 7
The Von Neumann Computer
8
Advantage:
Simplicity.
Flexibility: any well coded program can be executed
Drawbacks:
Speed efficiency: Not efficient, due to the sequential program
execution (temporal resource sharing).
Resource efficiency: Only one part of the hardware
resources is required for the execution of an instruction.
The rest remains idle.
Memory access: Memories are about 5 times slower than
the processor
CPU Main Memory
0
System 1
2
PC MAR Bus
Instruction
Instruction
Instruction
IR MBR
I/O AR
Data
Execution
unit Data
I/O BR Data
Data
PC = Program counter
Buffers IR = Instruction register
MAR = Memory address register
MBR = Memory buffer register
I/O AR = Input/output address register
I/O BR = Input/output buffer register
MAR
I/O address I/O buffer
register (I/OAR) register (I/OBR)
• Specifies a • Used for the
particular I/O exchange of data
+ device between an I/O
module and the
CPU
MBR
+
Fetch Execute Cycle
At the beginning of each instruction cycle
The processor increments the PC after each instruction fetch so that it will
fetch the next instruction in sequence
The processor interprets the instruction and performs the required action
0 3 4 15
Opcode Address
0 1 15
S Magnitude
Data N–1
External
Address M Ports Data
Internal
Data Interrupt
Signals
External
Data
Instructions Address
Control
Data CPU Signals
Interrupt Data
Signals
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 reception by all other
devices attached to the bus
I
• Key characteristic is that it is a
shared transmission medium • If two devices transmit during the
n
same time period their signals will
overlap and become garbled
n
e
Typically consists of multiple
Computer systems contain a t
B c
communication lines
number of different buses
• Each line is capable of that provide pathways
transmitting signals representing
binary 1 and binary 0 between components at e
u t
various levels of the
computer system hierarchy
r
s i
System bus c
• A bus that connects major The most common computer o
o
computer components (processor,
memory, I/O) interconnection structures
are based on the use of one
or more system buses
n
n
Data Bus
Data lines that provide a path for moving data among system
modules
Control lines
Data lines