7 Advanced Microprocessors

Microprocessor ยท Unit 7 ยท 9 hrs

Advanced Microprocessors

Exam-focused notes for Advanced Microprocessors (Microprocessor, CSC167): what the TU syllabus asks and how it has actually been tested, with 19 solved past questions from this unit.

Advanced Microprocessors in short

This chapter follows the microprocessor family beyond the 8086, into the memory-managed and protected-mode designs of the 80286 and 80386, covering their register sets, privilege and protection mechanisms, and the paging technique used to manage physical memory in a multitasking system.

Advanced Microprocessors: notes

8086: logical block diagram and segments

The 8086 is a 16-bit microprocessor with a 20-bit address bus, giving it access to $2^{20} = 1{,}048{,}576$ bytes (1 MB) of memory. Internally it is split into two independent units that work together to increase throughput: the Bus Interface Unit (BIU), which generates addresses, fetches instruction bytes ahead of need into an internal instruction queue, and performs all data transfers on the buses; and the Execution Unit (EU), which decodes and executes instructions, relying on the BIU for every fetch or store since the EU itself has no direct connection to the system buses. Overlapping the BIU's fetching with the EU's execution in this way is called pipelining and improves overall throughput without shortening any individual instruction.

Because a 16-bit register cannot hold a 20-bit address by itself, the 8086 divides its 1 MB memory space into segments, addressed through four 16-bit segment registers held in the BIU: the code segment (CS), pointing to the segment holding the executing program; the data segment (DS), pointing to the program's data; the stack segment (SS), pointing to the segment used for the stack; and the extra segment (ES), a second data segment available to string instructions. A 20-bit physical address is formed from a segment register and a 16-bit offset by

$$ PA = \text{Segment} \times 10\text{H} + \text{Offset} $$

For example, if CS = 2000H and the instruction pointer IP = 0050H, the physical address of the next instruction is

$$ \begin{aligned} PA &= 2000\text{H} \times 10\text{H} + 0050\text{H} \ &= 20000\text{H} + 0050\text{H} \ &= 20050\text{H} \end{aligned} $$

80286: Architecture, Registers, (Real/Protected mode)

The 80286 is the first member of the Intel family built with hardware memory management and protection. It has a 24-bit address bus, giving it access to 16 MB of physical memory, and is organized into four functional units: the Address Unit (AU), which computes physical addresses and enforces memory protection; the Bus Unit (BU), which performs all external bus transfers and instruction prefetching; the Instruction Unit (IU), which decodes prefetched instructions; and the Execution Unit (EU), which carries out the decoded instructions using its register file.

Its register set extends the 8086's: the same eight 16-bit general-purpose registers, four segment registers and instruction pointer, plus two new descriptor-table registers, the Local Descriptor Table Register (LDTR) and the Global Descriptor Table Register (GDTR), and an expanded 16-bit flag register. The 80286 supports two operating modes:

  • Real address mode: the 80286 behaves like a fast 8086, addressing up to 1 MB and remaining object-code compatible with 8086 programs.
  • Protected (virtual address) mode: the 80286 can address up to 16 MB of physical memory and up to 1 GB of virtual memory per task, with hardware-enforced memory protection between tasks. Protected mode is source-code, not object-code, compatible with the 8086.

What this unit covers

  • 8086: logical block diagram and segments
  • 80286: Architecture, Registers, (Real/Protected mode)
  • Privilege levels
  • descriptor cache
  • Memory access in GDT and LDT
  • multitasking
  • addressing modes
  • flag register
  • 80386: Architecture, Register organization, Memory access in protected mode
  • Paging

8086

2081 ยท 5 marks

Explain about memory segment and segment register in 8086 microprocessor. [5]

The 8086 microprocessor has a 20-bit address bus, which allows it to address up to 2ยฒโฐ = 1 MB (1,048,576 bytes) of physical memory. However, the internal registers of 8086 are only 16-bit wide, which can directly address only 2ยนโถ = 64 KB. To resolve this, the 8086 uses a technique called memory s...

Open this answer on its own page โ†’

2075 ยท 5 marks

Explain how pipelining is achieved in 8086 microprocessor. [5]

Pipelining is a technique in which the execution of multiple instructions is overlapped in time. Instead of completing one instruction fully before starting the next, different stages of different instructions are executed simultaneously, improving overall throughput. --- The 8086 microprocessor ...

Open this answer on its own page โ†’

80386

2081 ยท 5 marks

Explain Register Organization in 80386 microprocessor. [5]

Show solved answer

Register Organization in 80386 Microprocessor


Register Organization of 80386 Microprocessor

The Intel 80386 is a 32-bit microprocessor. Its registers are organized into the following groups:


1. General Purpose Registers (32-bit)

These registers are used for arithmetic, logical, and data transfer operations.

RegisterFull NameDescription
EAXExtended AccumulatorUsed for arithmetic and I/O operations
EBXExtended Base RegisterUsed as base pointer for memory addressing
ECXExtended Count RegisterUsed as loop counter
EDXExtended Data RegisterUsed in I/O and multiply/divide operations
ESIExtended Source IndexSource pointer in string operations
EDIExtended Destination IndexDestination pointer in string operations
EBPExtended Base PointerPoints to base of stack frame
ESPExtended Stack PointerPoints to top of the stack
  • Each 32-bit register can also be accessed as a 16-bit register (AX, BX, CX, DX, SP, BP, SI, DI).
  • AX, BX, CX, DX can further be split into 8-bit high and low bytes (AH/AL, BH/BL, CH/CL, DH/DL).

2. Segment Registers (16-bit)

The 80386 uses segmented memory model. It has 6 segment registers:

RegisterNamePurpose
CSCode SegmentHolds address of code segment
DSData SegmentHolds address of data segment
SSStack SegmentHolds address of stack segment
ESExtra SegmentExtra data segment
FSF SegmentAdditional data segment
GSG SegmentAdditional data segment

3. Control Registers

RegisterPurpose
EIP (32-bit)Extended Instruction Pointer - holds address of next instruction to execute
EFLAGS (32-bit)Extended Flags Register - holds status, control, and system flags

Important flags in EFLAGS:

  • CF - Carry Flag
  • ZF - Zero Flag
  • SF - Sign Flag
  • OF - Overflow Flag
  • DF - Direction Flag (for string operations)
  • IF - Interrupt Enable Flag

4. System Registers

These are used for memory management and protection in protected mode:

RegisterNamePurpose
CR0 - CR3Control RegistersControl operating mode and paging
GDTRGlobal Descriptor Table RegisterPoints to global descriptor table
LDTRLocal Descriptor Table RegisterPoints to local descriptor table
IDTRInterrupt Descriptor Table RegisterPoints to interrupt descriptor table
TRTask RegisterPoints to current task state segment

Summary Diagram

80386 Registers
โ”œโ”€โ”€ General Purpose (EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP) -- 32-bit
โ”œโ”€โ”€ Segment Registers (CS, DS, SS, ES, FS, GS) -- 16-bit
โ”œโ”€โ”€ Control Registers (EIP, EFLAGS) -- 32-bit
โ””โ”€โ”€ System Registers (CR0-CR3, GDTR, LDTR, IDTR, TR)

Key Feature

The 80386 supports backward compatibility - programs written for 8086/80286 can run on 80386 because the lower 16-bit portions of the registers (AX, BX, etc.) are preserved within the 32-bit extended registers (EAX, EBX, etc.).

Open this answer on its own page โ†’

2080 ยท 10 marks

Draw a well-labeled block diagram of 8036 microprocessor. Explain its Register organization.[10]

Note: The question refers to the "8036" microprocessor, which is understood to mean the Intel 80386 (i386) 32-bit microprocessor. The answer below is derived primarily from the standard 80386 architecture block diagram, supplemented with standard 80386 architecture knowledge. --- Key Units: Unit ...

Open this answer on its own page โ†’

2080 ยท 5 marks

What are various functional units of 80386 microprocessor? Explain function of each unit. [5]

Show solved answer

Functional Units of 80386 Microprocessor

Introduction

The 80386 is a 32-bit microprocessor. To achieve high performance through parallelism, it is divided into several independent functional units that can operate simultaneously.


Functional Units of 80386

The 80386 microprocessor is internally divided into six functional units:


1. Bus Interface Unit (BIU)

  • Manages all data and address transfers on the external buses (data bus, address bus, control bus).
  • Handles communication between the processor and external memory or I/O devices.
  • Generates the 32-bit physical address for memory access.
  • Controls bus cycles and arbitration.

2. Code Prefetch Unit (CPU / Prefetch Unit)

  • Fetches instruction bytes from memory in advance (before they are needed).
  • Stores prefetched bytes in a 16-byte prefetch queue.
  • Keeps the instruction pipeline filled so the processor does not have to wait for instruction fetch.
  • Works in parallel with instruction decoding and execution.

3. Instruction Decode Unit

  • Takes instruction bytes from the prefetch queue and decodes them into internal micro-operations.
  • Maintains a queue of 3 decoded instructions ready for execution.
  • Decoding in advance reduces delays during execution.

4. Execution Unit (EU)

  • Carries out the actual arithmetic and logical operations on data.
  • Contains the 32-bit ALU (Arithmetic Logic Unit) for integer operations.
  • Accesses the general-purpose registers (EAX, EBX, ECX, EDX, ESI, EDI, ESP, EBP).
  • Executes decoded instructions passed from the Instruction Decode Unit.

5. Segmentation Unit

  • Handles memory segmentation by converting logical addresses (segment:offset) into linear addresses.
  • Uses segment registers (CS, DS, SS, ES, FS, GS) and descriptor tables.
  • Provides memory protection by checking segment limits and access rights.

6. Paging Unit

  • Converts linear addresses (produced by the Segmentation Unit) into physical addresses.
  • Implements demand paging using page tables and a Translation Lookaside Buffer (TLB) for fast address translation.
  • Supports a 4 KB page size.
  • Only active when paging is enabled (PG bit set in CR0).

Summary Table

UnitPrimary Function
Bus Interface UnitExternal bus communication and address generation
Code Prefetch UnitAdvance fetching of instructions into queue
Instruction Decode UnitDecoding instructions into micro-operations
Execution UnitALU operations and register access
Segmentation UnitLogical to linear address translation
Paging UnitLinear to physical address translation

Conclusion

These six units work in parallel (pipelined), so while one instruction is being executed, the next is being decoded and the one after that is being prefetched. This parallel operation significantly increases the throughput and performance of the 80386 processor.

Open this answer on its own page โ†’

2079 ยท 10 marks

Explain the architecture of 80386 with required figure. Highlight on its register organization.[10]

The Intel 80386 (also written as i386) is a 32-bit microprocessor introduced in 1985. It is a fully 32-bit processor with a 32-bit data bus, 32-bit address bus (capable of addressing up to 4 GB of physical memory), and a complete 32-bit internal architecture. It supports three operating modes: Re...

Open this answer on its own page โ†’

2078 ยท 5 marks

Explain Register Organization in 80386 microprocessor. [5]

Show solved answer

Register Organization in 80386 Microprocessor


Register Organization of 80386

The 80386 is a 32-bit microprocessor. Its registers are organized into the following groups:


1. General Purpose Registers (32-bit)

These are 32-bit registers used for arithmetic, logical, and data transfer operations. They are extensions of the 16-bit 8086 registers.

RegisterFull NameDescription
EAXExtended AccumulatorUsed for arithmetic and I/O operations
EBXExtended Base RegisterUsed as base address in memory addressing
ECXExtended Count RegisterUsed as loop counter
EDXExtended Data RegisterUsed in I/O and multiply/divide operations
ESIExtended Source IndexSource pointer for string operations
EDIExtended Destination IndexDestination pointer for string operations
EBPExtended Base PointerPoints to base of stack frame
ESPExtended Stack PointerPoints to top of stack
  • The lower 16 bits of each register can be accessed as AX, BX, CX, DX, SI, DI, BP, SP.
  • The lower 8 bits of AX, BX, CX, DX can be accessed as AL, AH, BL, BH, CL, CH, DL, DH.

2. Segment Registers (16-bit)

The 80386 has six 16-bit segment registers used to hold segment selectors in protected mode or segment base addresses in real mode.

RegisterNamePurpose
CSCode SegmentPoints to the segment containing program code
DSData SegmentPoints to the default data segment
SSStack SegmentPoints to the stack segment
ESExtra SegmentExtra segment for string operations
FSF SegmentAdditional general-purpose segment
GSG SegmentAdditional general-purpose segment

3. Instruction Pointer (EIP) - 32-bit

  • EIP holds the offset address of the next instruction to be executed within the code segment.
  • It is automatically incremented after each instruction fetch.
  • Equivalent to the Program Counter (PC) in other architectures.

4. Flag Register (EFLAGS) - 32-bit

The EFLAGS register contains status, control, and system flags.

Key flags include:

FlagSymbolDescription
Carry FlagCFSet on unsigned overflow
Zero FlagZFSet when result is zero
Sign FlagSFSet when result is negative
Overflow FlagOFSet on signed overflow
Parity FlagPFSet when result has even parity
Trap FlagTFEnables single-step mode
Interrupt FlagIFEnables/disables maskable interrupts
Direction FlagDFControls direction of string operations

5. Control Registers (CR0 - CR3)

Used to control operating modes and memory management:

RegisterPurpose
CR0Contains system control flags (e.g., PE bit to enable protected mode)
CR1Reserved
CR2Holds the linear address that caused a page fault
CR3Holds the base address of the page directory (used in paging)

6. System Address Registers

RegisterSizePurpose
GDTR48-bitGlobal Descriptor Table Register
IDTR48-bitInterrupt Descriptor Table Register
LDTR16-bitLocal Descriptor Table Register
TR16-bitTask Register

7. Debug and Test Registers

  • DR0 - DR7: Debug registers used to set hardware breakpoints.
  • TR6, TR7: Test registers used for testing the Translation Lookaside Buffer (TLB).

Summary Diagram

80386 Registers
โ”œโ”€โ”€ General Purpose: EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP (32-bit)
โ”œโ”€โ”€ Segment Registers: CS, DS, SS, ES, FS, GS (16-bit)
โ”œโ”€โ”€ Instruction Pointer: EIP (32-bit)
โ”œโ”€โ”€ Flags Register: EFLAGS (32-bit)
โ”œโ”€โ”€ Control Registers: CR0 - CR3
โ”œโ”€โ”€ System Address Registers: GDTR, IDTR, LDTR, TR
โ””โ”€โ”€ Debug Registers: DR0 - DR7

The rich register organization of the 80386 allows it to support real mode, protected mode, and virtual 8086 mode, making it a powerful and flexible 32-bit processor.

Open this answer on its own page โ†’

descriptor cache

2081 ยท 5 marks

What is Descriptor? Explain the use of segment descriptor in physical address conversion in 80286 microprocessor. [5]

Show solved answer

Descriptor and Segment Descriptor in 80286 Physical Address Conversion

What is a Descriptor?

A descriptor is a data structure (8 bytes long) stored in memory that contains all the necessary information about a memory segment. In the protected mode of the 80286 microprocessor, segment registers do not hold the physical base address directly; instead, they hold a selector that points to a descriptor in a descriptor table.

A segment descriptor contains three key fields:

FieldDescription
Base Address24-bit starting physical address of the segment
Segment LimitSize/length of the segment (defines the maximum offset allowed)
Access Rights BytePrivilege level, type (code/data/stack), and protection attributes

Memory Access in Protected Mode (80286)

In the 80286 protected mode, physical address conversion involves the following steps:

Step 1: Selector in Segment Register

When a memory reference is made, the segment register (CS, DS, SS, ES) contains a selector (not a direct address). The selector specifies:

  • The index into the descriptor table
  • The table indicator (GDT or LDT)
  • The requested privilege level (RPL)

Step 2: Accessing the Descriptor Table

The selector is used to locate the appropriate segment descriptor from either:

  • GDT (Global Descriptor Table) -- pointed to by the GDTR register
  • LDT (Local Descriptor Table) -- pointed to by the LDTR register

The CPU reads the 8-byte descriptor from the table.

Step 3: Protection Check

The CPU checks the access rights byte in the descriptor to verify:

  • The segment is present in memory
  • The current privilege level is allowed to access the segment
  • The offset does not exceed the segment limit

If any check fails, a protection fault is generated.

Step 4: Physical Address Calculation

Once the descriptor is validated, the 24-bit base address is extracted from the descriptor. The physical address is calculated as:

Physical Address = Segment Base Address (from descriptor) + Effective Offset

Note: The effective address (offset) is added with the segment base address to calculate the linear address. This linear address is used directly as the physical address if the paging unit is disabled.


Diagram of Address Conversion

Segment Register
+------------------+
|    Selector      |
+------------------+
        |
        | Index into Descriptor Table
        v
+---------------------------+
| Descriptor Table (GDT/LDT)|
|  [Base Addr | Limit | AR] |
+---------------------------+
        |
        | 24-bit Base Address
        v
   Base Address
        +
   Effective Offset (from instruction)
        =
   Linear Address = Physical Address (paging disabled)

Summary

StepAction
1Segment register holds a selector
2Selector indexes into GDT or LDT to fetch descriptor
3Access rights and limit are checked for protection
4Base address from descriptor + offset = Physical Address

Thus, the segment descriptor plays a central role in the 80286 protected mode by providing the base address, enforcing memory limits, and implementing privilege-based memory protection during physical address conversion.

Open this answer on its own page โ†’

2080 ยท 5 marks

What is Descriptor? Explain the use of descriptor in logical to physical address conversion in 80286 microprocessor. [5]

A descriptor is an 8-byte (64-bit) data structure stored in memory that defines and describes the characteristics of a memory segment in the 80286 microprocessor's protected mode. It contains all the information the processor needs to access and protect a segment of memory. Each descriptor holds ...

Open this answer on its own page โ†’

addressing modes

2079 ยท 5 marks

Explain different addressing modes of 8086. [5]

--- An addressing mode refers to the way in which the operand (data) of an instruction is specified. The 8086 microprocessor supports the following addressing modes: --- - The operand (data) is directly specified in the instruction itself. - The data follows the opcode in memory. Example: --- - T...

Open this answer on its own page โ†’

2076 ยท 5 marks

Explain the addressing modes of 8086 microprocessor with examples. [5]

--- An addressing mode refers to the way in which the operand (data) of an instruction is specified or accessed. It defines how the CPU locates the data it needs to process. --- The operand (data) is directly specified in the instruction itself. No memory access is needed to fetch the data. - If ...

Open this answer on its own page โ†’

multitasking

2079 ยท 5 marks

Explain the concept of multitasking in 80286. [5]

Multitasking is the ability of a processor to execute multiple tasks (programs) concurrently by rapidly switching between them. In the 80286, multitasking capability is improved by adding necessary memory management and task switching mechanisms in such a way that there is adequate protection bet...

Open this answer on its own page โ†’

80286

2078 ยท 10 marks

Draw block diagram of 80286 microprocessor and explain its main four functional sub-units. Differentiate between Real Address Mode and Protected Virtual address mode.[10]

--- --- The 80286 microprocessor is internally divided into four functional sub-units that operate in a pipelined fashion to improve performance: --- - The Bus Unit is responsible for all external bus operations. - It manages the 24-bit address bus and the 16-bit data bus. - It contains address l...

Open this answer on its own page โ†’

2076 ยท 10 marks

Draw block diagram of 80286 and explain its functional units.[10]

Show solved answer

Block Diagram of 80286 and Its Functional Units

Introduction

The Intel 80286 is a 16-bit microprocessor that is an enhanced version of the 8086. It operates at higher speeds and supports protected mode in addition to real mode. The 80286 is internally divided into four independent functional units that operate in a pipeline fashion to increase throughput and processing speed.


Block Diagram of 80286

csc167-80286-block
+------------------+       +------------------+
|                  |       |                  |
|   ADDRESS UNIT   |       |    BUS UNIT      |
|      (AU)        |<----->|      (BU)        |
|                  |       |                  |
| - Segment Regs   |       | - Prefetch Queue |
| - Descriptor     |       | - Bus Control    |
|   Cache Regs     |       | - Address Driver |
| - Adder          |       | - Pipeline/Bus   |
| - Limit Checker  |       |   Size Control   |
| - Protection     |       |                  |
|   Check Unit     |       +------------------+
+------------------+              |
         |                        |
         |    Internal Bus        |
         +------------------------+
         |                        |
+------------------+       +------------------+
|                  |       |                  |
| INSTRUCTION UNIT |       | EXECUTION UNIT   |
|      (IU)        |<----->|      (EU)        |
|                  |       |                  |
| - 6-Byte Prefetch|       | - ALU            |
|   Queue          |       | - Register File  |
| - Instruction    |       | - Barrel Shifter |
|   Decoder        |       | - Multiply/Divide|
| - Decoded        |       |   Unit           |
|   Instruction    |       | - Control Logic  |
|   Queue (3 deep) |       |                  |
+------------------+       +------------------+
         |                        |
         +-------- Internal Bus --+
                       |
              +------------------+
              |   SYSTEM BUSES   |
              | Address Bus (24) |
              | Data Bus (16)    |
              | Control Bus      |
              +------------------+

Functional Units of 80286

The 80286 is divided into four major functional units:


1. Bus Unit (BU)

The Bus Unit is responsible for all external bus operations. It acts as the interface between the processor and the external system buses.

Key components and functions:

ComponentFunction
Prefetch QueueHolds up to 6 bytes of prefetched instructions
Bus Control LogicManages read/write cycles on external buses
Address DriverDrives the 24-bit physical address bus
Pipeline/Bus Size ControlControls bus cycle pipelining
  • It fetches instruction bytes from memory and places them into the prefetch queue.
  • It manages the 24-bit address bus, allowing access to up to 16 MB of physical memory.
  • It handles the 16-bit data bus for data transfers.
  • It operates independently of the Execution Unit, so it can prefetch instructions while the EU is executing previous instructions.

2. Instruction Unit (IU)

The Instruction Unit is responsible for decoding instructions fetched by the Bus Unit.

Key components and functions:

ComponentFunction
6-Byte Prefetch QueueReceives raw instruction bytes from BU
Instruction PredecoderDetermines instruction boundaries and length
Instruction DecoderFully decodes instructions into micro-operations
3-Deep Decoded Instruction QueueStores up to 3 decoded instructions ready for EU
  • It takes instruction bytes from the BU's prefetch queue and decodes them.
  • Decoded instructions are placed in a 3-stage decoded instruction queue, which feeds the Execution Unit.
  • This pipelining ensures the EU always has a ready decoded instruction, reducing idle time.

3. Execution Unit (EU)

The Execution Unit is responsible for actually executing the decoded instructions provided by the Instruction Unit.

Key components and functions:

ComponentFunction
ALU (Arithmetic Logic Unit)Performs arithmetic and logical operations
Register FileContains general-purpose registers (AX, BX, CX, DX, SP, BP, SI, DI)
Barrel ShifterPerforms fast multi-bit shift and rotate operations
Multiply/Divide UnitDedicated hardware for multiplication and division
Control LogicSequences and controls execution of micro-operations
  • The EU fetches decoded instructions from the IU's decoded queue.
  • It performs all arithmetic, logical, shift, and data manipulation operations.
  • It communicates with the Address Unit to generate effective addresses for memory operands.
  • It uses a dedicated ALU bus for fast internal data transfers.

4. Address Unit (AU)

The Address Unit is responsible for memory address calculation and protection checking in both real mode and protected mode.

Key components and functions:

ComponentFunction
Segment RegistersHold segment selectors (CS, DS, SS, ES)
Descriptor Cache RegistersCache segment descriptor information (base, limit, attributes)
AdderComputes physical addresses by adding segment base and offset
Limit CheckerVerifies that memory accesses are within segment limits
Protection Check UnitEnforces privilege levels and access rights in protected mode
Attribute PLADecodes segment attributes and access rights
  • In real mode, it adds the segment base (shifted left by 4) to the offset to produce a 20-bit physical address.
  • In protected mode, it uses the descriptor cache to obtain the 24-bit base address and adds the offset, producing a full 24-bit physical address.
  • It performs protection checks to prevent unauthorized memory access, which is a key feature of the 80286 over the 8086.

Pipeline Operation of the Four Units

The four units operate in a pipelined, overlapping fashion rather than strictly one after another, and this overlap is what gives the 80286 its speed advantage over the 8086:

  • The Bus Unit prefetches the next instruction bytes from memory while the current instruction is still being decoded or executed.
  • The Instruction Unit decodes the prefetched bytes into micro-operations and keeps up to three decoded instructions queued, so the Execution Unit is rarely left waiting for work.
  • The Execution Unit executes one decoded instruction while the Instruction Unit decodes the next one and the Bus Unit fetches the one after that.
  • The Address Unit works alongside the Execution Unit, computing and protection-checking physical addresses for memory operands as soon as they are needed, so address translation does not stall the pipeline.

Because fetching, decoding, address computation, and execution proceed concurrently in different units instead of sequentially, the 80286 achieves a higher instruction throughput than the non-pipelined 8086.

Open this answer on its own page โ†’

2075 ยท 10 marks

Draw block diagram of 80286 and explain its functional units.[10]

Show solved answer

Block Diagram of 80286 and Its Functional Units

Introduction

The Intel 80286 is a 16-bit microprocessor that is an enhanced version of the 8086. It operates at higher speeds and supports protected mode operation with memory management and protection features. The 80286 is internally divided into four independent functional units that operate in a pipelined fashion to improve overall performance.


Block Diagram of 80286

         +------------------+        +----------------------+
         |   ADDRESS UNIT   |        |    BUS UNIT (BU)     |
         |      (AU)        |        |                      |
         | - Segment Regs   |<------>| - Address Drivers    |
         | - Adder          |        | - Prefetch Queue     |
         | - Descriptor     |        |   (6-byte)           |
         |   Registers      |        | - Bus Control Logic  |
         | - Limit Checker  |        |                      |
         +--------+---------+        +----------+-----------+
                  |                             |
                  |     INTERNAL BUS            |
         +--------+---------+        +----------+-----------+
         | INSTRUCTION UNIT |        |  EXECUTION UNIT (EU) |
         |      (IU)        |        |                      |
         | - Instruction    |<------>| - ALU                |
         |   Prefetch Queue |        | - Register File      |
         | - Instruction    |        | - Barrel Shifter     |
         |   Decoder        |        | - Multiply/Divide    |
         | - Decoded Queue  |        | - Control Logic      |
         +------------------+        +----------------------+
                  |                             |
                  +----------+-----------------+
                             |
                    INTERNAL CONTROL BUS
                             |
              +--------------+--------------+
              |                             |
     EXTERNAL ADDRESS BUS (24-bit)   EXTERNAL DATA BUS (16-bit)

Functional Units of 80286

The 80286 is divided into four major functional units:


1. Bus Unit (BU)

The Bus Unit is responsible for all external bus operations. It acts as the interface between the processor and the external memory or I/O devices.

Functions:

  • Fetches instruction bytes from external memory and places them into the 6-byte prefetch queue
  • Manages the 24-bit external address bus and 16-bit external data bus
  • Controls bus timing, bus cycles, and bus arbitration
  • Performs read and write operations to memory and I/O ports
  • Contains address drivers and bus control logic

The BU operates independently, so while the Execution Unit is processing one instruction, the BU can simultaneously fetch the next instruction (pipelining).


2. Instruction Unit (IU)

The Instruction Unit is responsible for decoding instructions fetched by the Bus Unit.

Functions:

  • Receives raw instruction bytes from the BU's prefetch queue
  • Decodes the instructions into a form that the Execution Unit can process
  • Maintains a decoded instruction queue (holds up to 3 decoded instructions)
  • Uses a predecode stage to identify instruction boundaries and lengths
  • Feeds decoded instructions to the Execution Unit in order

The IU works ahead of the EU, so the EU rarely has to wait for instruction decoding, improving throughput.


3. Execution Unit (EU)

The Execution Unit is responsible for actually executing the decoded instructions.

Functions:

  • Contains the 16-bit ALU (Arithmetic and Logic Unit) for arithmetic and logical operations
  • Contains the Register File (AX, BX, CX, DX, SP, BP, SI, DI, IP, FLAGS)
  • Contains a Barrel Shifter for fast shift and rotate operations
  • Contains Multiply/Divide hardware for multiplication and division operations
  • Receives decoded instructions from the IU and executes them
  • Sends memory addresses to the Address Unit when memory access is needed
  • Manages the control logic for instruction execution flow

4. Address Unit (AU)

The Address Unit is responsible for memory address calculation and memory protection in both real mode and protected mode.

Functions:

  • Contains Segment Registers and Descriptor Registers for memory segmentation
  • Performs address calculation using a dedicated adder (segment base + offset)
  • Checks limit and attribute of memory segments using the Limit Checker and Attribute PLA (Programmable Logic Array)
  • Enforces memory protection in protected mode by verifying access rights
  • Generates the final 24-bit physical address sent to the Bus Unit
  • Supports a descriptor cache to hold recently used segment descriptors for fast access

The AU is the key unit that enables the 80286's protected mode, allowing it to address up to 16 MB of physical memory and 1 GB of virtual memory.


Summary Table

UnitMain RoleKey Components
Bus Unit (BU)External bus interface, instruction fetchPrefetch queue, address drivers, bus control
Instruction Unit (IU)Instruction decodingDecoder, decoded instruction queue
Execution Unit (EU)Instruction executionALU, register file, barrel shifter, multiply/divide
Address Unit (AU)Address generation and memory protectionSegment regs, adder, limit checker, descriptor cache

Conclusion

The 80286 achieves high performance through pipelining of its four functional units. While the EU executes one instruction, the IU decodes the next, and the BU fetches the one after that, all simultaneously. The AU provides the memory management and protection features that distinguish the 80286 from its predecessor, the 8086.

Open this answer on its own page โ†’

2080.1 ยท 10 marks

Draw a block diagram of 80286 microprocessor and explain.[10]

The Intel 80286 is a 16-bit microprocessor introduced by Intel in 1982. It is an advanced version of the 8086/8088 microprocessors. It has a 16-bit data bus and a 24-bit address bus, which allows it to address up to 16 MB of physical memory. It can operate in two modes: Real Address Mode and Prot...

Open this answer on its own page โ†’

Memory access in GDT and LDT

2076 ยท 5 marks

Write short notes on: a. Harvard architecture b. GDT and LDT [5]

--- Harvard Architecture is a computer design model in which separate memory and separate buses are used for instructions (program) and data. This is in contrast to the Von Neumann architecture, where a single memory and single bus are shared for both instructions and data. Feature Description --...

Open this answer on its own page โ†’

2080.1 ยท 5 marks

Illustrate memory access in GDT. [5]

In Protected Mode of the 80286/80386 microprocessor, memory access is managed through a structure called the Global Descriptor Table (GDT). The segment registers no longer hold base addresses directly; instead, they hold selectors that point to descriptors inside the GDT. --- Component Descriptio...

Open this answer on its own page โ†’

Paging

2080.1 ยท 5 marks

What is paging? Explain the concept of memory access in protected mode. [5]

Paging is a memory management mechanism used in protected mode that allows handling of large segments of memory by dividing them into fixed-size units called pages. Each page is of 4K bytes (4096 bytes) in size. - The paging unit is a memory management unit that is enabled only in protected mode....

Open this answer on its own page โ†’