Past exam question: 2081 Chaitra (Regular), Q4(a)
Open in the Padhaiko appExplain 8086 microprocessor with its internal architecture.
Solution
8086 Microprocessor Features:
- 16-bit microprocessor with 16-bit internal and external data bus.
- 20-bit address bus addressing up to 2^20 bytes = 1 MB of memory.
- Operates at clock frequencies of 5 MHz, 8 MHz, or 10 MHz.
- Utilizes segmented memory architecture (four 64 KB segments: CS, DS, SS, ES).
- Employs instruction pipelining by splitting internal processing into two asynchronous units: Bus Interface Unit (BIU) and Execution Unit (EU).
Bus Interface Unit (BIU) Architecture: The BIU handles all external bus communication and address generation:
- 6-Byte Instruction FIFO Queue: Automatically prefetches instructions from memory whenever 2 or more queue bytes are free, keeping EU supplied with instructions.
- Segment Registers (16-bit):
CS(Code Segment): Holds base address of code segment.DS(Data Segment): Holds base address of main data segment.SS(Stack Segment): Holds base address of stack memory.ES(Extra Segment): Used for string and destination data storage.
- Instruction Pointer (IP): 16-bit register pointing to the offset address of the next instruction byte to fetch.
- Dedicated 20-Bit Adder: Computes 20-bit physical addresses using:
Physical Address = (Segment Base * 16) + Offset - Bus Control Logic: Generates bus signals (
RD_bar,WR_bar,ALE,M/IO_bar) to transfer data to/from external memory and I/O devices.
Execution Unit (EU) Architecture: The EU decodes and executes instructions fetched from the BIU queue:
- Instruction Decoder & Control Circuitry: Translates instructions from the queue into execution signals.
- 16-bit Arithmetic and Logic Unit (ALU): Performs 16-bit and 8-bit arithmetic and logical operations.
- General Purpose Registers (16-bit):
AX(Accumulator: AH/AL): Used for arithmetic, logic, and I/O.BX(Base Register: BH/BL): Used for based memory addressing.CX(Count Register: CH/CL): Used as counter in loops and string shifts.DX(Data Register: DH/DL): Used for 32-bit arithmetic and indirect port addressing.
- Pointer and Index Registers (16-bit):
SP(Stack Pointer): Points to the top of stack in SS.BP(Base Pointer): Facilitates stack data access for function frames.SI(Source Index): Source string pointer.DI(Destination Index): Destination string pointer.
- Flag Register: 16-bit status register containing 9 active flags.
Pipelining Mechanism: Instruction execution is pipelined because the BIU prefetches upcoming instructions into the 6-byte queue while the EU is concurrently executing previously fetched instructions. This overlap minimizes bus idle time and speeds up instruction execution.
The 8086 architecture is divided into the Bus Interface Unit (BIU) which handles external bus transfers, segment registers (CS, DS, SS, ES), IP, 20-bit physical address generation, and a 6-byte prefetch queue; and the Execution Unit (EU) which contains the 16-bit ALU, general/pointer registers, instruction decoder, and flags.