2076 1

CSC167 ยท 2076 ยท 10 marks

Draw block diagram of 80286 and explain its functional units.

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

MicroprocessorChapter 7: Advanced Microprocessors80286

Quick answer

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 and Its Functional Units

Introduction


Block Diagram of 80286

+------------------+       +------------------+
|                  |       |                  |
|   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.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.