Академический Документы
Профессиональный Документы
Культура Документы
Learning Objectives
When you complete this chapter, you will:
state the functions and basic units of a
central processing unit,
explain how instructions are picked up and
executed by the CPU,
be aware that all the information inside the
computer is stored and processed in binary
codes.
Chapter 12. Central Processing Unit
12.1 Central Processing Unit
12.2 Functions of Different Units
12.3 Data Representation in
Computer
12.1 Central Processing Unit
12.1 Central Processing Unit
AMD
Intel Athlon XP
Pentium 4
12.2 Functions of Different
Units
12.2 Functions of Different Units
Control
unit Arithmetic
and logic unit
Some
registers
12.2 Functions of Different Units
Control Unit
Arithmetic unit
Logic unit
performs logical
calculations and makes
judgement like “if A > B is
true”.
12.2 Functions of Different Units
Registers
Program Executions
Before a computer executes
instructions, they are first placed in the
The memory.
main diagram shows how the CPU executes an
instruction:
Control unit Arithmetic and
logic unit
Decode Execute
This is called
Main memory
machine cycle.
Fetch
12.2 Functions of Different Units
Program Executions
Fetching
Program Executions
Executing
1 byte = 8 bits
12.3 Data Representation in Computer
The answer
is 01001000
12.3 Data Representation in Computer
Light bulb
Off On
12.3 Data Representation in Computer
Coin
12.3 Data Representation in Computer
It’s On!
If represents 1 and represents 0, then
two light bulbs can be used to represent four bits
patterns.
Bit
Light bulbs
pattern
0 0
0 1
1 0
1 1
12.3 Data Representation in Computer
It’s On!
If represents 1 and represents 0, then
two light bulbs can be used to represent four bits
patterns.
How many bit patterns can be shown by three light bulbs?
List all these bit patterns.
000, 001 , 010 , 011 , 100 , 101 , 110 , 111
, 23 = 8
12.3 Data Representation in Computer
Binary
You can obtain the result of Class Activity 1
by trying the CAL program “Binary” from
the Learning disc.
Click these
switches
alternately.
The pattern
found will
be listed on
the right.
12.3 Data Representation in Computer
Secret Message
In this activity, A to Z will be coded by 8
binary bits according to the following table.
12.3 Data Representation in Computer
Secret Message
Run the CAL program “Secret Message” from
the Learning disc. Try to decode the messages
from the computer
Input your
message here
12.3 Data Representation in Computer
How Well Do You Know CPU?
Test your knowledge of CPU by answering the
following:
control unit
2. The entire computer system is controlled by ___________.
5. 1 byte = ________
8 bits