Hardware Secrets
Home | Audio | Case | Cooling | CPU | Input | Memory | Mobile | Motherboard | Networking | Power | Storage | Video | Other
Content
Articles
First Look
News
Reviews
Tutorials
Main Menu
About Us
Compare Prices
Datasheets
Dictionary
Download
Drivers
Forums
Gabriel's Blog
Links
Manufacturer Finder
Newsletter
On The Web
RSS Feed
Test Your Skills
Newsletter
Subscribe today!
Search




Recommended Book
The Winn L. Rosch Hardware Bible (6th Edition)
By Winn L Rosch
Que
Price: $0.92

Home » CPU
Inside AMD64 Architecture
Author: Gabriel Torres
Type: Tutorials Last Updated: May 16, 2006
Page: 5 of 9
$ Check REAL-TIME pricing for AMD Athlon™ 64 X2 6000+, 3.0 GHz (ADX6000CZBOX) Boxed Processor $
CompuVest: $116.44 ZipZoomfly.com: $112.50
CompUSA.com: $115.99 TigerDirect.com: $115.99
Superduperclub: $656.99 Zappos: $826.00

AMD64 Pipeline

Pipeline is a list of all stages a given instruction must go thru in order to be fully executed. AMD64 architecture uses a 12-stage pipeline for executing integer instructions and a 17-stage pipeline for executing floating-point ones. So it takes 12 or 17 steps for a given instruction to be executed on AMD64 CPUs. AMD previous architecture – K7, which was used by the original Athlon, Athlon XP and some Sempron models – had a 10-stage pipeline. Pentium 4 pipeline has 20 stages and Pentium 4 “Prescott” pipeline has 31 stages. Intel went back and the forthcoming Core 2 Duo processor will have a 14-stage pipeline.

Let’s study AMD64’s integer pipeline. It is based on K7 architecture pipeline, the main difference the decoder stages that were broken in several different stages, probably to allow AMD64 CPUs to achieve a higher clock rate.

AMD64 Pipeline
click to enlarge
Figure 11: AMD64 Integer Pipeline.

Here is a basic explanation of each stage, which explains how a given instruction is processed by processors based on AMD64 architecture. If you think this is too complex for you, don’t worry. This is just a summary of what we will be explaining on the next pages.

  • Fetch: Fetches instructions from the L1 instruction cache in groups of 16 bytes (128 bits). This phase is broken into two stages. The second stage is also known as “Transit”, as its main operation is to move data inside the CPU (resembling the “Drive” stage available on Pentium 4).
  • Pick: The fetch unit sends the 128 bits that were fetched to this stage, feeding the buffer available here. Since x86 instructions don’t have a fixed length, on this stage the CPU looks and separates the instructions present in the buffer. It also decides to which decoder the x86 instruction will be sent: to a simple (and quick) decoder, used for common x86 instructions that are converted in just one or two macro-ops, or to a complex (and slow) decoder, used by x86 instructions that are converted into several macro-ops. This stage is also known as “scan”.
  • Decode: Here the x86 instructions are translated into macro-ops that the CPU core can understand. This phase takes two stages.
  • Pack: Decoded macro-ops pairs are fused into a single macro-op here.
  • Pack/Decode: Some more decoding is done here before the macro-ops are sent to AMD64’s Instruction Control Unit (which is the same thing as the “Reorder Buffer” present on CPUs from Intel).
  • Dispatch: Macro-ops are sent to the appropriate scheduler in this stage.
  • Schedule: The macro-ops are scheduled to be executed on one of the CPU schedulers.
  • AGU/ALU: The integer instruction or memory-related instruction is executed.
  • Data Cache: The data generated by the execution unit is sent to the L1 data cache, the original registers are restored and the instruction is tagged as “executed” on the reorder buffer. This phase is equivalent to the “retirement” phase on Intel CPUs.
Pages (9): « 1 2 3 4 [5] 6 7 8 9 »
Print Version | Send to Friend | | Bookmark Article | Comments (0)

Related Content
  • AMD 64-bit architecture (x86-64)
  • How to Enable Cool
  • Dual Core AMD Processors
  • All Opteron Models
  • Inside AMD K10 Architecture

  • Recommended Deals
    AMD Athlon 64 3500+, 2.2 GHz (ada3500dik4b) OEM / Unboxed Processor


    ZipZoomfly.com: $59.99 CompuVest: $42.99
    Zappos: $826.00 Superduperclub: $656.99
    Hpshopping: $519.99
    AMD Athlon™ XP 2800+, 2.8 GHz (AXDA2800BOX) Retail Processor


    ZipZoomfly.com: $106.99 Circuitcity: $549.99
    Newegg: $579.99 Hpshopping: $579.99
    Pcrichard: $579.97
    AMD Athlon™ 64 3800 3800+, 2 GHz AMD Processor in a Box (PIB)


    Server Supply: $135.00 Amazon: $110.58
    ZipZoomfly.com: $49.99 Zappos: $826.00
    Superduperclub: $656.99 Hpshopping: $519.99
    AMD Athlon™ 64 X2 5600+, 2.8 GHz Boxed Processor


    Newegg.com: $102.00 TECHONWEB: $114.94
    ZipZoomfly.com: $102.00 Superduperclub: $656.99
    Zappos: $826.00 Hpshopping: $519.99
    Intel Core™2 Quad Q6600, 2.40 GHz (BX80562Q6600) Boxed Processor


    Circuit City: $239.99 ZipZoomfly.com: $188.50
    Tech for Less: $176.76 CompUSA.com: $189.99

    RSSLatest News
    Arctic Cooling Launches Fusion 550R Power Supply
    August 27, 2008 - 4:08 AM PST
    nVidia Launches GeForce 9400 GT
    August 27, 2008 - 3:47 AM PST
    MSI Launches ‘P45-D8 Memory Lover’ Motherboard
    August 26, 2008 - 8:15 AM PST
    Lexar Launches 16 GB JumpDrive FireFly Flash Memory
    August 25, 2008 - 8:52 AM PST
    OCZ Launches Dominatrix Laser Gaming Mouse
    August 22, 2008 - 9:19 AM PST
    Lian Li Launches MAXIMA Force Power Supply Series
    August 21, 2008 - 10:00 AM PST
    Palit Launches Radeon HD 4870 Sonic Edition
    August 20, 2008 - 12:21 PM PST
    OCZ Introduces ModXStream Pro Power Supply Line-Up
    August 19, 2008 - 8:45 AM PST
    Danger Den Launches Radeon HD 4870 X2 Water Block
    August 18, 2008 - 8:08 AM PST
    Thermaltake Launches BlacX A
    August 18, 2008 - 7:30 AM PST
    .:: More News ::.

    RSSLatest Content
    AMD ATI Chips Comparison Table
    nVidia Chips Comparison Table
    Inside Intel Nehalem Microarchitecture
    OCZ Elixir Gaming Keyboard Review
    Everything You Need to Know About The QuickPath Interconnect (QPI)
    Me and Woz
    Introduction to Wireless USB (WUSB)
    Nikon Coolpix S600 Camera Review
    IDF Fall 2008: Opening Keynote
    Thecus N5200 NAS Review
    ECS GeForce 9800 GTX+ Hydra Video Card Review
    320 GB Hard Disk Drive Round-Up
    Razer Destructor Mouse Pad Review
    Sapphire HD 4870 X2 Video Card Review
    Antec Twelve Hundred Case Review

    Our Most Popular Articles
    Maximum CPU Temperature
    764,975 views
    nVidia Chips Comparison Table
    475,265 views
    AMD ATI Chips Comparison Table
    421,942 views
    ATI Radeon X1300 Pro Review
    412,116 views
    ATI Radeon X1600 XT Review
    406,992 views
    How to Find Out Your Motherboard Manufacturer and Model
    379,100 views
    Connecting Two PCs Using a USB-USB Cable
    343,188 views
    How To Correctly Apply Thermal Grease
    328,503 views
    Sempron vs. Athlon XP
    278,916 views
    Sempron 3400+ Review
    268,987 views

    Latest Threads in Our Forums
    Custom build, getting frustrated
    by snarley25
    Port Scans?
    by Grimreaper
    Hard Drive Partitioning....
    by djprov
    Evga 8800gts
    by Gabriel Torres
    Custom PC Problems!
    by Skye
    Arctic Cooling Launches Fusion 550R Power Supply
    by Hardware Secrets Team
    nVidia Launches GeForce 9400 GT
    by Hardware Secrets Team
    overclocking e8400 problem
    by andybarrel
    oc'ing e8400 with 667mhz ram
    by andybarrel
    How to Build a Small Network Using a Broadband Router
    by zahadum
    .:: Visit Our Forums ::.

    © 2004-8, Hardware Secrets, LLC. All rights reserved.
    Advertising | Legal Information | Privacy Policy
    All times are Pacific Standard Time (PST, GMT -08:00)