Past exam question: 2082 Chaitra (Regular), Q5(c)
Open in the Padhaiko appHow 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:
- Shifting the 16-bit Segment Base value 4 bit positions to the left (multiplying by 16, or appending one hexadecimal zero
0H). - 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:
- Segment Base shifted left by 4 bits:
20000H - Offset (IP):
+ 00150H - Calculated 20-bit Physical Address:
20150H
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.