5-Introduction To 8086microprocessor
5-Introduction To 8086microprocessor
Introduction to 8086
Microprocessor
8086 Microprocessor
Belongs to a popular microprocessor series
◦ 8086, 80186, 80286, 80386, 80486, Pentium
INTEL launched 8086 in 1978
8086 is a 16-bit microprocessor with
2. Decode
3. Execute Execution Unit
(EU)
Bus Interface Unit
Sends out addresses for memory locations
Fetches Instructions from memory
Reads/Writes data to memory
Sends out addresses for I/O ports
Reads/Writes data to Input/Output ports
Execution Unit
Tells BIU (addresses) where to fetch
instructions or data
Decodes & Executes instructions
Architecture Diagram of
8086
Memory
∑ Interface
Instruction
Decoder
AH AL
BH BL
ARITHMETIC
CH CL LOGIC UNIT
DH DL CONTROL
SYSTEM
STACK POINTER (SP)
BASE POINTER (BP)
OPERANDS
SOURCE INDEX (SI)
DESTINATION INDEX (DI)
FLAGS
EU
Execution Unit
Main components are
◦ Instruction Decoder
◦ Control System
◦ Arithmetic Logic Unit
◦ General Purpose Registers
◦ Flag Register
◦ Pointer & Index registers
Instruction Decoder
Control System
Generates timing and control signals to
The Trap Flag is (TF) is something that you will probably never use. With this
flag set the CPU will only execute a single instruction before it calls an Interrupt
Routine
Bus Interface Unit
Main Components are
◦ Instruction Queue
◦ Segment Registers
◦ Instruction Pointer
Memory
∑ Interface
Instruction
Decoder
AH AL
BH BL
ARITHMETIC
CH CL LOGIC UNIT
DH DL CONTROL
SYSTEM
STACK POINTER (SP)
BASE POINTER (BP)
OPERANDS
SOURCE INDEX (SI)
DESTINATION INDEX (DI)
FLAGS
EU
Instruction Queue
8086 employs parallel processing
When EU is busy decoding or executing
current instruction, the buses of 8086 may
not be in use.
At that time, BIU can use buses to fetch
upto six instruction bytes for the following
instructions
BIU stores these pre-fetched bytes in a FIFO
register called Instruction Queue
When EU is ready for its next instruction, it
simply reads the instruction from the queue
in BIU
Pipelining
EU of 8086 does not have to wait in between
for BIU to fetch next instruction byte from
memory
So the presence of a queue in 8086 speeds
up the processing
Fetching the next instruction while the
program
https://www.cosc.brocku.ca/~
bockusd/3p92/Local_Pages/8086_achitecture
.htm