PadhaikoAll subjects

Past exam question: 2081 Chaitra (Regular), Q4(a)

Microprocessors · 6 marks

Open in the Padhaiko app

Topic: 8086 Features & Architecture (BIU and EU)

Question

Explain 8086 microprocessor with its internal architecture.

Solution

8086 Microprocessor Features:

Bus Interface Unit (BIU) Architecture: The BIU handles all external bus communication and address generation:

  1. 6-Byte Instruction FIFO Queue: Automatically prefetches instructions from memory whenever 2 or more queue bytes are free, keeping EU supplied with instructions.
  2. 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.
  3. Instruction Pointer (IP): 16-bit register pointing to the offset address of the next instruction byte to fetch.
  4. Dedicated 20-Bit Adder: Computes 20-bit physical addresses using: Physical Address = (Segment Base * 16) + Offset
  5. 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:

  1. Instruction Decoder & Control Circuitry: Translates instructions from the queue into execution signals.
  2. 16-bit Arithmetic and Logic Unit (ALU): Performs 16-bit and 8-bit arithmetic and logical operations.
  3. 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.
  4. 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.
  5. 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.

Answer:

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.

All past exam questions for Microprocessors