SlideShare a Scribd company logo
1 of 45
8086 Architecture
Sridari Iyer
St. Francis Inst. of Tech.
Borivali (W), Mumbai.
How many bits does the Register of a Processor
have??
16-bit Processor (8086)
• Has 16 data lines
• All internal Registers are 16-bit long
32-bit Processor
• All Internal Registers are 32-bit long
• Has 32-bit data bus
8086 architecture is 16 – bit Processor means--
• It can transfer 16 bits of data at a time.
• Its ALU is 16 bits, i.e. it can perform arithmetic
and logical operations on 16- bit data at a time
• All its registers are 16 bits
• Suppose we have 1 bit for addressing, we can
access two (21) memory locations.
• If we have 2 bits for addressing, we can access
four (22) memory locations
<----- 8 bits ---->
<----- 8 bits ---->
0
1
<----- 8 bits ---->
<----- 8 bits ---->
10
11
<----- 8 bits ---->
<----- 8 bits ---->
00
01
There are two sections in the architecture of a
8086 Processor.
• Bus Interface Unit (BIU)
• Execution Unit (EU)
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCCControl
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
Why two sections????
• Because data transfer rates are usually slower
compared to execution rate.
• Pipelining instructions will avoid processor
being idle.
• This 16- bit processor has a 20-bit address bus
• Width of a memory locations is 8 bits.
• The address of that memory location is 20 bit
long
00000
.
.
.
FFFFF
8 Bit
8 Bit
8 Bit
8 Bit
8 Bit
8 Bit
8 Bit
• As a programmer or a user cannot remember the
20-bit address of everything stored in the
memory, we use linguistic names.
• So,
Entire memory is renamed as 4 segments:
CODE SEGMENT
STACK SEGMENT
DATA SEGMENT
EXTRA SEGMENT
CS
SS
DS
ES
Code Segment
Stack Segment
Data Segment
Code Segment
IP
DI
BP
SI
SP
00000
FFFFF
You cannot remember the content of
a book by the page number
But You can remember by the chapter
name and the sub headings
How Processor knows the real address
when we provide the segment name and
the offset???
Physical Address = (Segment X 10) + Offset
For example :
CS = 1000H (16 bits)
IP = 1036H (16 bits)
PA= (1000 X10) + 1036 = 11036 (20 bits)
SA X10 OFFSET
If Segment Address = 2000H
Offset Address = 4000H
Then Calculate Physical Address??
Physical Address =
(2000 X 10) + 4000H = 24000
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
• BIU not only fetch the next instruction but it
fetches 6 byte of the program and stores
them in the queue.
• All instruction are not of same size.
6 instruction != 6 byte
Example
Eg:
MOV BL, CL Opcode
1 Byte Instruction
Eg:
MOV BL, 25H
Opcode operand 2 byte Instruction
(1byte) (1byte)
MOV BX, 2000H
(1byte) (2byte) 3byte Instruction
“Every Instruction has unique Opcode”
• All instruction are not of same size.
• Instruction may vary 1 byte, 2 byte, 3
byte, maximum up to 6 bytes.
When will BIU fill the instruction Queue????
1. Wait for the whole queue to become empty.
2. If 1 byte is empty then refill the queue
3. If 2 byte is empty then refill the queue.
Ans:
If 2 byte is empty then refill the queue.
Because 2byte= 16bit and 8086 is 16 bit
procesor
So,
Architect of Processor builds a queue inside the
processor, which permitted you to store in
advance, specific instruction that would be
executed in the future.
Whole concept is called PIPELINING.
Pipelining is a technique wherein the Bus
Interface Unit pre-fetches the instruction for the
Execution Unit to use
In case of 8086, up to six byte of instructions are
fetched.
Note: if there is any JUMP instruction PIPE has
to refreshed.
Bus Interface Unit
• Handles all the data and the addresses on the
buses for the execution unit.
• Bus operations include instruction fetching,
reading and writing operations for memory
and calculating the addresses of the memory
operands.
• The instructions are transferred to the
instruction queue
CS
SS
DS
ES
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
Execution Unit
Control Section decodes the instruction and
releases the control signals to every object of an
architecture
Example:
ADD BL, CL
(00110101010010….)
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
AH (8bit) AL (8bit)
BH (8bit) BL (8bit)
CH (8bit) CL (8bit)
DH (8bit) DL (8bit)
SP (16bit)
BP (16bit)
SI (16bit)
DI (16bit)
AX
BX
CX
DX
General Purpose
Register
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
ES
CS
SS
DS
IP
AH AL
BH BL
CH CL
DH DL
SP
BP
SI
DI
6
5
4
3
2
1
Operands
Flags
CCC
Control
System
Memory
Interface
B-BUS
C-BUS
Instruction
Stream
Byte
Queue
BIU
EU
ALU
A-BUS
Operand Register (16-bit)
It is a temporary register used by the
programmer.
Example : XCHG BX, CX
For swapping we need temporary register
Flags (16 bit)
Contains the status of the current result
produced by ALU
Eg: sign flag , carry flag, sign flag etc.
Why is this required????
Execution Unit of a processor is much faster
than the peripheral devices like memory (ROM
or RAM). Earlier days, Memory was almost as
fast as Processor unit but when 8086 come in
picture, Processor became much faster than the
peripheral devices
Have a nice day

More Related Content

What's hot

8086-microprocessor
8086-microprocessor8086-microprocessor
8086-microprocessorjhcid
 
Architecture of 8086
Architecture of 8086Architecture of 8086
Architecture of 8086MOHAN MOHAN
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorVikas Gupta
 
Internal architecture-of-8086
Internal architecture-of-8086Internal architecture-of-8086
Internal architecture-of-8086Estiak Khan
 
8086 Microprocessor powerpoint
8086  Microprocessor  powerpoint8086  Microprocessor  powerpoint
8086 Microprocessor powerpointRandhir Kumar
 
8086 microprocessor introduction
8086 microprocessor introduction8086 microprocessor introduction
8086 microprocessor introductionAakash Ugale
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorNikhil Kumar
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORSagar Kuntumal
 
Introduction of 8086 micro processor .
Introduction of 8086 micro processor .Introduction of 8086 micro processor .
Introduction of 8086 micro processor .Siraj Ahmed
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086Nikhil Kumar
 

What's hot (20)

8086-microprocessor
8086-microprocessor8086-microprocessor
8086-microprocessor
 
Architecture of 8086
Architecture of 8086Architecture of 8086
Architecture of 8086
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
8086
80868086
8086
 
8086 Architecture
8086 Architecture8086 Architecture
8086 Architecture
 
Interfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessorInterfacing memory with 8086 microprocessor
Interfacing memory with 8086 microprocessor
 
Internal architecture-of-8086
Internal architecture-of-8086Internal architecture-of-8086
Internal architecture-of-8086
 
8086ppt
8086ppt8086ppt
8086ppt
 
8086 Microprocessor powerpoint
8086  Microprocessor  powerpoint8086  Microprocessor  powerpoint
8086 Microprocessor powerpoint
 
Cs14 406 mod1
Cs14 406 mod1Cs14 406 mod1
Cs14 406 mod1
 
8086 ppt
8086 ppt8086 ppt
8086 ppt
 
Microprocessor 8086
Microprocessor 8086Microprocessor 8086
Microprocessor 8086
 
8086 microprocessor introduction
8086 microprocessor introduction8086 microprocessor introduction
8086 microprocessor introduction
 
8086 architecture
8086 architecture8086 architecture
8086 architecture
 
Minimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 MicroprocessorMinimum Modes and Maximum Modes of 8086 Microprocessor
Minimum Modes and Maximum Modes of 8086 Microprocessor
 
8086 conti
8086 conti8086 conti
8086 conti
 
INTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSORINTEL 8086 MICROPROCESSOR
INTEL 8086 MICROPROCESSOR
 
8086
80868086
8086
 
Introduction of 8086 micro processor .
Introduction of 8086 micro processor .Introduction of 8086 micro processor .
Introduction of 8086 micro processor .
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
 

Similar to 8086 architecture

Pai unit 1_l1-l2-l3-l4_upload
Pai unit 1_l1-l2-l3-l4_uploadPai unit 1_l1-l2-l3-l4_upload
Pai unit 1_l1-l2-l3-l4_uploadYogesh Deshpande
 
8086 architecture and pin description
8086 architecture and pin description 8086 architecture and pin description
8086 architecture and pin description Aswini Dharmaraj
 
8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd yearBharghavteja1
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessorVikas Gupta
 
8086 Micro-processor and MDA 8086 Trainer Kit
8086 Micro-processor and MDA 8086 Trainer Kit8086 Micro-processor and MDA 8086 Trainer Kit
8086 Micro-processor and MDA 8086 Trainer KitAmit Kumer Podder
 
15CS44 MP & MC Module 1
15CS44 MP & MC Module 115CS44 MP & MC Module 1
15CS44 MP & MC Module 1RLJIT
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorDarling Jemima
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessorDiponkor Bala
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architectureSaurabh Jain
 
Microprocessor if deptt- 17th september 2021 (2)
Microprocessor if deptt- 17th september 2021 (2)Microprocessor if deptt- 17th september 2021 (2)
Microprocessor if deptt- 17th september 2021 (2)AISSMS
 
Session01_Intro.pdf
Session01_Intro.pdfSession01_Intro.pdf
Session01_Intro.pdfRahnerJames
 
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 applicationDrVikasMahor
 

Similar to 8086 architecture (20)

Pai unit 1_l1-l2-l3-l4_upload
Pai unit 1_l1-l2-l3-l4_uploadPai unit 1_l1-l2-l3-l4_upload
Pai unit 1_l1-l2-l3-l4_upload
 
8086 architecture and pin description
8086 architecture and pin description 8086 architecture and pin description
8086 architecture and pin description
 
8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year
 
Microprocessor lecture 2
Microprocessor lecture   2Microprocessor lecture   2
Microprocessor lecture 2
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
MPMC Unit-1
MPMC Unit-1MPMC Unit-1
MPMC Unit-1
 
8086 Micro-processor and MDA 8086 Trainer Kit
8086 Micro-processor and MDA 8086 Trainer Kit8086 Micro-processor and MDA 8086 Trainer Kit
8086 Micro-processor and MDA 8086 Trainer Kit
 
15CS44 MP & MC Module 1
15CS44 MP & MC Module 115CS44 MP & MC Module 1
15CS44 MP & MC Module 1
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM Processor
 
Presentation on 8086 microprocessor
Presentation on 8086 microprocessorPresentation on 8086 microprocessor
Presentation on 8086 microprocessor
 
Intel 8086
Intel 8086 Intel 8086
Intel 8086
 
Lecture2
Lecture2Lecture2
Lecture2
 
26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture26677766 8086-microprocessor-architecture
26677766 8086-microprocessor-architecture
 
Microprocessor if deptt- 17th september 2021 (2)
Microprocessor if deptt- 17th september 2021 (2)Microprocessor if deptt- 17th september 2021 (2)
Microprocessor if deptt- 17th september 2021 (2)
 
Session01_Intro.pdf
Session01_Intro.pdfSession01_Intro.pdf
Session01_Intro.pdf
 
Register & Memory
Register & MemoryRegister & Memory
Register & Memory
 
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
 
Bus
BusBus
Bus
 
8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware8086 architecture By Er. Swapnil Kaware
8086 architecture By Er. Swapnil Kaware
 
8086 archi notes final
8086 archi notes final8086 archi notes final
8086 archi notes final
 

Recently uploaded

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 

Recently uploaded (20)

CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 

8086 architecture

  • 1. 8086 Architecture Sridari Iyer St. Francis Inst. of Tech. Borivali (W), Mumbai.
  • 2.
  • 3. How many bits does the Register of a Processor have?? 16-bit Processor (8086) • Has 16 data lines • All internal Registers are 16-bit long 32-bit Processor • All Internal Registers are 32-bit long • Has 32-bit data bus
  • 4. 8086 architecture is 16 – bit Processor means-- • It can transfer 16 bits of data at a time. • Its ALU is 16 bits, i.e. it can perform arithmetic and logical operations on 16- bit data at a time • All its registers are 16 bits
  • 5. • Suppose we have 1 bit for addressing, we can access two (21) memory locations. • If we have 2 bits for addressing, we can access four (22) memory locations <----- 8 bits ----> <----- 8 bits ----> 0 1 <----- 8 bits ----> <----- 8 bits ----> 10 11 <----- 8 bits ----> <----- 8 bits ----> 00 01
  • 6. There are two sections in the architecture of a 8086 Processor. • Bus Interface Unit (BIU) • Execution Unit (EU)
  • 7. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCCControl System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 8. Why two sections???? • Because data transfer rates are usually slower compared to execution rate. • Pipelining instructions will avoid processor being idle.
  • 9. • This 16- bit processor has a 20-bit address bus • Width of a memory locations is 8 bits. • The address of that memory location is 20 bit long 00000 . . . FFFFF 8 Bit 8 Bit 8 Bit 8 Bit 8 Bit 8 Bit 8 Bit
  • 10. • As a programmer or a user cannot remember the 20-bit address of everything stored in the memory, we use linguistic names. • So, Entire memory is renamed as 4 segments: CODE SEGMENT STACK SEGMENT DATA SEGMENT EXTRA SEGMENT
  • 11. CS SS DS ES Code Segment Stack Segment Data Segment Code Segment IP DI BP SI SP 00000 FFFFF
  • 12.
  • 13.
  • 14.
  • 15. You cannot remember the content of a book by the page number But You can remember by the chapter name and the sub headings
  • 16. How Processor knows the real address when we provide the segment name and the offset??? Physical Address = (Segment X 10) + Offset For example : CS = 1000H (16 bits) IP = 1036H (16 bits) PA= (1000 X10) + 1036 = 11036 (20 bits) SA X10 OFFSET
  • 17. If Segment Address = 2000H Offset Address = 4000H Then Calculate Physical Address?? Physical Address = (2000 X 10) + 4000H = 24000
  • 18. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 19. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 20. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 21. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 22. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 23. • BIU not only fetch the next instruction but it fetches 6 byte of the program and stores them in the queue. • All instruction are not of same size. 6 instruction != 6 byte
  • 24. Example Eg: MOV BL, CL Opcode 1 Byte Instruction Eg: MOV BL, 25H Opcode operand 2 byte Instruction (1byte) (1byte) MOV BX, 2000H (1byte) (2byte) 3byte Instruction “Every Instruction has unique Opcode”
  • 25. • All instruction are not of same size. • Instruction may vary 1 byte, 2 byte, 3 byte, maximum up to 6 bytes.
  • 26. When will BIU fill the instruction Queue???? 1. Wait for the whole queue to become empty. 2. If 1 byte is empty then refill the queue 3. If 2 byte is empty then refill the queue. Ans: If 2 byte is empty then refill the queue. Because 2byte= 16bit and 8086 is 16 bit procesor
  • 27. So, Architect of Processor builds a queue inside the processor, which permitted you to store in advance, specific instruction that would be executed in the future. Whole concept is called PIPELINING.
  • 28. Pipelining is a technique wherein the Bus Interface Unit pre-fetches the instruction for the Execution Unit to use In case of 8086, up to six byte of instructions are fetched. Note: if there is any JUMP instruction PIPE has to refreshed.
  • 29. Bus Interface Unit • Handles all the data and the addresses on the buses for the execution unit. • Bus operations include instruction fetching, reading and writing operations for memory and calculating the addresses of the memory operands. • The instructions are transferred to the instruction queue
  • 30. CS SS DS ES IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 31. Execution Unit Control Section decodes the instruction and releases the control signals to every object of an architecture Example: ADD BL, CL (00110101010010….)
  • 32. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 33. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 34. AH (8bit) AL (8bit) BH (8bit) BL (8bit) CH (8bit) CL (8bit) DH (8bit) DL (8bit) SP (16bit) BP (16bit) SI (16bit) DI (16bit) AX BX CX DX General Purpose Register
  • 35. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 36. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 37. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 38. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 39. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 40. ES CS SS DS IP AH AL BH BL CH CL DH DL SP BP SI DI 6 5 4 3 2 1 Operands Flags CCC Control System Memory Interface B-BUS C-BUS Instruction Stream Byte Queue BIU EU ALU A-BUS
  • 41. Operand Register (16-bit) It is a temporary register used by the programmer. Example : XCHG BX, CX For swapping we need temporary register
  • 42. Flags (16 bit) Contains the status of the current result produced by ALU Eg: sign flag , carry flag, sign flag etc.
  • 43.
  • 44. Why is this required???? Execution Unit of a processor is much faster than the peripheral devices like memory (ROM or RAM). Earlier days, Memory was almost as fast as Processor unit but when 8086 come in picture, Processor became much faster than the peripheral devices
  • 45. Have a nice day