SlideShare a Scribd company logo
8086/ 8088 soft architecture
Presentation By sania Gul 2
8086 /8088 System Specification
8086 8088
Data bus = 16 bits Data bus = 8 bits
Address bus = 20 bits Address bus = 20 bits
Memory supported = 220
=1MB Memory supported = 220
=1MB
Memory Address Space
=00000H~FFFFFH
Memory Address Space
=00000H~FFFFFH
I/O address size = 16 bits I/O address size = 16 bits
I/O address space = 0000H ~ FFFFH I/O address space = 0000H ~ FFFFH
Active segments inside memory = 4 Active segments inside memory = 4
Active Segments CS, DS, SS, ES Active Segments CS, DS, SS, ES
Segments Size = 64 KB Segments Size = 64 KB
Processor internal register size = 16 bits Processor internal register size = 16 bits
Data size supported = 8 bits, 16 bits Data size supported = 8 bits, 16 bits
Pipelining Supported Pipelining Supported
Presentation By sania Gul 3
Architecture of 8088/ 8086
• 2 main parts
• Bus Interface unit
(BIU)
• Execution Unit (EU)
Presentation By sania Gul 4
8086 Parallel processing
• Fetch
• Decode
• Execute
BIU
EU
Dividing the work between BIU & EU speeds up processing.
Presentation By sania Gul 5
Function of BIU
BIU connects the 8086/ 8088 to the outside
world. Its functions are:
1. Sends out addresses for memory
locations.
2. Fetch instruction from the memory.
3. Reads/ writes data to memory
4. Sends out addresses to I/O ports.
5. Reads/ writes data to I/O ports
Presentation By sania Gul 6
Function of EU
The function of EU is
1. Tells BIU the addresses from where to
fetch data & instructions.
2. Decode & execute the instruction.
7
Inside 8086/8088
Presentation By sania Gul 8
Main parts of EU
• Main components of EU are
1. Arithmetic Logic Unit (ALU)
2. Status & control flags
3. General purpose registers & temporary
Operand registers
Presentation By sania Gul 9
Arithmetic Logic Unit (ALU)
• The ALU performs the arithmetic, logic &
shift operations required by an instruction.
Presentation By sania Gul 10
FLAGS
• 8086 has 16 bit flag register.
• Contains 9 active flags.
There are two types of flags in 8086
1. Conditional flags  6 flags, set or reset
by EU on the basis of results of some
arithmetic operation.
2. Control flags  3 flags, used to control
certain operation of the processor.
Presentation By sania Gul 11
8086/8088 Flags
12
Status Flags
Status flag Setting Condition (1) Resetting Condition
(0)
CF carry-out or a borrow-in to the MSB of the
result during the execution of an
arithmetic instruction.
otherwise
PF Result has an even number of 1’s Otherwise
ZF When the result is zero. Otherwise
SF When the MSB of result is 1
(-ve result)
Otherwise
(+ve result)
OF Signed result is out of range. Otherwise
AF When there is carry-out or borrow-in to
the lower nibble of AL
Otherwise
Presentation By sania Gul 13
Control flags
Control Flag When Set
TF the 8088 goes into the single-step mode of
operation.
IF Mask-able interrupts are allowed at the INT
pin of microprocessor, otherwise not.
DF String instruction automatically decrements
the address. Otherwise increments the
address.
Presentation By sania Gul 14
Main Components of BIU
1. Instruction Queue
2. Segment Register
3. Instruction pointer
4. Address generation and Bus control
Presentation By sania Gul 15
Instruction Queue
8086 employ parallel processing
• When Execution unit is busy in decoding &
executing current instruction, the buses of 8086
may not be in use.
• At that time BIU use the buses to fetch next six
instructions from the memory & store them in a
FIFO register called Instruction Queue.
• When EU is ready for the next instruction it
simply takes it from the Queue.
Presentation By sania Gul 16
Pipelining
• Fetching of the next instruction, while the current
instruction executes is called pipelining.
Presentation By sania Gul 17
Pipelining in 8086
Presentation By sania Gul 18
Memory Segmentation
Presentation By sania Gul 19
Adjacent, Dis-jointed & Overlapping
Segments
Presentation By sania Gul 20
Segment Registers
There are 4 sixteen bit segment registers in
8086/8088
1. CS
2. DS
3. SS
4. ES
Holds the upper sixteen bits of the starting address
for each of the active segments. The complete
physical memory address is 20 bits & is
obtained by appending four 0 bits= 0H with this
starting 16 bits of address.
Presentation By sania Gul 21
Starting physical address of the
segment
Presentation By sania Gul 22
Instruction Pointer (IP)
• It is a 16 bit register, which contains the offset of
the next instruction byte in Code segment.
• BIU uses IP & CS registers to generate the 20
bit address of the instruction to be fetched from
the code segment of memory.
• OFFSET: it is the distance in bytes of any
storage location from the segment base address
of the memory.
Presentation By sania Gul 23
Stack Segment Register SS &
Stack pointer SP
• SS contains upper 16 bits of
the starting address of the
stack segment. Data is always
pushed or popped in this
segment as WORDS never as
BYTE.
• SP contain 16 bit offset from
the start of the stack segment
to the TOP of Stack (TOS).
Initial default value of SP is
FFFE H.
• The value of SP is
decremented by 2 after every
word pushing & incremented
by 2 after every word popping.
Presentation By sania Gul 24
Other pointers & index registers
1. Base pointer (BP)
2. Source Index (SI)
3. Destination Index (DI)
They are used to hold offset address of data
in one of the segments
Presentation By sania Gul 25
General purpose Data Registers
• There are four 16 bit
data registers AX, BX,
CX, DX.
• Each of them can
store 16 bit data or
can be divided in 2
parts to hold separate
8 bit data.
AX
BX
CX
DX
AH AL
BH BL
CH CL
DH DL
A for Accumulator
B for Base
C for Count
D for Data
Presentation By sania Gul 26
Address Generation
Presentation By sania Gul 27
Example of Address Generation
Presentation By sania Gul 28
Default Segment & OFFSET pairs
• The physical address of
Data or instruction is
calculated by using the
combination of default
pairs. If [BX] is given in
the instruction, physical
address of data is
automatically calculated
as
PA = DS : BX = DS0 H + BX
OFFSET Default Segment
Register
IP CS
SP SS
BP SS
DI DS
SI DS
BX DS
Presentation By sania Gul 29
Different OFFSETS & Segment Address may result in
same Physical Address
30
Data Types Supported
Data Type Range (8 bits) Range (16 bits)
Unsigned numbers 0 D~ 255 D 0 D~ 65535 D
Signed numbers -128 D ~ -1 D
0 D~ +127 D
-32768 D ~ -1 D
0 ~ +32767 D
Packed BCD 2 BCD digits
(BCD digit take 4 bits & range from
1 to 9 H)
4 BCD digits
Unpacked BCD 1 BCD digit
( the upper nibble is 0 & the lower
nibble is BCD digit)
2 BCD digit
Hexadecimal 00 H ~ FFH 0000H ~ FFFFH
Binary 000 000 00B ~ 111 111 11B 0000 0000 0000 0000 B ~ 1111 1111
1111 1111 B
ASCII One character.
All characters on key board. Use
double Quotes with them in
instruction. E.g. “S”
2 characters.
Presentation By sania Gul 31
Different Data size
Word
Double Word
Quad Word
Presentation By sania Gul 32
Aligned & Misaligned Words stored
in memory
1. The words starting at an even
address boundary is called
aligned or even address
words.
2. The words starting at an odd
address boundary is called
misaligned or odd address
words.
• Aligned & misaligned words
take 2 Bus cycles in 8088.
• Aligned words take 1 Bus
cycle & misaligned 2 Bus
cycle in 8086.
Presentation By sania Gul 33
Starting Address
• Odd • Even
Presentation By sania Gul 34
Register Storage from memory ↔
register
When storing 16 bit register of µP in memory, Higher order byte of a processor register
is always stored at higher memory address
& L.O Byte at lower address. & when the word is transferred from memory,
the higher addressed byte is transferred to H.O Byte & lower addressed bye to L.O Byte
Of µP register.
Presentation By sania Gul 35
Pointer Storage in memory
Offset
Segment register
A pointer is a full address which requires 4 byte of memory
Presentation By sania Gul 36
Memory & I/O (isolated) address
spaces
I/O Address space of PC

More Related Content

What's hot

Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
AMAN SRIVASTAVA
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
George Thomas
 
Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentals
JLoknathDora
 
Amp
AmpAmp
Introduction to Microprocessors
Introduction to MicroprocessorsIntroduction to Microprocessors
Introduction to Microprocessors
Seble Nigussie
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycle
Rani Rahul
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
Apar Pramod
 
Memory interfacing
Memory interfacingMemory interfacing
Memory interfacing
mahalakshmimalini
 
MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...
Rai University
 
Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013
harshalata
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
snehapvs
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture II
Dr.YNM
 
itft-8085 microprocessor
itft-8085 microprocessoritft-8085 microprocessor
itft-8085 microprocessor
Shifali Sharma
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
SAQUIB AHMAD
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
balbirvirdi
 
8085 microprocessor architecture
8085 microprocessor architecture8085 microprocessor architecture
8085 microprocessor architecture
Arashdeepkaur16
 
Introduction to 8085 microprocessor
Introduction to 8085 microprocessorIntroduction to 8085 microprocessor
Introduction to 8085 microprocessor
venkateshkannat
 
Advanced micro -processor
Advanced micro -processorAdvanced micro -processor
Advanced micro -processor
Hinal Lunagariya
 
Processor Basics
Processor BasicsProcessor Basics
Processor Basics
Education Front
 
Input Output
Input OutputInput Output
Input Output
guest0f0fd2c
 

What's hot (20)

Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
The Intel 8086 microprocessor
The Intel 8086 microprocessorThe Intel 8086 microprocessor
The Intel 8086 microprocessor
 
Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentals
 
Amp
AmpAmp
Amp
 
Introduction to Microprocessors
Introduction to MicroprocessorsIntroduction to Microprocessors
Introduction to Microprocessors
 
Clock-8086 bus cycle
Clock-8086 bus cycleClock-8086 bus cycle
Clock-8086 bus cycle
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Memory interfacing
Memory interfacingMemory interfacing
Memory interfacing
 
MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...
 
Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013Microprocessor 8085 architecture ppt. april 2013
Microprocessor 8085 architecture ppt. april 2013
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture II
 
itft-8085 microprocessor
itft-8085 microprocessoritft-8085 microprocessor
itft-8085 microprocessor
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
Memory intrface and addrs modes
Memory intrface and addrs modesMemory intrface and addrs modes
Memory intrface and addrs modes
 
8085 microprocessor architecture
8085 microprocessor architecture8085 microprocessor architecture
8085 microprocessor architecture
 
Introduction to 8085 microprocessor
Introduction to 8085 microprocessorIntroduction to 8085 microprocessor
Introduction to 8085 microprocessor
 
Advanced micro -processor
Advanced micro -processorAdvanced micro -processor
Advanced micro -processor
 
Processor Basics
Processor BasicsProcessor Basics
Processor Basics
 
Input Output
Input OutputInput Output
Input Output
 

Viewers also liked

Internal microprocessor architecture
Internal microprocessor architectureInternal microprocessor architecture
Internal microprocessor architecture
University of Gujrat, Pakistan
 
Blood Pressure - The risk factors
Blood Pressure - The risk factorsBlood Pressure - The risk factors
Blood Pressure - The risk factors
PINAKI ROY
 
Les metamorphose1
Les metamorphose1Les metamorphose1
Les metamorphose1
PINAKI ROY
 
Fm industrial data summary 2012
Fm industrial data summary 2012Fm industrial data summary 2012
Fm industrial data summary 2012
filtermag
 
Why you should quit smoking
Why you should quit smokingWhy you should quit smoking
Why you should quit smoking
Danial Sohail
 
BP risk factors
BP risk factorsBP risk factors
BP risk factors
PINAKI ROY
 
Sae paper 881825
Sae paper 881825Sae paper 881825
Sae paper 881825filtermag
 
Practicing oil analysis it's all about size
Practicing oil analysis   it's all about sizePracticing oil analysis   it's all about size
Practicing oil analysis it's all about size
filtermag
 
boiler
boilerboiler
boiler
Waqas Ahmed
 
Little book of leadership ppt
Little book of leadership pptLittle book of leadership ppt
Little book of leadership ppt
PINAKI ROY
 
Two to four wheeler transformable bike
Two to four wheeler transformable bikeTwo to four wheeler transformable bike
Two to four wheeler transformable bike
Danial Sohail
 
Numbers
NumbersNumbers
Numbers
PINAKI ROY
 
Nmlc ef3 module 1
Nmlc ef3 module 1Nmlc ef3 module 1
Nmlc ef3 module 1
John Roy Daulong
 
hybrid vehicles
 hybrid vehicles hybrid vehicles
hybrid vehicles
Waqas Ahmed
 
Survey of NED Auditorium Ground
Survey of NED Auditorium GroundSurvey of NED Auditorium Ground
Survey of NED Auditorium Ground
Danial Sohail
 
Tribology - The WDA Factor
Tribology - The WDA FactorTribology - The WDA Factor
Tribology - The WDA Factor
PINAKI ROY
 
Programming lab 1 lecture
Programming lab 1 lectureProgramming lab 1 lecture
Programming lab 1 lecture
iqbal ahmad
 

Viewers also liked (17)

Internal microprocessor architecture
Internal microprocessor architectureInternal microprocessor architecture
Internal microprocessor architecture
 
Blood Pressure - The risk factors
Blood Pressure - The risk factorsBlood Pressure - The risk factors
Blood Pressure - The risk factors
 
Les metamorphose1
Les metamorphose1Les metamorphose1
Les metamorphose1
 
Fm industrial data summary 2012
Fm industrial data summary 2012Fm industrial data summary 2012
Fm industrial data summary 2012
 
Why you should quit smoking
Why you should quit smokingWhy you should quit smoking
Why you should quit smoking
 
BP risk factors
BP risk factorsBP risk factors
BP risk factors
 
Sae paper 881825
Sae paper 881825Sae paper 881825
Sae paper 881825
 
Practicing oil analysis it's all about size
Practicing oil analysis   it's all about sizePracticing oil analysis   it's all about size
Practicing oil analysis it's all about size
 
boiler
boilerboiler
boiler
 
Little book of leadership ppt
Little book of leadership pptLittle book of leadership ppt
Little book of leadership ppt
 
Two to four wheeler transformable bike
Two to four wheeler transformable bikeTwo to four wheeler transformable bike
Two to four wheeler transformable bike
 
Numbers
NumbersNumbers
Numbers
 
Nmlc ef3 module 1
Nmlc ef3 module 1Nmlc ef3 module 1
Nmlc ef3 module 1
 
hybrid vehicles
 hybrid vehicles hybrid vehicles
hybrid vehicles
 
Survey of NED Auditorium Ground
Survey of NED Auditorium GroundSurvey of NED Auditorium Ground
Survey of NED Auditorium Ground
 
Tribology - The WDA Factor
Tribology - The WDA FactorTribology - The WDA Factor
Tribology - The WDA Factor
 
Programming lab 1 lecture
Programming lab 1 lectureProgramming lab 1 lecture
Programming lab 1 lecture
 

Similar to microprocessor Lec 02 mic

The 8086 microprocessor
The  8086 microprocessorThe  8086 microprocessor
The 8086 microprocessor
Adarsh College, Hingoli
 
8086 Architecture ppt.pdf
8086 Architecture ppt.pdf8086 Architecture ppt.pdf
8086 Architecture ppt.pdf
UmamaheswariV4
 
8086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp028086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp02
raone1989
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
Poojith Chowdhary
 
8086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp028086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp02
raone1989
 
8086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp028086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp02
Murad Mondol
 
8086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp028086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp02
raone1989
 
26677766 8086-microprocessor-architecture-110905125037-phpapp02
26677766 8086-microprocessor-architecture-110905125037-phpapp0226677766 8086-microprocessor-architecture-110905125037-phpapp02
26677766 8086-microprocessor-architecture-110905125037-phpapp02
Avijeet Negel
 
Lecture2
Lecture2Lecture2
Architecture of 8086 microprocessor
Architecture of  8086 microprocessorArchitecture of  8086 microprocessor
Architecture of 8086 microprocessor
Anirban Saha Anik
 
8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt
Madhan7771
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
jemimajerome
 
Mpmc
MpmcMpmc
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture
Saurabh Jain
 
8086
8086 8086
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
destaw belay
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
Siva Raman
 
introduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationintroduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's application
DrVikasMahor
 
8086 architecture
8086 architecture8086 architecture
8086 architecture
Self-Employed
 
SAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSORSAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA
 

Similar to microprocessor Lec 02 mic (20)

The 8086 microprocessor
The  8086 microprocessorThe  8086 microprocessor
The 8086 microprocessor
 
8086 Architecture ppt.pdf
8086 Architecture ppt.pdf8086 Architecture ppt.pdf
8086 Architecture ppt.pdf
 
8086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp028086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp02
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
8086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp028086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp02
 
8086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp028086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp02
 
8086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp028086microprocessor 130821100244-phpapp02
8086microprocessor 130821100244-phpapp02
 
26677766 8086-microprocessor-architecture-110905125037-phpapp02
26677766 8086-microprocessor-architecture-110905125037-phpapp0226677766 8086-microprocessor-architecture-110905125037-phpapp02
26677766 8086-microprocessor-architecture-110905125037-phpapp02
 
Lecture2
Lecture2Lecture2
Lecture2
 
Architecture of 8086 microprocessor
Architecture of  8086 microprocessorArchitecture of  8086 microprocessor
Architecture of 8086 microprocessor
 
8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt8086-microprocessor-architecture.ppt
8086-microprocessor-architecture.ppt
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 
Mpmc
MpmcMpmc
Mpmc
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture
 
8086
8086 8086
8086
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 
introduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's applicationintroduction to Architecture of 8086 and it's application
introduction to Architecture of 8086 and it's application
 
8086 architecture
8086 architecture8086 architecture
8086 architecture
 
SAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSORSAURABH MITRA-8086 MICROPROCESSOR
SAURABH MITRA-8086 MICROPROCESSOR
 

More from iqbal ahmad

Probability, random variables and random signal principles 2nd ed. p. peebles
Probability, random variables and random signal principles 2nd ed.   p. peeblesProbability, random variables and random signal principles 2nd ed.   p. peebles
Probability, random variables and random signal principles 2nd ed. p. peebles
iqbal ahmad
 
signal and system Lecture 3
signal and system Lecture 3signal and system Lecture 3
signal and system Lecture 3
iqbal ahmad
 
signal and system Lecture 2
signal and system Lecture 2signal and system Lecture 2
signal and system Lecture 2
iqbal ahmad
 
signal and system Lecture 1
signal and system Lecture 1signal and system Lecture 1
signal and system Lecture 1
iqbal ahmad
 
signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)
iqbal ahmad
 
signal and system solution Quiz2
signal and system solution Quiz2signal and system solution Quiz2
signal and system solution Quiz2
iqbal ahmad
 
Hw1 solution
Hw1 solutionHw1 solution
Hw1 solution
iqbal ahmad
 
signal and system Hw2 solution
signal and system Hw2 solutionsignal and system Hw2 solution
signal and system Hw2 solution
iqbal ahmad
 
Capacitors and inductors
Capacitors and inductorsCapacitors and inductors
Capacitors and inductors
iqbal ahmad
 
Second order ena notes
Second order ena notesSecond order ena notes
Second order ena notes
iqbal ahmad
 
First order ena notes
First order ena notesFirst order ena notes
First order ena notes
iqbal ahmad
 

More from iqbal ahmad (11)

Probability, random variables and random signal principles 2nd ed. p. peebles
Probability, random variables and random signal principles 2nd ed.   p. peeblesProbability, random variables and random signal principles 2nd ed.   p. peebles
Probability, random variables and random signal principles 2nd ed. p. peebles
 
signal and system Lecture 3
signal and system Lecture 3signal and system Lecture 3
signal and system Lecture 3
 
signal and system Lecture 2
signal and system Lecture 2signal and system Lecture 2
signal and system Lecture 2
 
signal and system Lecture 1
signal and system Lecture 1signal and system Lecture 1
signal and system Lecture 1
 
signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)signal and system Dirac delta functions (1)
signal and system Dirac delta functions (1)
 
signal and system solution Quiz2
signal and system solution Quiz2signal and system solution Quiz2
signal and system solution Quiz2
 
Hw1 solution
Hw1 solutionHw1 solution
Hw1 solution
 
signal and system Hw2 solution
signal and system Hw2 solutionsignal and system Hw2 solution
signal and system Hw2 solution
 
Capacitors and inductors
Capacitors and inductorsCapacitors and inductors
Capacitors and inductors
 
Second order ena notes
Second order ena notesSecond order ena notes
Second order ena notes
 
First order ena notes
First order ena notesFirst order ena notes
First order ena notes
 

Recently uploaded

spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))
shivani5543
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
zubairahmad848137
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
Las Vegas Warehouse
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
shadow0702a
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
MiscAnnoy1
 

Recently uploaded (20)

spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))gray level transformation unit 3(image processing))
gray level transformation unit 3(image processing))
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
Casting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdfCasting-Defect-inSlab continuous casting.pdf
Casting-Defect-inSlab continuous casting.pdf
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have oneISPM 15 Heat Treated Wood Stamps and why your shipping must have one
ISPM 15 Heat Treated Wood Stamps and why your shipping must have one
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
Use PyCharm for remote debugging of WSL on a Windo cf5c162d672e4e58b4dde5d797...
 
Introduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptxIntroduction to AI Safety (public presentation).pptx
Introduction to AI Safety (public presentation).pptx
 

microprocessor Lec 02 mic

  • 1. 8086/ 8088 soft architecture
  • 2. Presentation By sania Gul 2 8086 /8088 System Specification 8086 8088 Data bus = 16 bits Data bus = 8 bits Address bus = 20 bits Address bus = 20 bits Memory supported = 220 =1MB Memory supported = 220 =1MB Memory Address Space =00000H~FFFFFH Memory Address Space =00000H~FFFFFH I/O address size = 16 bits I/O address size = 16 bits I/O address space = 0000H ~ FFFFH I/O address space = 0000H ~ FFFFH Active segments inside memory = 4 Active segments inside memory = 4 Active Segments CS, DS, SS, ES Active Segments CS, DS, SS, ES Segments Size = 64 KB Segments Size = 64 KB Processor internal register size = 16 bits Processor internal register size = 16 bits Data size supported = 8 bits, 16 bits Data size supported = 8 bits, 16 bits Pipelining Supported Pipelining Supported
  • 3. Presentation By sania Gul 3 Architecture of 8088/ 8086 • 2 main parts • Bus Interface unit (BIU) • Execution Unit (EU)
  • 4. Presentation By sania Gul 4 8086 Parallel processing • Fetch • Decode • Execute BIU EU Dividing the work between BIU & EU speeds up processing.
  • 5. Presentation By sania Gul 5 Function of BIU BIU connects the 8086/ 8088 to the outside world. Its functions are: 1. Sends out addresses for memory locations. 2. Fetch instruction from the memory. 3. Reads/ writes data to memory 4. Sends out addresses to I/O ports. 5. Reads/ writes data to I/O ports
  • 6. Presentation By sania Gul 6 Function of EU The function of EU is 1. Tells BIU the addresses from where to fetch data & instructions. 2. Decode & execute the instruction.
  • 8. Presentation By sania Gul 8 Main parts of EU • Main components of EU are 1. Arithmetic Logic Unit (ALU) 2. Status & control flags 3. General purpose registers & temporary Operand registers
  • 9. Presentation By sania Gul 9 Arithmetic Logic Unit (ALU) • The ALU performs the arithmetic, logic & shift operations required by an instruction.
  • 10. Presentation By sania Gul 10 FLAGS • 8086 has 16 bit flag register. • Contains 9 active flags. There are two types of flags in 8086 1. Conditional flags  6 flags, set or reset by EU on the basis of results of some arithmetic operation. 2. Control flags  3 flags, used to control certain operation of the processor.
  • 11. Presentation By sania Gul 11 8086/8088 Flags
  • 12. 12 Status Flags Status flag Setting Condition (1) Resetting Condition (0) CF carry-out or a borrow-in to the MSB of the result during the execution of an arithmetic instruction. otherwise PF Result has an even number of 1’s Otherwise ZF When the result is zero. Otherwise SF When the MSB of result is 1 (-ve result) Otherwise (+ve result) OF Signed result is out of range. Otherwise AF When there is carry-out or borrow-in to the lower nibble of AL Otherwise
  • 13. Presentation By sania Gul 13 Control flags Control Flag When Set TF the 8088 goes into the single-step mode of operation. IF Mask-able interrupts are allowed at the INT pin of microprocessor, otherwise not. DF String instruction automatically decrements the address. Otherwise increments the address.
  • 14. Presentation By sania Gul 14 Main Components of BIU 1. Instruction Queue 2. Segment Register 3. Instruction pointer 4. Address generation and Bus control
  • 15. Presentation By sania Gul 15 Instruction Queue 8086 employ parallel processing • When Execution unit is busy in decoding & executing current instruction, the buses of 8086 may not be in use. • At that time BIU use the buses to fetch next six instructions from the memory & store them in a FIFO register called Instruction Queue. • When EU is ready for the next instruction it simply takes it from the Queue.
  • 16. Presentation By sania Gul 16 Pipelining • Fetching of the next instruction, while the current instruction executes is called pipelining.
  • 17. Presentation By sania Gul 17 Pipelining in 8086
  • 18. Presentation By sania Gul 18 Memory Segmentation
  • 19. Presentation By sania Gul 19 Adjacent, Dis-jointed & Overlapping Segments
  • 20. Presentation By sania Gul 20 Segment Registers There are 4 sixteen bit segment registers in 8086/8088 1. CS 2. DS 3. SS 4. ES Holds the upper sixteen bits of the starting address for each of the active segments. The complete physical memory address is 20 bits & is obtained by appending four 0 bits= 0H with this starting 16 bits of address.
  • 21. Presentation By sania Gul 21 Starting physical address of the segment
  • 22. Presentation By sania Gul 22 Instruction Pointer (IP) • It is a 16 bit register, which contains the offset of the next instruction byte in Code segment. • BIU uses IP & CS registers to generate the 20 bit address of the instruction to be fetched from the code segment of memory. • OFFSET: it is the distance in bytes of any storage location from the segment base address of the memory.
  • 23. Presentation By sania Gul 23 Stack Segment Register SS & Stack pointer SP • SS contains upper 16 bits of the starting address of the stack segment. Data is always pushed or popped in this segment as WORDS never as BYTE. • SP contain 16 bit offset from the start of the stack segment to the TOP of Stack (TOS). Initial default value of SP is FFFE H. • The value of SP is decremented by 2 after every word pushing & incremented by 2 after every word popping.
  • 24. Presentation By sania Gul 24 Other pointers & index registers 1. Base pointer (BP) 2. Source Index (SI) 3. Destination Index (DI) They are used to hold offset address of data in one of the segments
  • 25. Presentation By sania Gul 25 General purpose Data Registers • There are four 16 bit data registers AX, BX, CX, DX. • Each of them can store 16 bit data or can be divided in 2 parts to hold separate 8 bit data. AX BX CX DX AH AL BH BL CH CL DH DL A for Accumulator B for Base C for Count D for Data
  • 26. Presentation By sania Gul 26 Address Generation
  • 27. Presentation By sania Gul 27 Example of Address Generation
  • 28. Presentation By sania Gul 28 Default Segment & OFFSET pairs • The physical address of Data or instruction is calculated by using the combination of default pairs. If [BX] is given in the instruction, physical address of data is automatically calculated as PA = DS : BX = DS0 H + BX OFFSET Default Segment Register IP CS SP SS BP SS DI DS SI DS BX DS
  • 29. Presentation By sania Gul 29 Different OFFSETS & Segment Address may result in same Physical Address
  • 30. 30 Data Types Supported Data Type Range (8 bits) Range (16 bits) Unsigned numbers 0 D~ 255 D 0 D~ 65535 D Signed numbers -128 D ~ -1 D 0 D~ +127 D -32768 D ~ -1 D 0 ~ +32767 D Packed BCD 2 BCD digits (BCD digit take 4 bits & range from 1 to 9 H) 4 BCD digits Unpacked BCD 1 BCD digit ( the upper nibble is 0 & the lower nibble is BCD digit) 2 BCD digit Hexadecimal 00 H ~ FFH 0000H ~ FFFFH Binary 000 000 00B ~ 111 111 11B 0000 0000 0000 0000 B ~ 1111 1111 1111 1111 B ASCII One character. All characters on key board. Use double Quotes with them in instruction. E.g. “S” 2 characters.
  • 31. Presentation By sania Gul 31 Different Data size Word Double Word Quad Word
  • 32. Presentation By sania Gul 32 Aligned & Misaligned Words stored in memory 1. The words starting at an even address boundary is called aligned or even address words. 2. The words starting at an odd address boundary is called misaligned or odd address words. • Aligned & misaligned words take 2 Bus cycles in 8088. • Aligned words take 1 Bus cycle & misaligned 2 Bus cycle in 8086.
  • 33. Presentation By sania Gul 33 Starting Address • Odd • Even
  • 34. Presentation By sania Gul 34 Register Storage from memory ↔ register When storing 16 bit register of µP in memory, Higher order byte of a processor register is always stored at higher memory address & L.O Byte at lower address. & when the word is transferred from memory, the higher addressed byte is transferred to H.O Byte & lower addressed bye to L.O Byte Of µP register.
  • 35. Presentation By sania Gul 35 Pointer Storage in memory Offset Segment register A pointer is a full address which requires 4 byte of memory
  • 36. Presentation By sania Gul 36 Memory & I/O (isolated) address spaces I/O Address space of PC