Central processing unit
A central processing unit (CPU) is the primary electronic circuitry within a computer that executes instructions of a program by performing basic arithmetic, logic, control, and input/output (I/O) operations specified by the instructions.
Overview
The CPU is often referred to as the "brain" of a computer. Its fundamental role is to fetch instructions from memory, decode them, and execute them in a sequential or pipelined manner. Modern CPUs are implemented as microprocessors, integrating the entire central processing unit onto a single integrated circuit (IC) chip. The performance of a CPU is influenced by its clock speed, architecture, number of cores, cache size, and instruction set.
History
The concept of a stored-program computer, where instructions and data are held in memory, was first articulated by John von Neumann in the 1940s. Early CPUs were built from discrete components such as vacuum tubes and relays, leading to large, power-hungry machines like the ENIAC. The invention of the transistor in 1947 enabled smaller, more reliable CPUs, and the development of integrated circuits in the 1960s allowed entire CPUs to be placed on a single chip. The Intel 4004, released in 1971, is widely recognized as the first commercial microprocessor. Subsequent decades witnessed exponential growth in transistor density (Moore's Law), clock speeds, and architectural innovations such as pipelining, superscalar execution, and out-of-order processing.
Architecture
Instruction Set Architecture (ISA)
The ISA defines the machine language that a CPU understands, including the set of instructions, data types, registers, memory addressing modes, and interrupt handling. Major ISAs include x86 (used in most personal computers), ARM (dominant in mobile and embedded devices), and RISC-V (an open-source alternative). ISAs can be classified as Complex Instruction Set Computing (CISC) or Reduced Instruction Set Computing (RISC), reflecting trade-offs between instruction complexity and execution efficiency.
Microarchitecture
Microarchitecture refers to the physical implementation of an ISA on a chip. It includes the organization of functional units such as the arithmetic logic unit (ALU), control unit, cache memory, and buses. Key microarchitectural techniques include pipelining (overlapping instruction execution stages), superscalar execution (issuing multiple instructions per cycle), speculative execution (executing instructions before their conditions are resolved), and out-of-order execution (reordering instructions to avoid stalls).
Components
A typical CPU consists of:
- Control Unit (CU): Decodes instructions and generates control signals to coordinate other components.
- Arithmetic Logic Unit (ALU): Performs arithmetic and logical operations.
- Registers: Small, fast storage locations within the CPU for temporary data.
- Cache Memory: High-speed memory (L1, L2, L3) that stores frequently accessed data to reduce latency.
- Buses: Data, address, and control buses facilitate communication between the CPU and other system components.
Operation Cycle
The CPU executes instructions through a repeated cycle known as the fetch-decode-execute cycle (or instruction cycle):
- Fetch: Retrieves the next instruction from memory (address stored in the program counter).
- Decode: Interprets the instruction by the control unit, determining which operation to perform and which operands to use.
- Execute: Performs the operation (e.g., arithmetic, memory load/store, branch) using the ALU or other functional units.
- Writeback: Writes the result back to a register or memory, if applicable.
Modern CPUs often employ pipelining to overlap these stages across multiple instructions, improving throughput.
Performance Factors
Clock Speed
Clock speed, measured in gigahertz (GHz), indicates how many cycles per second the CPU can execute. Higher clock speeds generally increase instruction throughput, but thermal and power constraints limit extreme scaling.
Number of Cores
A multicore CPU integrates multiple processing cores on a single chip, enabling parallel execution of multiple threads or processes. Dual-core, quad-core, and many-core designs are common, with software optimized for concurrent execution.
Cache Size and Hierarchy
Larger and more efficient caches reduce memory access latency. The typical hierarchy includes L1 (smallest, fastest, per-core), L2 (shared or per-core), and L3 (larger, shared across cores). Cache misses can significantly degrade performance.
Instruction-Level Parallelism
Architectural techniques such as superscalar execution, branch prediction, and SIMD (Single Instruction, Multiple Data) extensions (e.g., SSE, AVX) improve per-cycle instruction throughput.
Multicore and Multithreading
Multicore processors run multiple independent cores, while simultaneous multithreading (SMT, known as Hyper-Threading in Intel processors) allows a single core to execute multiple threads concurrently by sharing resources. Both approaches increase parallelism and improve resource utilization.
Modern Developments
Recent trends in CPU design include:
- Heterogeneous computing: Combining high-performance cores with energy-efficient cores (e.g., ARM big.LITTLE, Intel's hybrid architecture).
- On-chip graphics: Integrating a GPU (graphics processing unit) onto the same die as the CPU, known as an APU or integrated graphics.
- Security features: Hardware-level mitigations for vulnerabilities like Meltdown and Spectre.
- 3D stacking and advanced packaging: Improving performance and reducing power by stacking chips vertically.
- Custom and open-source ISAs: The rise of RISC-V, enabling tailored designs for specific workloads.
Conclusion
The central processing unit remains the core component of virtually all computing devices, from smartphones to supercomputers. Its evolution continues to be driven by advances in semiconductor fabrication, architecture, and the demands of emerging applications such as artificial intelligence, cloud computing, and the Internet of Things.
気になる百科
サッカー
サッカー(英語:soccer、正式名称:アソシエーション・フットボール、association football)は、11人ずつの2チームが対戦する団体球技であり、手および腕の使用を自陣ペナルティーエリア内のゴールキーパーに限定したうえで、...
ボーア
ボーア(Bohr)は、最も一般的にはデンマークの物理学者ニールス・ヘンリック・ダヴィッド・ボーア(Niels Henrik David Bohr、1885年10月7日 - 1962年11月18日)を指す。原子構造と量子理論の理解に基礎的な貢...
中国
中国(中華人民共和国)は東アジアに位置する共和制国家であり、古代文明の発祥地として知られるとともに、現代では世界第二位の経済大国として国際社会において重要な役割を果たしている。 背景と地理的概要 中国本土は東アジアの中央部に位置し、太平洋に...
OpenAI
OpenAI(オープンエーアイ)は、アメリカ合衆国カリフォルニア州サンフランシスコに本社を置く人工知能(AI)の研究・展開企業である。2015年、「汎用人工知能(AGI)」——人間の能力に匹敵あるいはそれを超える仮想上のAIシステム——を全...
コメント (0)
まだコメントはありません。最初のコメントを書きましょう!