1 Chapter-1
1 Chapter-1
1 Chapter-1
MICROPROCESSORS
Compiled by: Seble N.
What is Microprocessor?
2
Examples
Pentium, AMD , a PowerPC, a Sun-SPARC or any of the many
other brands and types of microprocessors
Function of microprocessors
3
Real Mode
One program at a time
Protected Mode
Can run more than one program concurrently and protect them
from each other
Virtual Mode
The processor can swap portion of the memory to the hard disk;
in this way programs running concurrently will have more space
to operate
Characteristics of microprocessors
6
Instruction set
the set of instructions that a microprocessor can understand
or execute
Word length
refers to the number of bits a processor can process at a
time
Eg. a 4-bit processor means the ALU can perform a 4-bit data
operation at a time
the longer the word length is the more powerful the
processor is and can process data at a faster speed as
compared to processor with shorter word length
Characteristics of microprocessors
7
Speed
measured in HZ = 1cycle/second
Some processors may complete a single instruction per
cycle, or may take one or more cycles
a 2 GHZ CPU may compute 2 billion instructions per second,
if it is able to complete a single instruction in a single cycle
butif it takes 2 cycles to complete a single instruction then it
is only able to compute 1 billion instructions per second
Cache Size
The size of the cache memory
Characteristics of microprocessors …
8
Size of registers
refers to the number of bits a microprocessor’s register can
hold at a time
Superscalar Microprocessors
Classes of microprocessors …
10
Intel
isgenerally regarded as the company that sets the
benchmark for others to follow
From the earlier Pentium and Centrino microprocessors to the
Core 2, Core i series
Atom chips for mobiles
The high-end Itanium and Xeon processors for server
applications
Over 90% of laptops use Intel microprocessors
HP, Dell, Apple, Samsung, Sony, Toshiba …
Top CPU manufacturers
14
Intel
AMD
Qualcomm
Mediatek
NVIDIA
IBM
Samsung
Motorola
Hewlett-Packard (hp)
Dell
Acer
…
Intel microprocessors
15
Intel 4004
Intel 8080
Intel 8085
Intel 8088
Intel 8086
Intel 80286
Intel 80386
Intel 80486
Pentium
Pentium II and III
Dual Core/ Core
Core i3, i5, i7
Intel microprocessors …
16
4-bits processors
Intel 4004
1971- the first commercially available
processor as well as the first complete CPU on
a single chip
a 4-bit processor: able to operate on 4 bits of
data at a time
4-bit data bus
had 2,300 transistors
clock speed of 108KHZ
640 bytes addressable memory
was designed for use in calculator but also
used
In traffic light controller, Blood analyzers, and
even in the NASA pioneer 10 deep space probe
Intel microprocessors …
17
8-bits processors
Intel 8008
first 8-bit microprocessor
200KHz clock speed and 3,500 transistors,
had 6 , 8-bit registers
8-bit data bus
can address up to 16KB
Intel 8080
1974 with 4,500 transistors with up to 2-3MHz
can address up to 64KB
became famous for being used in the Altair 8800 as well as in Boeing's AGM-
86 cruise missile
Intel 8085
was popular as an embedded controller
ran at 5MHZ and contained 6500 transistors
Intel microprocessors …
18
16-bits processors
Intel 8086
1978, first x86 family microprocessor
16-bit: all registers, internal and external buses
Used 20-bit addressing
Can address 1 million bytes of internal memory
29,000 transistors, 5MHz initially
Intel 8088
was identical to the 8086 with the exception of its 8-bit
internal bus
The IBM 5150, the first IBM PC, came with the 8088
Intel microprocessors …
19
16-bits processors
Intel 80286
can operate on real and protected mode
134,000 transistors, 6M-8MHz initially
runs faster than the preceding processors
can address up to 16 million bytes of internal memory
was popular in IBM-PC AT and AT PC clones
Intel microprocessors …
20
32-bits processors
Intel 80386
the first 32-bit microprocessor
32 bit registers & data bus
canoperate on protected mode and supports virtual
mode
275,000 transistors
12MHz initially, later 33MHz
Andy Grove decided to single-source producing 386 to
AMD
Later changed in 1991 by AMD AM386
Intel microprocessors …
22
32-bits processors
Pentium (Pentium I)
32 bit registers
64 bit data bus
Has a high speed cache memory
It can execute more than one instruction per clock cycle
Pentium II and III
Have a dual independent bus that provides separate
path to the system cache and memory
On-die L2 cache
Intel microprocessors …
23
64-bits processors
New instruction set, not at all related to x86.
Itanium
Released May 29, 2001
2MB cache
Itanium 2
Released July 2002
1.86-3.00 GHz
a CISC processor
This feature enables the BIU to look ahead and prefetch instructions
so that there is always a queue of instructions ready to execute
Internal Memory of 8086
32
8086
was able to address 1MB of memory
has 20bits wide memory address
Intel 8086- Memory
33
RAM
From the 1MB of memory, the first
640K is base RAM
is used for temporary program
storage
ROM
The 8086 Basic Input/Output System
(BIOS) begins at address 768K and
handles
I/O devices, such as a hard disk
controller
ROM beginning at 960K controls the
computer’s basic functions
Power-On Self-Test, dot patterns for
graphics, and the disk self-loader
Memory Segments
34
In real mode, the three main segments are code, data, and
stack
Code Segment:
Contains the machine instructions to be executed
The first executable instruction is at the start of this segment, and the
operating system links to that location to begin program execution
Data Segment:
Contains a program’s defined data, constants, and work areas
Stack Segment:
Contains any data and addresses that the program needs to save
temporarily for use on subroutines
A program may contain one or more segments, which may
vary in size, and can be defined in any sequence
8086/8088 Registers
36
Address registers
used to store memory addresses that point to locations in
memory where data will be retrieved or stored
8086/8088 Data Registers
37
AX register
is used for operations involving input/output and arithmetic
BX register
given the name base register because it is the only general
purpose register that can be used as an index in indirect
addressing
can also be used for computations
CX register
usually used to control the number of times a loop is repeated or
a value to shift bits left or right in bit shifting operations
can also be used for computations
DX register
is used for operations involving input/output and most arithmetic
8086/8088 Address Registers
39
Is the status register in Intel x86 microprocessors that shows the current
state of the processor
In 8086 flags register is 16 bits wide, among which 9 are active
They are modified automatically by the processor after instruction
execution, which allows to determine the type of the result and also
conditions to transfer control to other parts of the program
Flags Register …
44