Docsity

Microprocessor Programming:8086 to Pentium 4 Comparison, NetBurst, TLB and Hyper-Threading, Study notes of Computer science

Toggle sidebar
bg1
1. Comparative Study: 8086, 80386, Pentium I, II, III
1.1 8086 Microprocessor
• The 8086 is an enhanced version of the 8085 microprocessor.
• Designed by Intel in 1976.
• It is a 16-bit microprocessor.
• It has 20 address lines and 16 data lines.
• It can access up to 1 MB of memory.
• It has a powerful instruction set that supports multiplication and division easily.
• It supports two modes of operation:
◦ Maximum mode – used for systems with multiple processors.
◦ Minimum mode – used for systems with a single processor.
• Main parts: Bus Interface Unit (BIU) and Execution Unit (EU).
• BIU handles memory and I/O communication. It has a 6-byte prefetch queue.
• EU has the ALU and general-purpose registers (AX, BX, CX, DX).
1.2 80386 Microprocessor
• The 80386 is an advanced 32-bit microprocessor.
• It is optimized for multitasking operating systems.
• Its 32-bit registers and data paths support 32-bit addresses and data types.
• It can address up to 4 GB of physical memory.
• It can address up to 64 terabytes of virtual memory.
• It has on-chip memory management: address translation registers, multitasking hardware, protection
mechanism, and paged virtual memory.
• It has special debugging registers for finding errors even in ROM-based software.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Microprocessor Programming:8086 to Pentium 4 Comparison, NetBurst, TLB and Hyper-Threading and more Study notes Computer science in PDF only on Docsity!

1. Comparative Study: 8086, 80386, Pentium I, II, III

1.1 8086 Microprocessor

  • The 8086 is an enhanced version of the 8085 microprocessor.
  • Designed by Intel in 1976.
  • It is a 16-bit microprocessor.
  • It has 20 address lines and 16 data lines.
  • It can access up to 1 MB of memory.
  • It has a powerful instruction set that supports multiplication and division easily.
  • It supports two modes of operation: ◦ Maximum mode – used for systems with multiple processors. ◦ Minimum mode – used for systems with a single processor.
  • Main parts: Bus Interface Unit (BIU) and Execution Unit (EU).
  • BIU handles memory and I/O communication. It has a 6-byte prefetch queue.
  • EU has the ALU and general-purpose registers (AX, BX, CX, DX).

1.2 80386 Microprocessor

  • The 80386 is an advanced 32-bit microprocessor.
  • It is optimized for multitasking operating systems.
  • Its 32-bit registers and data paths support 32-bit addresses and data types.
  • It can address up to 4 GB of physical memory.
  • It can address up to 64 terabytes of virtual memory.
  • It has on-chip memory management: address translation registers, multitasking hardware, protection mechanism, and paged virtual memory.
  • It has special debugging registers for finding errors even in ROM-based software.

1.3 Pentium I

  • Introduced in 1993 as the successor to the Intel 80486.
  • It has two processors on a single chip.
  • It contains about 3.1 million transistors.
  • It has a 32-bit address bus and a 64-bit data bus.
  • It has built-in floating-point and memory-management units.
  • It has two 8 KB caches.

Feature Pentium I Pentium II Execution Mainly in-order Out-of-order + speculative execution Branch Prediction Basic Improved dynamic branch prediction MMX Added in later Pentium MMX Supported MMX L2 Cache Typically external to CPU 512 KB, on processor cartridge/module L2 Cache Speed Depends on external cache Early versions: about half CPU clock Packaging PGA socket SECC cartridge / Slot 1 Register Renaming No Yes Speculative Execution Limited Supported Performance Lower Higher

1.5 Pentium III

  • Introduced on February 28, 1999.
  • Based on the sixth-generation P6 microarchitecture.
  • Its early processors were very similar to the Pentium II.

1.6 Comparison Table: 8086, 80386, Pentium I, II, III

Sr.No Feature 8086 80386 Pentium-I Pentium-II Pentium-III 1 Year of Release 1978 1985 1993 1997 1999 2 Processor Size 16 Bit 32 Bit 32 Bit 32 Bit 32 Bit 3 Data Bus 16 Bit 32 Bit 64 Bit 64 Bit 64 Bit 4 Address Bus 20 Bit 32 Bit 32 Bit 32 Bit 32 Bit 5 Memory Banks 2 4 8 8 8 6 Memory Size 1 MB 4 GB 4 GB 64 GB 64 GB 7 Pipeline Stages 2 3 5 17 15 8 ALU Size 16 Bit 32 Bit 32 Bit 32 Bit 32 Bit 9 No. of Transistors 29 K 275 K 3.1 M 7.5 M 9.5 M 10 Operating Frequency 6 MHz 33 MHz 100 MHz 450 MHz 450 - 1400 MHz

1.7 Advantages of the x86 Microprocessor Family

  • Backward compatibility – newer x86 chips can run programs written for older x86 chips (example: modern CPUs still run 8086-based software).
  • Large instruction set (CISC) – supports data transfer, arithmetic, logic, string operations, control transfer, and bit manipulation.
  • Wide range of data types – supports 8-bit, 16-bit, 32-bit, 64-bit data, plus floating-point and SIMD/vector operations.
  • Powerful memory management – supports segmentation, paging, virtual memory, memory protection, and privilege levels.
  • Multitasking support – protected mode, privilege levels, interrupts, and virtual memory allow efficient multitasking.
  • High performance – uses pipelining, superscalar execution, out-of-order execution, branch prediction, speculative execution, and multicore processing.
  • Large memory addressing – grew from 1 MB (8086) to much larger address spaces in 32-bit and 64-bit processors.
  • Advanced branch prediction – predicts outcomes of conditional branches to keep the pipeline busy.
  • Parallel processing support – superscalar execution, multithreading, Hyper-Threading/SMT, multicore, SIMD.
  • Wide application area – used in desktops, laptops, servers, workstations, data centers, and embedded systems.

1.8 Drawbacks of the x86 Microprocessor Family

  • Power consumption – x86 chips use more power than some other architectures, which is a problem for battery devices.
  • Complexity – the architecture has grown complex over many generations, making optimization and compatibility harder.
  • Security vulnerabilities – examples include Meltdown and Spectre, discovered in 2018, which could expose sensitive data in memory.
  • Licensing – some x86 designs are proprietary and need licensing fees, raising costs and barriers for smaller companies.

2. Pentium 4: NetBurst Microarchitecture

2.1 Introduction

  • NetBurst is the processor microarchitecture designed by Intel for Pentium 4 processors.
  • It was first used starting in 2001.
  • Key features: a longer pipeline than earlier Intel processors, higher clock speeds, and Hyper-Threading technology.
  • Hyper-Threading allows two threads to be processed in parallel on the same processor.
  • NetBurst was designed for high performance — high clock rates and high bandwidth.

2.5 Memory Subsystem

  • Stores instructions in the Level 2 (L2) cache when the Trace Cache and L1 cache are full.
  • Used to access main memory when there is an L2 cache miss.
  • Also used to access I/O (input/output) resources.

2.6 System Bus

  • Used for accessing main memory when there is an L2 cache miss.
  • Also used for accessing I/O devices.
  • Bandwidth: 3.2 GB/s.
  • Width: 64 bits.
  • Clock rate: 400 MHz.

2.7 Detailed NetBurst Micro-Architecture

  • Front-End BTB has 4K entries; Trace Cache BTB has 512 entries.
  • Trace Cache stores 12K micro-ops (μops).
  • Instruction TLB/Prefetcher and Instruction Decoder feed the Trace Cache.
  • Allocator/Register Renamer assigns resources and renames registers.
  • Separate queues and schedulers exist for memory operations, integer/floating-point operations (Fast, Slow/General FP, Simple FP).
  • Execution units include: 2× ALU (fast, simple instructions), Slow ALU (complex instructions), and FP units (MMX, SSE, SSE2, FP Move).
  • L1 Data Cache: 8 KB, 4-way associative.
  • L2 Cache: 256 KB, 8-way associative, with 48 GB/s bandwidth.
  • Bus Interface Unit connects to the system bus at 3.2 GB/s (quad-pumped).

2.8 Clock Rate

  • Clock rate decides the number of pipeline stages.
  • A higher clock rate needs a deeper pipeline and more time to recover from a cache miss or a mispredicted branch.
  • Overall, higher clock rate still boosts performance.
  • Example: a 50% increase in frequency gives only about a 30% increase in real performance — but this is still a good gain.

2.9 Performance

  • Delivered the highest integer performance in the world at the time (SPECint_base).
  • SPECfp2000 (floating-point) performance was also good.
  • 15 – 20% gain in integer performance compared to Pentium III.
  • 30 – 70% gain in floating-point and multimedia performance compared to Pentium III.
  • 5% gain using SSE/SSE2 compared to using only the older x87 instructions.

2.10 Advantages and Drawbacks of NetBurst

  • Advantage: NetBurst gave high performance at the time of release.
  • It has since been replaced by more efficient, lower-power designs.
  • Drawback: higher power consumption and heat generation, needing more complex cooling systems.

3. TLB, Branch Prediction and Hyper-Threading

3.1 Translation Lookaside Buffer (TLB)

  • The TLB is a cache memory used to speed up virtual memory access.
  • It stores the most recently used mappings between virtual addresses and physical addresses.

Real-Time Applications of Branch Prediction

  • Web browsing: predicts which link a user will click next, speeding up page navigation.
  • Network packet processing: routers and switches predict packet type and choose the right processing path faster.
  • Digital Signal Processing (DSP): predicts outcomes of conditional statements in DSP algorithms to select the correct processing path faster.

3.3 Hyper-Threading Technology (HTT)

  • Hyper-Threading lets a single physical CPU core act as two logical CPUs.
  • This lets the CPU work on multiple tasks at the same time, improving performance.
  • It helps most when the CPU is not fully used — for example, running several applications together or multi-threaded tasks.

Benefits of Hyper-Threading Technology

  • Improved overall system performance.
  • Improved reaction and response time.
  • Improved throughput, since tasks run on different threads.
  • Increased number of instructions executed at the same time.
  • Compatible with existing IA-32 software.
  • Supports an increased number of users.

Hyper-Threading Use in Pentium 4

  • Pentium 4 was a popular Intel CPU released in the early 2000s.
  • One of its key features was support for Hyper-Threading Technology.
  • With HTT enabled, the Pentium 4 could act like two CPUs, improving performance in many cases.
  • However, the performance gain was not always large — in some cases, HTT could even reduce performance.

Real-Time Applications of Hyper-Threading

  • Video encoding and decoding: involves heavy parallel processing; HTT lets the processor work on multiple video frames at once.
  • Scientific computing: many applications process large datasets in parallel; HTT allows working on multiple data sets together.
  • Server applications: servers handle many requests at once; HTT lets the processor handle more requests simultaneously.

4. Architecture of Pentium 4

  • Pentium is Intel's widely used personal computer microprocessor line.
  • It was first offered in 1993.
  • It quickly replaced the Intel 486 as the standard chip for personal computers.
  • The original Pentium model had two processors on one chip, with 3.1 million transistors.
  • Pentium 4 architecture combines: Front End, Out-of-Order Engine, Integer and FP Execution Units, and Memory Subsystem (as covered in Section 2).

5. Recap of Module

  • The x86 family evolved from the 16-bit 8086 (1978) to the 32-bit 80386 (1985), and then to the Pentium series (Pentium I in 1993, Pentium II in 1997, Pentium III in 1999).
  • Each generation added more transistors, larger caches, higher clock speed, and better instruction execution methods (in-order → out-of-order → speculative execution).
  • Pentium 4 introduced the NetBurst microarchitecture in 2001, focused on very high clock speed and high bandwidth.
  • NetBurst has three main parts: In-Order Front End, Out-of-Order Engine, and Integer/FP Execution Units, supported by a Memory Subsystem and System Bus.
  • TLB speeds up the translation from virtual addresses to physical addresses, avoiding slow page walks.
  • Branch Prediction guesses the outcome of conditional branches to keep the pipeline full and avoid stalls.
  • Hyper-Threading Technology lets one physical core act as two logical CPUs, improving multitasking performance.

5.1 Outcomes

  • Able to compare the features of 8086, 80386, Pentium I, II, and III processors.
  • Able to explain the NetBurst microarchitecture used in Pentium 4.
  • Able to describe how TLB, branch prediction, and Hyper-Threading improve processor performance.