Chapter 3A
Chapter 3A
Sciences
Topic Outline
Introduction to Microprocessor
Processor Machine Cycle
CPU Components
Processor
Clock
Register
7-2
Faculty of Computer and Mathematical
Sciences
Microprocessor Architecture
What is a microprocessor?
– Contained on a single integrated circuit called a
processor (micro) that is located on the motherboard.
– Brain of the computer
– It interprets and carries out the basic instructions that
operate a computer.
7-3
Faculty of Computer and Mathematical
Sciences
Microprocessor Architecture
– Also called the CPU
– A microprocessor or processor is the heart of the
computer or any computing device
– It is a semiconductor chip which can be
programmed to do various functions and performs
all the computational tasks, calculations and data
processing etc. inside the computer.
7-4
Faculty of Computer and Mathematical
Sciences
Microprocessor Architecture
Today, there are several different manufactures of
computer processors. However, Intel and AMD are the
leaders in the PC market.
Example of microprocessor are Intel Core i7-3770K Quad-
7-5
Faculty of Computer and Mathematical
Sciences
Microprocessor Architecture
7-6
Faculty of Computer and Mathematical
Sciences
CPU Components
– Contains 4 major components :
• Control unit (CU)
• Arithmetic Logic Unit (ALU)
• Registers
• System Clock
7-7
Faculty of Computer and Mathematical
Sciences
CPU Component
7-8
Faculty of Computer and Mathematical
Sciences
Memory
7-12
Faculty of Computer and Mathematical
Sciences
Comparator
Shifter
AL Logic
U
Register
Control of ALU
Faculty of Computer and Mathematical
Sciences
Registers
• A single, permanent storage location within the CPU
used for particular defined purpose.
• Used to hold binary value (shorten using Hexadecimal)
temporarily for
– Storage,
– Manipulation, and/or
– Simple calculations.
• Register is the basic working components of the CPU.
• Each register serves a particular purpose.
Faculty of Computer and Mathematical
Sciences
Registers
A register may hold:
Registers
Four primary operations by registers:
Registers
Control Unit contains several important register :-
• Instruction Register (IR)
– Holds the actual/current instruction being executed by
computer.
• Program Counter (PC)
– Both a counter and a register.
– The address in the program counter register is always
the address of the next instruction to be executed.
– The counter portion of the device generates sequential
address numbers.
Faculty of Computer and Mathematical
Sciences
Registers
• Program Counter (cont)
– When the current instruction is finished, It then
increments, (adds 1 to the address)
– It then generate and puts the number (new address) in
the counter register (PC).
– the program counter generates an address and places
it on the address bus.
Faculty of Computer and Mathematical
Sciences
Registers
• Program Counter (cont)
– When the current instruction is finished, the above
steps are repeated.
– Thus, the program counter continually generates
sequential address.
Faculty of Computer and Mathematical
Sciences
Registers
• Memory Address Register (MAR)
– Holds the address of a memory location.
Registers
• Status Register (Flags)
– Allow computers to keep track of special condition
such as:
Arithmetic carry, sign and
overflow
Power failure
Registers
• Status Register (Flags) - cont
System Clock
• The system clock is a device that produces periodic
sequence of pulses to control the timing of all computer
operations.
• These pulses define machine cycles.
• During each machine cycle, some activity occurs, such
as the execution of a micro-instruction.
• The interval between corresponding edges of two
consecutive pulses is called the clock cycle time.
• The pace of the clock or the clock speed is measured by
the number of cycles (ticks) per second.
Faculty of Computer and Mathematical
Sciences
System Clock
• Each tick is a clock cycle that determines when the next
step in the machine cycle will occur
– MHz – one million ticks per second of system clock
theoretically, capable of executing one million
instructions per second
– GHz – one billion ticks per second of system clock
(MHz : 1 MHz = 1 million pulses per second)
• Therefore the faster the clock speed, the more
instructions the processor can execute per second.
• In some cases several instructions can be executed in a
single clock tick.
Faculty of Computer and Mathematical
Sciences
Bus
• All of the CPU elements are connected together in a
bus structure
• A bus:
– Parallel electrical lines or paths connecting a
source to a destination
– A common path used for specific exchange of data
between various parts of CPU
7-31
Faculty of Computer and Mathematical
Sciences
7-32
Faculty of Computer and Mathematical
Sciences
7-34
Faculty of Computer and Mathematical
Sciences
7-35
Faculty of Computer and Mathematical
Sciences
STEP 1 : PC MAR
- this will result in the instruction being
transferred from the specified memory location to MDR 7-37
Faculty of Computer and Mathematical
Sciences
7-39
Faculty of Computer and Mathematical
Sciences
7-40
Faculty of Computer and Mathematical
Sciences
7-41
Faculty of Computer and Mathematical
Sciences
7-42
Faculty of Computer and Mathematical
Sciences
7-43
Faculty of Computer and Mathematical
Sciences
7-44
Faculty of Computer and Mathematical
Sciences
7-45