CS251-lecture-04
CS251-lecture-04
William Stallings
Computer Organization
and Architecture
10th Edition
© 2016 Pearson Education, Inc., Hoboken,
NJ. All rights reserved.
+ Chapter 3
A Top-Level View of Computer
Function and Interconnection
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
+
and Software
Approaches Instruction
codes
Instruction
interpreter
Control
signals
General-purpose
Data arithmetic Results
and logic
functions
CPU
• Instruction interpreter
• Module of general-purpose arithmetic and logic functions
Main memory :
Used to store the instructions and data
I/O Components
Input module
• Accepting data and instructions from external devices
Output module
• Used to send results to external devices
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
Processor- Processor-
memory I/O
Data
Control
processing
The instruction format provides 4 bits for the opcode, so that there
can be as many as 24 = 16 different opcodes, and up to 212 = 4096
(4K) words of memory can be directly addressed.
0 1 15
S Magnitude
2. The first 4 bits (first hexadecimal digit) in the IR indicate that the
AC is to be loaded. The remaining 12 bits (three hexadecimal digits)
specify the address (940) from which data are to be loaded.
3. The next instruction (5941) is fetched from location 301, and the
PC is incremented.
4. The old contents of the AC and the contents of location 941 are
added, and the result is stored in the AC.
5. The next instruction (2941) is fetched from location 302, and the
PC is incremented.
Multiple Multiple
operands results
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
n
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
+
Bus Interconnection
Control lines
Data lines