Title: Chapter 4 Processor Technology and Architecture
1Chapter 4Processor Technology and Architecture
2Chapter Goals
Chapter 4
Systems Architecture
- Describe CPU instruction and execution cycles.
- Explain how primitive CPU instructions are
combined to form complex processing operations. - Describe the key CPU design features, including
instruction format, word size, and clock rate.
3Chapter Goals
Chapter 4
Systems Architecture
- Describe the function of general-purpose and
special-purpose registers. - Compare and contrast CISC and RISC CPUs.
- Describe the principles and limitations of
semiconductor-based microprocessors.
4Chapter Topics
Chapter 4
Systems Architecture
- CPU Operations
- CPU Instructions
- CPU Components
- CPU Implementation
- Future Trends for processors
5Chapter Topics
Chapter 4
Systems Architecture
6CPU Operation
Chapter 4
Systems Architecture
- Central Processing Unit Components
- Control Unit
- Arithmetic and Logic Unit
- Registers
7CPU Operation
Chapter 4
Systems Architecture
- Control Unit moves data and instructions
between main memory and registers. - Arithmetic and Logic Unit performs all
computation and comparison operations. - Registers storage locations that hold inputs
and outputs for the ALU.
8CPU Operation
Chapter 4
Systems Architecture
9CPU Operation
Chapter 4
Systems Architecture
- Actions performed by the CPU
- Fetch cycle data inputs are prepared for
transportation into data groups. - Execution cycle the transformation takes place
and data output is stored.
10CPU Operation
Chapter 4
Systems Architecture
11Instructions and Instruction Sets
Chapter 4
Systems Architecture
- Parts of an instruction
- Characteristics of an Instruction
- Data movement instruction
- Data transformation instructions
- Sequence control instructions
- Complex processing operations
12Instructions and Instruction Sets
Chapter 4
Systems Architecture
- Parts of an instruction
- Op code
- Operands
13Instructions and Instruction Sets
Chapter 4
Systems Architecture
- Instruction a command to the CPU to perform one
of its primitive processing functions. - Op Code the unique binary number of the
instruction. - Operand groups of bits that hold the input
values for the instruction.
14Instructions and Instruction Sets
Chapter 4
Systems Architecture
15Instructions and Instruction Sets
Chapter 4
Systems Architecture
- Instruction Set collection of instructions
that a CPU can process.
16Instructions and Instruction Sets
Chapter 4
Systems Architecture
- Characteristics of an Instruction Set
- Size of the instruction set
- Size of the individual instructions, op codes,
and operands - Supported data types
- Number and complexity of processing operations
implemented as individual instructions
17Data Movement
Chapter 4
Systems Architecture
- Move Instruction
- Copies data bits to storage locations
- Transfers data from main memory into registers
(load instruction) - Transfers data from registers to primary storage
(store instruction)
18Data Transformation
Chapter 4
Systems Architecture
- Primitive Data Transformation Instructions
- NOT
- AND
- OR
- XOR
- ADD
- SHIFT
19Data Transformation
Chapter 4
Systems Architecture
20NOT Instruction
Chapter 4
Systems Architecture
- The NOT instruction transforms the boolean
value true into false and the value false into
true. - NOT 0 1
- NOT 1 0
21AND Instruction
Chapter 4
Systems Architecture
- The AND instruction generates the result true
if both of its data inputs are true. - 0 AND 0 0
- 1 AND 0 0
- 0 AND 1 0
- 1 AND 1 1
22Inclusive OR Instruction
Chapter 4
Systems Architecture
- The Inclusive OR instruction generates the
value true if either or both data inputs are
true. - 0 OR 0 0
- 1 OR 0 1
- 0 OR 1 1
- 1 OR 1 1
23Exclusive OR Instruction
Chapter 4
Systems Architecture
- The Exclusive OR Instruction (XOR) generates
the value true if either, but not both, data
inputs are true. - 0 XOR 0 0
- 1 XOR 0 1
- 0 XOR 1 1
- 1 XOR 1 0
24ADD Instruction
Chapter 4
Systems Architecture
- The ADD instruction accepts two numeric inputs
and produces their arithmetic sum. - 0 0 0
- 1 0 1
- 0 1 1
- 1 1 10
-
25SHIFT Instruction
Chapter 4
Systems Architecture
- The Shift instruction moves bit strings to the
left or the right. -
26Logical Shift Instruction
Chapter 4
Systems Architecture
- The Logical Shift instruction is typically
used to extract a single bit from a bit string.
27Arithmetic Shift Instruction
Chapter 4
Systems Architecture
- The Arithmetic Shift instruction performs
multiplication or division. - Multiplication shifting one bit to the left,
multiplies the value by 2. - Division shifting one bit to the right,
divides the value by 2.
28Arithmetic Shift Instruction
Chapter 4
Systems Architecture
29Sequence Control
Chapter 4
Systems Architecture
- The Branch instruction causes the process to
depart from sequential instruction order. - Types of Branch instructions
- Unconditional Branch
- Conditional Branch
30Sequence Control
Chapter 4
Systems Architecture
- The Unconditional Branch causes the processor
to always depart from the normal sequence. - The Conditional Branch occurs only if a
specified condition is met.
31Halt Instruction
Chapter 4
Systems Architecture
- The Halt instruction suspends the normal flow
of instruction execution in the current program.
32Complex Processing Operations
Chapter 4
Systems Architecture
- Complex processing operations can be performed
by combining the simpler operations.
33Complex Operations
Chapter 4
Systems Architecture
34Complex Operations
Chapter 4
Systems Architecture
35Instruction Format
Chapter 4
Systems Architecture
- An instruction format is a template that
specifies the number of operands and the position
and length of the op code and operands.
36Instruction Format
Chapter 4
Systems Architecture
37Instruction Format
Chapter 4
Systems Architecture
38Instruction Length
Chapter 4
Systems Architecture
- Fixed instruction length simplify the
instruction-fetching processes implemented with
the control unit. - Variable instruction length the amount by which
the instruction pointer is incremented after the
fetch is the length of the most recently fetched
instruction.
39Reduced Instruction Set Computing
Chapter 4
Systems Architecture
- Reduced Instruction Set Computing (RISC) -
the absence of all, but not all, complex
instructions in the instruction set.
40Complex Instruction Set Computing
Chapter 4
Systems Architecture
- Complex Instruction Set Computing (CISC) -
uses instructions that do more work per
instruction. As a result, programs require less
memory, and complex operations executed more
quickly.
41Clock Rate
Chapter 4
Systems Architecture
- Clock Rate the frequency at which the system
clock generates timing pulses. - The rate are measured in Hertz (Hz) one cycle
per second.
42CPU Registers
Chapter 4
Systems Architecture
- Register Types
- General-purpose
- Special-purpose
43General-purpose Registers
Chapter 4
Systems Architecture
- Used by currently executing programs.
- Hold intermediate results.
- Hold data values.
44Special-purpose Registers
Chapter 4
Systems Architecture
- Used by the CPU for a specific purpose.
- Special-purpose registers Instruction register,
Instruction pointer, Program status word.
45Special-purpose Registers
Chapter 4
Systems Architecture
- Instruction register stores the instruction the
control unit fetches from memory. - Instruction pointer stores the location of the
next instruction to be fetched by the - Program status word stores data that describes
the status of the CPU and currently executing
program.
46Word Size
Chapter 4
Systems Architecture
- Word unit of data that contains a fixed number
of bytes or bits. The amount of data that a CPU
processes at one time.
47The Physical CPU
Chapter 4
Systems Architecture
- Switches and Gates
- Electrical Properties
- Processor Fabrication
48The Physical CPU
Chapter 4
Systems Architecture
- Switches and Gates the basic building blocks
of computer processing circuits are electrical
gates. - Basic processing functions on binary digits
are performed with the logical functions (AND,
OR, XOR, and NOT)
49The Physical CPU
Chapter 4
Systems Architecture
50The Physical CPU
Chapter 4
Systems Architecture
- More complex processing functions require more
complicated arrangements of gates. - A full-adder and half-address can be formed
using the basic gates.
51The Physical CPU
Chapter 4
Systems Architecture
52Electrical Properties
Chapter 4
Systems Architecture
- Conductivity
- Resistance
- Heat
- Speed of Circuit Length
53Electrical Properties
Chapter 4
Systems Architecture
- Conductivity the ability of an element or
substance to enable electron flow. - Resistance the loss of electrical power that
occurs within a conductor.
54Electrical Properties
Chapter 4
Systems Architecture
- Heat the negative effects of heat on
electrical conductivity are damage to the
conductor and changes in the inherent resistance
of the conductor. - Heat Sink an object specifically designed to
absorb heat and rapidly dissipate it using air or
water movement.
55Electrical Properties
Chapter 4
Systems Architecture
56Electrical Properties
Chapter 4
Systems Architecture
- Speed and Circuit Length Electrons move
through the wires and switches of a processing
circuit at the speed of light (180,000 miles per
second). - The time required is a function of the length of
the circuit and the speed of light.
57Processor Fabrication
Chapter 4
Systems Architecture
- Transistors and Integrated Circuits
- Microchips and Microprocessors
58Processor Fabrication
Chapter 4
Systems Architecture
- Transistors and Integrated Circuits
transistors are made of semiconductor material
that has been treated with chemical impurities to
enhance the semiconducting effects. - Integrated Circuit implements several
transistors and their interconnections on a
single chip.
59Processor Fabrication
Chapter 4
Systems Architecture
- Microchips and Microprocessors
- A microprocessor is a microchip that contains
all of the circuits and connections that
implement a CPU.
60Processor Fabrication
Chapter 4
Systems Architecture
61Current Technology Capabilities and Limitations
Chapter 4
Systems Architecture
62Current Technology Capabilities and Limitations
Chapter 4
Systems Architecture
- Moores Law observed that the rate of
increase in transistor density on microchips had
increased steadily, roughly doubling every 18 to
24 months.
63Chapter 4
Systems Architecture
64Current Technology Capabilities and Limitations
Chapter 4
Systems Architecture
-
- Rocks Law states that the cost of
fabrication facilities for the latest generation
of chips has doubled every four years.
65Chapter 4
Systems Architecture
66Future Trends
Chapter 4
Systems Architecture
- Optical Processing
- Electro-Optical Processing
- Quantum Processing
67Future Trends
Chapter 4
Systems Architecture
- Optical Processing
- Could eliminate interconnection and simplify
fabrication problems. - It is possible to connect fiber optic devices
without wires.
68Future Trends
Chapter 4
Systems Architecture
- Electro-Optical Processing
- Can become the interface between semiconductor
processors and purely optical memory and storage
devices. - Can be used to fabricate conventional
semiconductors.
69Future Trends
Chapter 4
Systems Architecture
- Quantum Processing
- Uses quantum states to simultaneously encode two
bits, called a qubit. - Uses quantum processing devices to perform
computations.
70Summary
Chapter 4
Systems Architecture
- The CPU continuously alternates between the
instruction, or fetch cycle and execution cycle. - Primitive CPU instructions can be classified into
three types - Data movement
- Data transformation
- Sequence control
71Summary
Chapter 4
Systems Architecture
- An instruction formation is a template describing
the op code position and the length and the
position, type and length of each operand. - The CPU clock rate is the number of instruction
and execution cycles potentially available in a
fixed time interval.
72Summary
Chapter 4
Systems Architecture
- CPU registers are of two types
- General purpose
- Special purpose
- Word size is the number of bits that a CPU can
process simultaneously. - CPUs are electrical devices implemented as
silicon-based microprocessors.
73Chapter 4
Systems Architecture
74Chapter 4
Systems Architecture
75Chapter 4
Systems Architecture
76Chapter 4
Systems Architecture
77Chapter 4
Systems Architecture