PadhaikoAll subjects

Past exam question: 2082 Chaitra (Regular), Q5(c)

Microprocessors · 2 marks

Open in the Padhaiko app

Topic: Segment:Offset Addressing, Pins & Addressing Modes

Question

How is physical address calculated in 8086 microprocessor?

Solution

Segmentation & Address Widths: The 8086 possesses a 20-bit external address bus, allowing it to address 2^20 = 1,048,576 bytes (1 MB) of physical memory. However, internal registers and buses are only 16 bits wide. Memory is therefore organized into logical segments of up to 64 KB each.

A memory location is identified by a logical address pair: Segment:Offset

Physical Address Calculation Procedure & Formula: The 20-bit physical address is computed inside the dedicated adder of the Bus Interface Unit (BIU) by:

  1. Shifting the 16-bit Segment Base value 4 bit positions to the left (multiplying by 16, or appending one hexadecimal zero 0H).
  2. Adding the 16-bit Offset (Effective Address) to the shifted 20-bit segment base.

Physical Address (20-bit) = (Segment Base * 16) + Offset Address

Numerical Example: If CS = 2000H and IP = 0150H:

Answer:

The 20-bit physical address is calculated by the BIU dedicated adder by shifting the 16-bit segment base left by 4 bits (multiplying by 16) and adding the 16-bit offset: Physical Address = (Segment * 16) + Offset.

All past exam questions for Microprocessors