Friday, October 21, 2011

Central Processing Unit (CPU) Tutorial

The Central Processing Unit (Normally called a processor or CPU) is the brain of the PC. It executes instructions, allowing a computer to perform all kinds of tasks. From burning CDs or DVDs to something as simple as a mouse click, the CPU is always at work. Processors consist of two parts: The Arithmetic Unit, which performs math and logical operations, & the Control Unit, which decodes instructions. Over the years, processors have become extremely fast. AMD and Intel are the two primary manufacturers.

CPU technology constantly changes, probably faster than any other type of hardware. On this page I highlight what I consider are the main specifications.

When looking at a CPU, you don't really see the processor itself. The little piece of silicon that contains the circuitry is very small. What you actually see is the package that it's in. Both AMD and Intel have had many types over the years. Packages are usually square with pins underneath that fit into holes on the CPU's slot. This arrangement is known as Pin Grid Array (PGA) and is now only used by AMD.

Pin Grid Array

Intel abandoned PGA years ago and now have the pins located on the slots themselves, called Land Grid Array (LGA).


Land Grid Array

Types
Processors are designed to fit into a certain type of socket on the motherboard. Every socket has a name, indicating whether it's for an AMD or Intel CPU. Keep in mind that AMD and Intel have different socket designs, so their processors are not interchangeable. But regardless of manufacturer, CPUs usually differ in the number of pins used and are often named accordingly.

Socket TypeManufacturer
LGA 771 (Socket J)Intel (Xeon Server)
LGA 775 (Socket T)Intel
LGA 1156 (Socket H)Intel
LGA 1166 (Socket B)Intel
AM2AMD
AM2+AMD
AM3AMD

AM2+ and AM3 mainly differ in terms of the memory each supports. AM2+ supports DDR2 while AM3 supports DDR2 and DDR3, making it backward-compatible with the AM2+ motherboard.

Rates & Data Transfer:
What characterizes a computer processor is its speed or rate - how fast it can execute instructions. As of now, speed is measured in gigahertz (GHz), or billions of cycles a second. Some CPU rates are 2.0 GHz, 2.40 GHz, and 3.20 GHz. These rates and others are obtained by using the motherboard's bus speed.

CPUs contain a multiplier that when multiplied by the bus speed, yields the appropriate CPU speed for a given motherboard. For example, if the speed of a motherboard is 800 MHz, and the CPU multiplier is 4, then the processor's speed is 800 x 4 = 3200 MHz or 3.2 GHz.

Because the CPU greatly determines the overall performance of a PC, the type of processor and its speed are two of the main factors to look for when deciding to buy a computer. But keep in mind there are other important things, such as the amount of memory.

CPUs are either 32-bit or 64-bit. This means how much data that can be processed in terms of bits. In computers data is composed of 1's and 0's (e.g. 01110010). Each individual 1 or 0 is called a bit. A 32-bit CPU can process a max of 2^32 (2 raised to 32nd power) or about 4.3 billion bits per cycle. A 64-bit processor 2^64 or about 18,400,000,000,000,000,000 of data per cycle. The more data a computer can handle means improved performance.

The amount of memory supported by a processor is also determined by the number of bits. Using the same math above, a 32-bit processor supports 2^32 or approximataely 4 GB of memory.

Cache:
In addition to CPU speed, another important processor feature that influences performance is the amount of cache (pronounced cash) it has. CPU cache is memory set aside for the most frequently used data. There's Level 1, Level 2, and Level 3 (commonly just called L1, L2, and L3). L1 uses extremely fast and expensive SRAM (Static RAM) and is the smallest in size. L2 is slightly larger in size. Both L1 and L2 are located on the processor. L3 is the largest and is usually located outside the CPU and shared by all the cores. When data is requested, the CPU first checks the L1 to see if it's there. If not it checks L2 and so on. Accessing data in the cache is far more faster and efficient than fetching it from RAM.

Dual Core & Multicore Processors:
Most computer processors today are dual core or multicore. Both terms are generic for any processor that literally contains two or more CPUs in one package. Both Intel and AMD produce versions of these processors. AMD's Athlon x2, Turion x2, and Intel's Core 2 Duo and Core 2 Extreme are examples of dual core CPUs. Multicore examples are the AMD Phenom x3 and x4 and Intel's Core 2 Quad and the Core i7. These powerful CPUs allow users to run several applications simultaneously as well as play the latest games.

HyperTransport:
AMD's HyperTransport Technology has been around since 2003. All of their processors based on AMD64 architecture use HypertTransport. It eliminated the front side bus (FSB) and took the memory controller, which was previously on the chipset, and placed it on the processor. The old front side bus used one data path from the CPU for memory and I/O (Input/Output). HTT implements two separate data paths for memory and I/O. Also, unlike the FSB, data flow between the CPU and the chipset can be sent and received at the same time.

In late 2008, Intel released the quad-core Core i7 CPU with its own version of HyperTransport called QuickPath Interconnect (QPI). It basically does the same thing as HTT but only uses DDR3 memory, and depending on which model some support three memory channels. They also had to develop a new chipset which includes PCI Express enhancements.

In addition supporting QPI, the Core i7 includes 64K L1 and 256K L2 cache for each core, 8MB L3 shared cache, turbo boost, and HD boost for improved high definition. It brings back the old hyper-threading. Before dual cores came on the scene, hype-rthreading was used to make the operating system think there were two processors. Since the i7 is quad-core hyper-threading makes it seem as if there are eight cores.

All these combined make for an extremely fast system for multitasking, gaming and multimedia needs.

The Core i7 computer processor comes in several variations, and it can get confusing. There is also the Core i5 and Core i3. Below are tables showing the Intel processors recently released in each class.

i7 Series Processor (All Quad Core & Use Hyperthreading)ReleasedSpeedTransfers/SecMaximum Amount of  Memory & Number of Channels SupportedIntegrated HD GraphicsCache Size
i7-930Q1 20102.8 GHZ; 3.46 GHz w/Turbo Boost4.8 GT/s24 GB, 3 ChannelsN8 MB
i7-960Q4 20093.2 GHz; 3.46 GHz w/Turbo Boost4.8 GT/s24 GB, 3 ChannelsN8 MB
i7-860Q3 20092.8 GHz; 3.46 GHz w/Turbo Boost2.5 GT/s16 GB, 2 ChannelsN8 MB
i7-870Q3 20092.93GHz; 3.6 GHz w/Turbo Boost2.5 GT/s16 GB, 2 ChannelsN8 MB
i7-950Q2 20093.06 GHz; 3.33 GHz w/ Turbo Boost4.8 GT/s24 GB, 3 ChannelsN8 MB
i7-920Q4 20082.66 GHz; 2.93 GHz w/Turbo Boost4.8 GT/s24 GB, 3 ChannelsN8 MB
i7-940Q4 20082.93 GHz; 3.2 GHz w/Turbo Boost4.8 GT/s24 GB, 3 ChannelsN8 MB

i7 Extreme EditionsReleasedSpeedTransfers/SecMaximum Amount of  Memory & Number of Channels SupportedIntegrated HD GraphicsCache Size
i7-980X ( 6 Cores)Q1 20103.33 GHz; 3.6 GHz w/Turbo Boost6.4 GT/s24 GB, 3 ChannelsN12 MB
i7-975 (4 Cores)Q2 20093.33 GHz; 3.6 GHz w/Turbo Boost6.4 GT/s24 GB, 3 channelsN8 MB
i7-965 (4 Cores)Q4 20083.2 GHz; 3.46 GHz w/ Turbo Boost6.4 GT/s24 GB, 3 channelsN8 MB

ProcessorReleasedSpeedTransfers/SecMaximum Amount of Memory & Number of Channels SupportedIntegrated HD GraphicsCache Size
i3-530(Dual Core)Q1 20102.93 GHz2.5 GT/s16 GB, 2 ChannelsY4 MB
i3-540(Dual Core)Q1 20103.06 GHz2.5 GT/s16 GB, 2 ChannelsY4 MB
i5-670(Dual Core)Q1 20103.46 GHz; 3.73 GHz w/Turbo Boost2.5 GT/s16 GB, 2 ChannelsY4 MB

Mobile ProcessorsReleasedSpeedTransfers/SecMaximum Amount of Memory & Number of Channels SupportedIntegrated HD GraphicsCache Size
i3-350M(Dual Core)Q1 20102.26 GHz (No Turbo Boost)2.5 GT/s8 GB, 2 ChannelsY3 MB
i5-540M(Dual Core)Q1 20102.53 GHZ; 3.066 GHz w/ Turbo Boost2.5 GT/s8 GB, 2 ChannelsY3 MB
i7-640UM(Dual Core)Q1 20101.2 GHz; 2.266GHz w/Turbo Boost2.5 GT/s8 GB, 2 ChannelsY4 MB
i7-920XM Extreme(Quad Core)Q3 20092 GHz; 3.2 GHz w/Turbo Boost2.5 GT/s8GB, 2 ChannelsN8 MB

Believe or not, this is not the full list. To see others you can go to Intel's CPU page. Below are tables showing AMD CPUs specs.

CPUSpeedTransfers/SecL1 CacheL2 CacheType of Memory Supported
Athlon II x3 (Three Core)3 GHz4.4GT/s128 KB512 KBDDR2 & DDR3
Athlon II x4 (Quad Core)2.9 GHz4.4 GT/s128 KB512 KBDDR2 & DDR3
Phenom II x2 (Dual Core)3.2 Ghz4.0 GT/s128 KB512 KBDDR 2 & DDR3
Phenom II x3 (Three Core)2.8 GHz4.0 GT/s128 KB512 KBDDR2 & DDR3
Phenom II x4 (Quad Core)3.4 GHz4.0 GT/s128 KB512 KBDDR2 or DDR3 (Depends on the type of socket)

Mobile CPUsSpeedL1 CacheL2 CacheType of Memory Supported
Turion x2 UltraMax 2.4 GHz
2 MBDDR2
Turion Neo x21.6 GHz128 KB1 MBDDR 2

This is also not a complete list! For a full list check out AMD's desktop processors and laptop processors.


HOW TO INSTALL CPU

To install a CPU, first raise the lever on the socket. Simply pull the lever out a little bit, then lift up. You should see the socket move up.

CPU installation

Now you're ready to put in the processor. The CPU pins have to be aligned with the socket holes. Look very carefully at the pin holes on the socket to see the arrangement. Turn the processor over and orient the pins to match the socket.

*NOTE: Keep in mind CPUs and sockets vary. Modern Intel processors don't have pins. I'm using an AMD CPU.


CPU installation

Next, turn the processor back over and place it in the socket. It should basically fall in by itself. To secure it, pull the lever down until it locks in place.


CPU installation

Installing the CPU Fan and Heatsink:
Processors get hot and require a fan or some other kind of cooling. They come in a variety of types and install by different means. Some are easy. Others may take a little work. Always check the documentation. The one in this tutorial is your basic fan.

If the fan and heatsink are not attached together, go ahead and attach them now.


CPU installation

Apply a small amount of thermal grease on the processor or underneath the heat sink.


CPU installation

Place the fan/heatsink on top of the CPU. Make sure the fan's connector is next to the motherboard fan connector.


CPU installation

On one side of the heatsink, maneuver the heat sink arm until the notches on the socket lock through the holes. If done correctly, they'll click into place. This may take a little tinkering.

Next, on the other side, take a pencil or other object and push down on the heatsink arm until the notches lock through the holes. Again, you should hear it click into place.


CPU installation

Now that it is secured, connect the fan to the motherboard.


CPU installation




No comments:

Post a Comment