Professional Documents
Culture Documents
CHAPTER 3
WHAT GOES ON INSIDE THE
COMPUTER
Functions of Computer Systems
Secondary
Storage
Secondary
Storage
Input Output
Processing
The CPU
Memory, however,
is not part of the Memory
CPU.
Parts of the CPU
The CPU consists of a variety of parts including:
• Control unit
Control
Unit
ALU • Arithmetic/logic
unit (ALU)
Registers
• Registers
The Control Unit…
directs the other parts of the computer system
to execute stored program instructions.
ALU
Mathematical Operations
• addition
• subtraction
• multiplication
• division
Logical Operations
The ALU can perform logical operations.
Logical operations can test for these
conditions:
Equal-to (=)
Less-than (<)
Greater-than (>)
Equal-to Condition
If =
Then =
Less-than Condition
If =
Then <
Greater-than Condition
In a test for this condition, the ALU compares
values to determine if one value is greater
than another.
If =
Then >
Registers…
are temporary Data held
storage areas for temporarily in
data or registers can be
instructions. accessed at
greater speeds
than data stored
in memory.
Registers
Memory (Primary Storage)
RAM is temporary,
finite, and more
expensive than
Memory
secondary storage.
Executing Program Instructions
Input Processing
Executing Program Instructions
CPU
• Fetching
• Decoding
• Executing Memory
• Storing
Fetching Instructions
Memory
Decoding Instructions
Memory
Storing Results
Registers
Memory
Output
Instruction Time
Control Control
Unit ALU
Unit
+
Memory Memory
Execution Time
ALU ALU
+ Registers
Memory
Machine Cycle
The combination of I-time and E-time is
called the machine cycle.
I- E- Machine
Cycle
time time
Memory Locations and Addresses
Memory
Storage Locations
Each location in
memory is
identified by an
address.
Memory
Each location
has a unique
address.
Symbolic Addresses
% Pat
Addresses can
only hold one 364
number or word. Memory
Data Representation
off or on
Zero or One?
0 or 1
three bits
The Byte
0 1 0 0 1 0 1 0
One Character of Data
0 1 0 0 1 0 1 0
= J
Storing Bytes
0 1 0 0 1 0 1 0 = J
ASCII-8 code Keyboard character
Inside the Computer
The microprocessor
contains tiny
electronic switches
(transistors).
Microprocessor Switches
is read-only memory.