Dr. I. Wanniarachchi
Department of Physics
University of Sri Jayewardenepura
Introduction to Microprocessors(PHY 309 1.0)
Lecture hours - 15 (maximum)
Assignment - 01 or 02
Evaluation Method
The Final Exam will be Comprehensive, i.e. cover everything
we have done during the semester.
9. Microprocessor vs Microcontroller
10. Applications
A computer is a machine which can Input the data,
Process the data and Output the results.
Process
Input Output
World First
Micro-Processor
(Intel 4004, 1971)
First generation (1939-1954) - vacuum tube
https://www.intel.com/content/www/us/en/history/history-robert-noyce-man-
behind-microchip-video.html
https://www.intel.com/content/www/us/en/silicon-innovations/22nm-technology-
how-transistors-are-made-video.html
https://www.youtube.com/watch?v=d9SWNLZvA8g
https://www.youtube.com/watch?v=YIkMaQJSyP8
https://www.youtube.com/watch?v=-KTKg0Y1snQ
https://www.youtube.com/watch?v=MpOysiXqROA
Other Intel Processors
80186 1982
80286 1982
Date
Processor was first
introduced.
Intel Microprocessors Progression
Transistors
Number of transistors on the
chip.
Intel Microprocessors Progression
Microns
Width of the smallest wire on the chip. (
Human hair is 100 microns thick ).
Intel Microprocessors Progression
Clock speed
Data width
MIPS
Clock speed
Number of clock cycles per one
instruction =
Instructions per second ( MIPS )
Number of clock cycles per one 5 x 106 Hz 500
instruction = = ~ 15
0.33 x 106 33
Answer :
8088 microprocessor use 15 clock cycles for executing one
instruction
Calculate the speed of instruction execution
for 8088 M.P.
1
15
5 x 106 Hz
3 x 10-6 s
Example -02
Calculate the number of clock cycles use for executing one instruction for
Pentium IV microprocessor.
Clock speed – 1.5GHz
MIPS – 1700
Answer :
Pentium IV microprocessor use 1 clock cycles for executing one instruction
3 x 10-6 s
6.67 x 10-10 s
4.5 x 103
Microprocessor
Bus
Control
unit
Datapath
ALU
Output Input
Reg. Memory
units units
von Neumann Architecture
Processor
Memory Input/Output
1 1
2
3 2
4 3 One bit
5 Memory Address
6 4 Memory Cell
7 5
8 6
9
7
10
11 8
12
9
13
14 10
. 11
.
12
.
.
A machine language with instructions performing simple
operations on elementary operands
Central
Storage Processing
Unit
Memory
System Bus Model
Address bus
Data bus
Control bus
Inside a CPU
Early CPUs are split into three main sections:
ALU (Arithmetic & Logic Unit) — this is a circuit that performs calculations and logical
comparisons.
Registers — numbers that are being processed are stored here. Each register is "word"-
sized and can be accessed at high-speed.
Instruction Decoder — this controls all other parts of the CPU, sending signals in preset
patterns to shift data between registers, the ALU and the main data and address buses.
Control Unit
A, B, C, D Register (A - Accumulator)
Accumulator (A, or ACC)
A, B, C, D Registers
45
Important
Characteristics of Microprocessors
Clock speed
Instruction set
Fetch the Instruction from the memory.
47
Fetch an instruction from the memory location
pointed by Program Counter (PC)
Increment PC by 1
Execute instruction
48
Fetch an instruction from the memory.
( Read instruction from memory )
The control bus holds the information for reading the memory
location and the data bus holds the instruction from the
memory which is stored into the instruction register (IR).
MOV A,5 5
+1 32
FETCH
EXECUTE
MOV B,4 5
+1 3
4
FETCH
ADD A,B 5
4
c
+1 45
EXECUTE
ADD A,B 5
9
4
5 4
+
FETCH
MOV [10],A 95
+1 65
EXECUTE
MOV [10],A 95
65
10
Fetch-Execute Cycle
FETCH-EXECUTE CYCLE
unless modified by
an interrupt,
a reset signalinstruction etc.
a HALT
End of Part 1