Lecture - Microprocessors
Lecture - Microprocessors
Microprocessors
Dr. Debarun Sengupta
Assistant Professor
Contact: [email protected]
2
Before we begin
3
Before we begin
https://www.techspot.com/review/1872-ryzen-9-on-older-motherboards/ 4
Before we begin
5
Microprocessor
(Common terms used in a microprocessor)
Bus: A bus is a set of conductors intended to transmit data, address, or control information to different
elements in a microprocessor.
Usually, a microprocessor will have three types of buses: Data bus, control bus, and address bus.
Instruction set: Instruction set is the group of commands that a microprocessor can understand. (Assembly
language)
Clock speed: Microprocessor uses a clock signal to control the rate at which instructions are executed,
synchronize other internal components, and to control the data transfer between them. So clock speed refers to
the speed at which a microprocessor executes instructions.
6
Microprocessor
(Common terms used in a microprocessor)
Assembly language: It is a low-level programming language in which there is a very strong correspondence
between the instructions in the language and architecture ‘s machine code instructions.
Assembly language includes human-readable commands, such as mov, add, and sub, while machine language
does not contain any words or even letters
7
Microprocessor
(Common terms used in a microprocessor)
Mnemonic: English word MNEMONIC means “A pattern of letters, ideas, or associations that assists in
remembering something.". So, it's usually used by assembly language programmers to remember the
"OPERATIONS" a machine can do, like "ADD" and "MUL" and "MOV" etc.
8
Microprocessor
(Definition)
What is microprocessor?
Microprocessor is an integrated circuit (IC) which incorporates core functions of a computer’s central
processing unit (CPU).
It is a programmable multipurpose silicon chip, clock driven, register based, accepts binary data as input and
provides output after processing it as per the instructions stored in the memory.
Microprocessor
ALU
Control Unit
Register Array
9
Microprocessor
(What lies within)
What are the underlying components of a microprocessor?
• Registers: Store data and instructions temporarily
• Arithmetic and logic unit: When we perform some operation, the data is fetched from the memory and placed inside
the registers. The operations that we are supposed to perform on the data are carried out in the Arithmetic and logic unit
(ALU).
• Timing and control unit: Timing unit takes care of the sequence of execution of instructions in a code and the required
components necessary to execute the instructions are activated using the control unit.
• Interface: helps the microprocessor in interfacing with the different components of the computer system.
Microprocessor
(What lies within)
Before we dive deep into the world of microprocessors, let us take a moment to appreciate the importance of logic
gates that we learnt throughout the course:
• Remember the basic blocks of a µ-processor ?
• All the components of the µ-processor discussed so far are built using the logic gates; reason why logic gates are called
the basic building blocks of digital computers.
ALU
Addition
Subtraction Some more
AND combinational
OR Registers circuits
XOR Sequential circuits Decoder
Comparison made by Flip-flops MUX
. and latches DeMUX
. Priority encoder
. Control Logic
.
.
Microprocessor
(Evolution of microprocessors)
Let’s take the case of Intel
• Jean Hoerni and Robert Noyce in 1959: Invention of the planar process with Al metallization at Fairchild semiconductor
paved the way for mass production of ICs.
• IC technology witnessed a rapid progress.
• Gordon Earle Moore (then at Fairchild semiconductor; later the co-founder and CEO of Intel) predicted that the number
of transistors on a silicon chip would increase from 50 - 65000 within a decade (1965 – 75).
• Moore’s Law: The number of transistors in an IC will double about every two years.
Robert Noyce
1927 -1990
12
Microprocessor
(Generations of microprocessors)
1st Generation (1971 to 1973) (4-bit microprocessor)
• INTEL created the first microprocessor 4004 that would run at a clock speed of 108 KHz.
• With only 4 bits as the word size, the 4004 could only represent signed numbers in the range -8 to +7, which is indeed
very small.
13
Microprocessor
(Generations of microprocessors)
• INTEL created the first 8-bit microprocessor 8008. Intel 8080 was commercially popular.
• With 8 bits as the word size, it could represent signed numbers in the range of −128 to +127.
14
Microprocessor
(Generations of microprocessors)
3rd Generation (1979 to 1980) (16-bit microprocessor)
• With 16-bit word size, it was possible to represent signed numbers in the range of −32,768 to +32,767, which is quite a
decent range for performing arithmetic calculations.
Motorola 68010
Intel 80186
15
Microprocessor
(Generations of microprocessors)
4th Generation (1981 to 1995) (32-bit microprocessor)
• In the early 80s, Intel released the 32-bit processor, the Intel 80386, by using HCMOS fabrication.
• With 32-bit word size, it was possible to represent signed numbers in the range ±2×109, which is quite a large range for
performing arithmetic calculations.
• In the early 90s, Intel released 80586 by the name Pentium processor.
• The Pentium 4 released in 2000 has 42 Million transistors worked with a clock frequency of 1.5 GHz and is rated for 1500
MIPS (Million instructions per second).
• Uses: can run any software written for MS-DOS, windows, and Linux.
16
Microprocessor
(Generations of microprocessors)
5th Generation (1995 till now) (64-bit microprocessor)
• From 1995 to until now this generation has been bringing out high-performance and high-speed processors that make use
of 64-bit processors.
• Uses: can run any software written for MS-DOS, windows, and Linux.
17
Introduction to 8085 µP
https://grd31121997.blogspot.com/2016/03/
Introduction to 8085 µP
(Pins of 8085)
• Pins 1 and 2: an external oscillator can be connected between the pins X1 and X2 to drive the
internal clock logic. Usually, we connect a piezoelectric crystal (typically quartz based).
• The quartz crystal oscillator produces a train of continuous square wave pulses whose
fundamental frequency is controlled by the crystal itself. This fundamental frequency regulates the
flow of instructions that controls the processor.
• Specifically for 8085, we use a 6.25 MHz quartz oscillator which is twice the operating frequency
of 8085.
• Note: The input frequency of the clock should be twice the operating frequency. Thus, to obtain
320 ns clock (3.125 MHz frequency) the input clock frequency should be 6.250 MHz.
https://grd31121997.blogspot.com/2016/03/
Introduction to 8085 µP
(Pins of 8085)