The history and functions of the central processing unit

The processor takes this address number from the program counter, which is responsible for tracking which instructions the CPU should execute next.

Features of cpu

For example, in such processors a "compare" instruction evaluates two values and sets or clears bits in the flags register to indicate which one is greater or whether they are equal; one of these flags could then be used by a later jump instruction to determine program flow. CPU functions can be classified into two categories: Co — coordinating all computer operations and performing arithmetic and logical operations on data. Additionally, the ability to construct exceedingly small transistors on an IC has increased the complexity and number of transistors in a single CPU many fold. The keyboard controller turns all of that information into binary code. Source The number of operations a CPU can perform depends upon its speed, which is measured in Hertz. Hardwired into a CPU's circuitry is a set of basic operations it can perform, called an instruction set. Memory management unit MMU [ edit ]. Those address-generation calculations involve different integer arithmetic operations , such as addition, subtraction, modulo operations , or bit shifts. Content is for informational or entertainment purposes only and does not substitute for personal counsel or professional advice in business, financial, legal, or technical matters. Beside the instructions for integer mathematics and logic operations, various other machine instructions exist, such as those for loading data from memory and storing it back, branching operations, and mathematical operations on floating-point numbers performed by the CPU's floating-point unit FPU.

Registers are high-speed memories that store data for immediate processing. CPU performance can be tested with various benchmarks and tools. Those operands may be specified as a constant value called an immediate valueor as the location of a value that may be a processor register or a memory address, as determined by some addressing mode.

While performing various operations, CPUs need to calculate memory addresses required for fetching data from the memory; for example, in-memory positions of array elements must be calculated before the CPU can fetch the data from actual memory locations.

Operation[ edit ] The fundamental operation of most CPUs, regardless of the physical form they take, is to execute a sequence of stored instructions that is called a program. It tells the computer's memory, arithmetic and logic unit and input and output devices how to respond to the instructions that have been sent to the processor.

The first such improvement came with the advent of the transistor. In the decode step, performed by the circuitry known as the instruction decoder, the instruction is converted into signals that control other parts of the CPU.

Why it is so important to keep the CPU from overheating.

Cpu definition in english

The actual mathematical operation for each instruction is performed by a combinational logic circuit within the CPU's processor known as the arithmetic logic unit or ALU. It is controlled by several software instructions. For example, if an addition instruction is to be executed, the arithmetic logic unit ALU inputs are connected to a pair of operand sources numbers to be summed , the ALU is configured to perform an addition operation so that the sum of its operand inputs will appear at its output, and the ALU output is connected to storage e. When all input signals have settled and propagated through the ALU circuitry, the result of the performed operation appears at the ALU's outputs. It largely ignores the important role of CPU cache, and therefore the access stage of the pipeline. Some instructions manipulate the program counter rather than producing result data directly; such instructions are generally called "jumps" and facilitate program behavior like loops , conditional program execution through the use of a conditional jump , and existence of functions. Adding two numbers is a very simple example, but it illustrates the basic functions of the CPU. Furthermore, some CPU architectures include multiple AGUs so more than one address-calculation operation can be executed simultaneously, bringing further performance improvements by capitalizing on the superscalar nature of advanced CPU designs. Extreme miniaturization of electronic gates is causing the effects of phenomena like electromigration and subthreshold leakage to become much more significant.

This widely observed trend is described by Moore's lawwhich had proven to be a fairly accurate predictor of the growth of CPU and other IC complexity until Thus, some AGUs implement and expose more address-calculation operations, while some also include more advanced specialized instructions that can operate on multiple operands at a time.

It directs the flow of data between the CPU and the other devices.

cpu diagram
Rated 7/10 based on 46 review
Functions of a Central Processing Unit (CPU)