- Recommend:
- 0 Comments
How It Works: CPUs
Your CPU is more than just megahertz. Find out how enhancements to the CPU make your computer more efficient.
The CPU Process
A CPU processes information stored in bytes of memory. That information can be data or instructions. Data is a binary representation of a letter, a number, or a color, for example. An instruction tells the CPU what to do with the data: to add, subtract, or move it, for example.
The CPU performs three basic operations on data: It reads data, it manipulates that data, and often it writes that data to memory. At the simplest level, the CPU needs only four elements to perform its data operations: instructions, an instruction pointer, some registers, and the arithmetic logic unit.
The instruction pointer tells the CPU where in memory the instruction it needs to run is located.
Registers are temporary storage places on the CPU. A register holds data waiting to be processed by an instruction, or data that has already been processed (say, the result of adding two numbers together).
The arithmetic logic unit, or ALU, acts as the CPU's calculator, performing the math and logic functions dictated by the instructions.
The CPU consists of some additional parts that help the basic parts do their jobs:
The instruction fetch grabs instructions from RAM or an area of memory located on the CPU.
The instruction decoder takes the instruction from the fetch and translates it so the CPU understands. It then determines what steps are necessary to accomplish that instruction.
The control unit manages and coordinates all the operations of the chip. It lets the ALU know when to calculate, tells the fetch when to grab a value, and tells the decoder when to translate the value into an instruction.
Tracing an Instruction
Here's how a CPU does its thing: The instruction pointer directs the instruction fetch to a spot in memory that holds an instruction. The fetch grabs the instruction and hands it to the instruction decoder, which examines the instruction and determines what steps are necessary to accomplish that instruction. (An instruction can comprise numerous steps that need to be accomplished in a specific order.)
The ALU then performs the work the instruction calls for: It adds, subtracts, or otherwise manipulates the data. After the CPU interprets and performs an instruction, the control unit tells the fetch to grab the next instruction in memory. This process continues--instruction after instruction, at a dizzying pace--to create the results you see on your monitor. That's what a program such as a word processor is: a series of instructions and data.
To make sure everything happens on time, the parts require a clock generator. The clock generator regulates each of the actions the CPU performs. Like a metronome, the clock generator sends out pulses that set the pace for the CPU. Pulses get measured in millions of cycles per second, or megahertz, which you'll recognize as the familiar measure of a CPU's raw speed. The more pulses, the faster the CPU. If all things were equal, a 700-MHz CPU would always be faster than a 600-MHz CPU, but additions to and variations on the basic CPU make those numbers less meaningful.
Would you recommend this story? YES NO
- Recommend:
- 0 Comments
-
IdeaPad U300s If there's a laptop that deserves the moniker "Ultrabook" it's the Lenovo IdeaPad U300s.
Buy now direct from Lenovo -
ThinkPad X220 Fast and light, with great input ergonomics and battery life, this powerhouse ultraportable is best-of-breed.
Buy now direct from Lenovo -
ThinkPad T420 Just about every IT person we know swears by the T series--for their clients and themselves.
Buy now direct from Lenovo
- HD-687A-ZHFC Radeon HD 6870 Graphic Card - 900 MHz Core - 1 GB GDDR5 SDRAM - PCI Express 2.1 x16 See All Prices
- Radeon HD 7850 Graphic Card - 860 MHz Core - 2 GB GDDR5 SDRAM - PCI-Express 3.0 x16 See All Prices
- Radeon HD 7850 Graphic Card - 860 MHz Core - 2 GB GDDR5 SDRAM - PCI-Express 3.0 x16 See All Prices
- Radeon HD 6670 GV-R667D3-1GI Video Card See All Prices
- 12 Criteria for Selecting the Best ERP System Replacement An ERP system is your information backbone and reaches into all areas of your business and value chain. Replacing it can open unlimited business opportunities. This white paper explains the 12 criteria that allow you to identify and select the solution that will meet these expectations.
- Leveraging Social Computing Technologies for ERP Applications This white paper details how Web 2.0 technologies support business strategies by improving efficiency, productivity, and collaboration.
























