ASE Labs
Welcome Guest. Please register or log in now. There are 42 people online (0 Friends).
  • Home
  • Articles
  • News
  • Forum
  • Register/Login
You are at ASE Labs » Articles » Reviews Index » How Modern CPUs Work

How Modern CPUs Work

Author
Aron Schatz
Posted
June 4, 2005
Views
34065
How Modern CPUs Work
Modern CPUs are increasingly more and more complex and it seems there is no end in sight. Let's take a look at a generic modern day CPU and see how it works.
Tags CPU

Page 1: Multi-cycle CPU & Conclusion

Intro:

A Central Processing Unit is one of the major components of a computer. The CPU controls logic flow and other control type operations. There are many different things inside a modern CPU. How it works is what we are after today.

Assumptions:

5 Stage Datapath


I will be referring to a RISC style architecture throughout this article and there are five basic steps in the architecture; Instruction Fetch, Instruction Decode (Register Fetching), ALU/Execution, Memory (Read & Write), Write-back (Register Write). RISC stands for Reduced Instruction Set Computer, basically it means that every piece of data that the CPU wants to operate on needs to be in the register file. If you need to work with data that is in 0xFF56, you need to load it into a register and then work with it. It is due to this nature that these types of CPUs are called load-store machines. x86 ISA CPUs are CISC (Complex). They can work on memory directly, but their instructions are different lengths and need more logic to do. RISC instructions are all the same size. The RISC instructions and data are all aligned in memory and both take exactly one cycle to fetch each instruction.

This article will not be going into how cache helps alleviate bottleneck problems. I will leave that topic until a later article explains how that works as well as concepts such as virtual memory.

We will measure performance in execution time. Exectime = t x InstrCount x CPI

t=Clock Period
CPI=Cycles per Instruction

Commonly, you will see that people refer to IPC which is Instructions per Cycle in the case of super scalar CPUs where in a single-cycle, more than one instruction can complete. In this case Exectime = t x InstrCount x (1/IPC) .

Simple Case - Single-Cycle CPU:

Single-Cycle CPU


The simplest CPU is a single-cycle CPU. You feed an instruction in and in one clock cycle, the data is produced. Think of going to the laundromat to get your clothes clean. In a single-cycle CPU, you take over a combination of the washing machine (30 minutes), the dryer (40 minutes) and the folding table (20 minutes). No one can use the washing machine until you have completed your entire task. In a single-cycle CPU, each instruction takes one cycle no matter which instruction is executing. The clock speed is determined by the runtime of the longest instruction. In a single-cycle CPU, logic is easy. There is a purely combinational approach to this type of CPU and there is no need to worry about data dependencies or hazards. Today's single-cycle CPUs are typically called micro controllers. Since a single-cycle CPU effectively locks out the entire datapath of the CPU, it is considered to waste resources. Going back to the example, when you finished your washing machine load and moved onto the dryer, someone else could start using the washing machine right after. This is the same as a multi-cycle CPU or pipelined CPU. Most (if not all) server and desktop CPUs are pipelined including the x86 CPUs. In this example, a person exists the laundromat every 90 minutes (30+40+20), which is the execution time of a single instruction.

The execution time for a single-cycle CPU would be t x InstrCount. CPI is equal to 1. Let's say that a typical benchmark is 1,000,000,000 instructions and the clock speed of this particular type of CPU is 200MHz. This particular CPU would take 5 seconds to execute this benchmark.
  Next Page »
Page 1
Page 2
View As Single Page Print This Page Print Entire Article
Related Articles
  • Intel Pentium 4 3.0C GHz
  • ECS L4S5MG Motherboard Review
  • Top motherboard companies guide

Title

Medium Image View Large
Login
Welcome Guest. Please register or log in now.
Forgot your password?
Navigation
  • Home
  • Articles
  • News
  • Register/Login
  • Shopping
  • ASE Forums
  • Anime Threads
  • HardwareLogic
  • ASE Adnet
Latest News
  • Welcome to the new server
  • Gmail Gets Optional Preview Pane
  • HBO Go on Consoles
  • HP Touchpad Update
  • Happy System Administrator Day!
  • Apple Releases OS X 10.7 Lion
  • More Android Apps Found to be Malware
  • This Weeks News
  • Happy Birthday USA!
  • Windows Phone Gets Angry Birds, Custom Rings Coming To Mango
Latest Articles
  • Sapphire Edge HD4 Mini PC
  • Logitech G710+ Mechanical Gaming Keyboard
  • EnerPlex Kickr IV And Jumpr Solar Power Pack
  • Kingston Wi-Drive
  • Kingston SDX10V/128GB SDXC Memory
  • In-Win K1 All In One Convertible Case
  • Kingston MobileLite G3 USB3 SDXC Card Reader
  • Synology DS712+ Network Application Server
  • Rapoo Wireless Touchpad Keyboard E9080
  • Netgear NeoTV NTV200 Streaming Player
Latest Topics
  • Pokemon: The Ongaku Region
  • Random Fact of the Day
  • What are you listening to now?
  • P A R A S Y T E [A Samurai's Story]
  • We Are C A R E E R S [64th Hunger Games!]
  • Lets talk
  • Review Nokia Lumia 800 V.S. iPhone 4S: Convert DVD/Video to mobile phone devices.
  • You're a Fanfiction?!
  • hello every one
  • Hp Z1 Workstation Benchmarks
  • Sapphire Edge HD4 Mini PC at ASE Labs
  • HTC 8X
  • Dragon's Dogma
Advertisement
Advertisement
Affiliate Reviews
  • Raspberry Pi Gets New Wayland Weston Renderer at Phoronix
  • Chrome 27 Loads Web Pages Faster at Phoronix
  • G.SKILL Hosts Official OC World Record Stage at Computex 2013 at Hardware Secrets
  • NVIDIA Announces PhysX Support for Microsoft Xbox One Game Console at Hardware Secrets
  • Sony Mobile's Xperia Tablet Z Now Available Worldwide at Hardware Secrets
  • Microsoft Unveils Xbox One at Hardware Secrets
  • Shuttle OMNINAS KD20 Review at techPowerUp!
  • Debian GNU/Hurd 2013 Release Brings New Packages at Phoronix
  • Intel Ultrabook Performance Is Faster With Mesa 9.2 at Phoronix
  • Hot Relocation HDD To SSD Support For Btrfs at Phoronix
  • Phoronix Test Suite 4.6.0 "Utsira" Released at Phoronix
  • New Intel X.Org Driver Supports All Of Haswell at Phoronix
  • Mesa 9.1.3 Release Corrects Some Bugs at Phoronix
  • SQLite Now Faster With Memory Mapped I/O at Phoronix
Press Release
  • Epiq Solutions Announces the Matchstiq(TM) Z1 Handheld Software Defined Radio
  • Writers' Group Film Corp. Unveils New Strategic Initiatives Aimed at Revenue Growth and Leveraging Distribution Platforms
  • Promoting the Myth of the "Always Connected" Device
  • BillFloat's SmartPay Expands Pilot Program to RadioShack
  • =?ISO-8859-1?Q?Cricket_Announces_Launch_of_the_4G_Samsung_Galaxy_S=AE4?=
  • Merchants can win $10,000 cash plus a touch-screen POS System in Harbortouch's Business Upgrade Contest
  • Life Wireless offers cellphone service in Nevada and Ohio
  • RadioShack Begins Collecting Customer Donations To Benefit Texas and Oklahoma Tornado Victims
  • GainSpan's Application Development Kit Jump-Starts Innovation for Wireless Video Applications
  • D&H Distributing's "Get Authorized" Program Makes Pricing Compliance More Convenient
Home - ASE Publishing - About Us
© 2010 Aron Schatz (ASE Publishing) [Queries: 17 (8 Cached)] [Rows: 298 Fetched: 41] [Page Generation time: 0.8867130279541]