CSE-3103: Microprocessor and Microcontroller
Dept. of Computer Science and Engineering
University of Dhaka
Prof. Sazzad M.S. Imran, PhD
Dept. of Electrical and Electronic Engineering
sazzadmsi.webnode.com
Basic Architecture of 8086
8086 microprocessor
2 separate functional units.
1) Bus Interface Unit (BIU),
2) Execution Unit (EU).
employs parallel processing.
BIU segment registers,
instruction pointer,
address generation and
bus control logic block,
instruction queue.
EU general purpose registers,
ALU,
control unit,
instruction register,
flag (or status) register.
Basic Architecture of 8086
Main jobs of BIU
external bus operations.
instruction fetching,
reading/writing of data/operands for memory,
inputting/outputting of data for peripheral devices.
filling instruction queue.
address generation.
Main jobs of EU
decoding/execution of instructions.
accepts instructions from instruction queue,
data from general purpose registers,
or memory.
generates operand addresses, hands them to BIU.
tests and updates status of flags in control register
when executing instructions.
waits for instructions from empty instruction queue.
Operations of Instruction Queue
Pipelining procedure saves time
Operations of Instruction Queue
Queue operation
CS:IP = odd 1 byte instruction
even 2 bytes instruction
Registers of 8086
Fourteen 16-bit registers
Register groups
data group
AX, BX, CX, DX.
use bytewise or wordwise.
source or destination of operand.
pointers and index group
SP, BP, SI, DI, IP.
segment group
ES, CS, DS, SS.
status and control flag group
single 16-bit flag register.
registers for specific operations
CX = count register in string operations.
DX = hold address of I/O port.
AX = hold data for I/O operations.
BX = hold offset address.
CPU Registers
Fourteen 16-bit registers