TipZone
  BugAlert
  Downloads
 How Tos
 Win98
 Books
 HealthyPC
 Linux
 and more

PC Magazine

  PC Tech

RISC vs. CISC: The Real Story

Introduction

RISC: The Myth

RISC: The Reality

The Bottom Line

Pipelining: How It Works



Internet Platinum card - click here.

NextCard Internet Visa - Apply Now

 
  Categories:
PCs and Hardware
RISC vs. CISC: The Real Story
Pipelining: How It Works

Continued from The Bottom Line

Pipelining is a technique used by RISC and CISC microprocessors to break the execution of individual instructions into stages and overlap the stages so several instructions can be processed in parallel. Both 486 and Pentium CPUs use the five-stage pipeline diagrammed in Figure A. The values in the boxes represent instructions--I1 for instruction number 1, I2 for instruction number 2, and so on. The five stages of the pipeline are:

    *  PF, which fetches an instruction from the processor cache
       or memory;

    *  D1, which decodes the instruction;

    *  D2, which generates a memory address if the instruction
       includes a memory reference;

    *  EX, which executes the instruction; and

    *  WB, which stores, or "writes back," the result.

FIGURE A: Pipelining allows more than one microprocessor instruction to be serviced at once. Time moves from left to right in units of a clock cycle. Follow the first instruction, I1, from left to right, and you can see that other operations enter the pipeline before I1 is finished. This allows the microprocessor to average 1 clock cycle for each instruction.

Under ideal conditions, each stage requires 1 clock cycle. You can trace the path that a single instruction takes through the pipeline by following I1 from start to finish. During the first clock cycle, I1 is fetched. During the second clock cycle, it is decoded. I2, meanwhile, is being fetched. After 5 clock cycles, processing of I1 is complete. When the pipeline is fully loaded, an average of one instruction per clock cycle can be output from the pipeline, like cars rolling off an assembly line. The Pentium's superscalar design incorporating two independent pipelines nominally doubles the processor's instruction throughput.

 

Published as Tutor in the 10/24/95 issue of PC Magazine.


 SPONSORED LINKS
@Backup   Your Solid Online Backup Plan. Download Now.
Services   9c/MINUTE LONG DISTANCE, 5c/MINUTE ON SUNDAYS!
STORAGE   Quantum means non-stop business, 24 hours a day
Software   X10.com -- The SuperSite for Home Automation
Books   Bargain Books up to 90% off at barnesandnoble.com
 ZDNET FEATURED LINKS
Downloads   Check out the best new downloads in Reviewer's Raves
Bargains!   Shop the Basement for best buys on computer products
Free Help   Got computing questions? ZDHelp has all the answers!
 MAGAZINE OFFERS
Free Offer   Get a FREE SUBSCRIPTION to Inter@ctive Week

TOP
Copyright (c) 1997 Ziff-Davis Inc.