📚 Computer System Functions and Structure | 计算机系统功能与结构
A computer system is an integrated combination of hardware, software, data, and users that work together to process information. Understanding how a computer system is structured and how its components function is fundamental to computer science, and it remains a core topic in A-Level examinations. This article provides a comprehensive review of the functions and internal organisation of computer systems, covering everything from the Von Neumann architecture to the factors that influence system performance.
计算机系统是由硬件、软件、数据与用户协同组成的集成整体,用于处理信息。理解计算机系统的结构以及各组件如何运作,是计算机科学的基础,也是 A-Level 考试的核心考点。本文将对计算机系统的功能与内部组织进行系统梳理,涵盖冯·诺依曼架构到影响系统性能的各种因素。
1. What is a Computer System? | 什么是计算机系统?
At the most fundamental level, a computer system consists of four essential elements: hardware (the physical components), software (the programs and instructions), data (the raw facts and figures manipulated by the system), and users (the people who operate and interact with the system). Each element is indispensable; removing any one of them means the system cannot function as a complete entity.
在最基本的层面上,计算机系统由四个关键要素构成:硬件(物理组件)、软件(程序与指令)、数据(系统所处理的原始事实与数字)以及用户(操作系统和与系统交互的人)。每个要素都不可或缺;缺少其中任何一个,系统都无法作为一个完整实体正常运行。
Computer systems perform four primary functions: input (accepting data), processing (manipulating data according to instructions), output (producing results), and storage (retaining data for future use). These four functions form the basis of nearly every computer operation, from a simple calculator calculation to complex artificial intelligence inference.
计算机系统执行四大主要功能:输入(接收数据)、处理(根据指令操作数据)、输出(生成结果)以及存储(保存数据以供日后使用)。这四大功能构成了几乎所有计算机操作的基础,从简单的计算器运算到复杂的人工智能推理均不例外。
2. The Von Neumann Architecture | 冯·诺依曼架构
The Von Neumann architecture, proposed by John von Neumann in 1945, is the foundational design model for most modern computers. Its key feature is the stored-program concept, in which both data and machine-code instructions are held in the same memory unit and can be treated as data during execution. This allows programs to be modified at runtime and enables flexibility in software design.
冯·诺依曼架构由约翰·冯·诺依曼于1945年提出,是多数现代计算机的基础设计模型。其核心特征是”存储程序”概念,即数据和机器码指令存放在同一存储器中,在执行过程中可将指令当作数据处理。这使得程序可以在运行时被修改,并实现了软件设计的灵活性。
The architecture comprises three principal units: the Central Processing Unit (CPU), the main memory, and input/output (I/O) devices. The CPU and memory communicate through a shared bus system, and instructions are executed sequentially, one after another. This sequential execution model is simple, but it creates the von Neumann bottleneck: the single bus between CPU and memory limits the rate of data transfer.
该架构包含三大主要单元:中央处理器(CPU)、主存储器和输入/输出(I/O)设备。CPU 与存储器通过共享的总线系统通信,指令按顺序逐条执行。这种顺序执行模型简单易懂,但也造成了冯·诺依曼瓶颈:CPU 与存储器之间的单一总线限制了数据传输速率。
CPU ↔ Memory ↔ I/O Devices (via System Bus)
CPU ↔ 存储器 ↔ 输入/输出设备(通过系统总线)
3. The CPU and Its Components | CPU 及其组成
The Central Processing Unit (CPU) is often described as the ‘brain’ of the computer. It consists of three main internal components: the Arithmetic and Logic Unit (ALU), the Control Unit (CU), and the register set. Every instruction executed by a computer passes through these components in a coordinated sequence.
中央处理器(CPU)常被称为计算机的”大脑”。它由三个主要内部组件构成:算术逻辑单元(ALU)、控制单元(CU)和寄存器组。计算机执行的每一条指令都以协调的顺序经过这些组件。
The ALU carries out all mathematical calculations (addition, subtraction, multiplication, division) and logical operations (AND, OR, NOT, comparison). The Control Unit coordinates the activities of all hardware components by generating control signals, and its internal clock synchronises the timing of data movement. Without the CU, the ALU would not know which operation to perform or when to perform it.
ALU 执行所有数学运算(加、减、乘、除)和逻辑操作(与、或、非、比较)。控制单元通过生成控制信号来协调所有硬件组件的活动,其内部时钟同步数据移动的时序。如果没有控制单元,ALU 将不知道要执行哪种操作,也不知道何时执行。
| Component / 组件 | Function / 功能 |
| ALU / 算术逻辑单元 | Performs arithmetic and logical operations / 执行算术与逻辑运算 |
| CU / 控制单元 | Decodes instructions and issues control signals / 译码指令并发出控制信号 |
| Registers / 寄存器 | Ultra-fast temporary storage inside the CPU / CPU 内部超高速临时存储 |
4. Registers and Their Roles | 寄存器及其作用
Registers are small, extremely fast storage locations built directly into the CPU. They hold data and instructions that are being immediately processed, and they are the fastest form of memory in a computer system. Key registers in the Von Neumann model include:
寄存器是直接内置于 CPU 中的小型高速存储位置,用于保存正在立即处理的数据和指令,是计算机系统中速度最快的存储形式。冯·诺依曼模型中关键寄存器包括:
-
Program Counter (PC): Holds the memory address of the next instruction to be fetched.
-
程序计数器(PC):保存下一条待取指令的存储器地址。
-
Memory Address Register (MAR): Stores the address of the memory location currently being read from or written to.
-
存储器地址寄存器(MAR):存储当前正在读取或写入的存储器位置地址。
-
Memory Data Register (MDR): Holds the actual data or instruction that has just been fetched from, or is about to be written to, memory.
-
存储器数据寄存器(MDR):保存刚从存储器取出或即将写入存储器的实际数据或指令。
-
Accumulator (ACC): Stores intermediate results of arithmetic and logic operations performed by the ALU.
-
累加器(ACC):存储 ALU 执行的算术和逻辑运算的中间结果。
-
Current Instruction Register (CIR): Holds the instruction that is currently being decoded and executed.
-
当前指令寄存器(CIR):保存当前正在译码和执行中的指令。
During the fetch-decode-execute cycle, the PC and MAR work together to locate instructions in memory, while the MDR and CIR ensure that the correct data and instructions reach the right components. The ACC provides a working area for calculations, so intermediate results do not need to be written back to main memory after every operation.
在取指-译码-执行周期中,PC 与 MAR 协同定位存储器中的指令,MDR 与 CIR 确保正确的数据和指令到达相应的组件。ACC 为计算提供了工作区域,使中间结果不必在每次操作后都写回主存储器。
5. Memory Hierarchy | 存储层次结构
Modern computer systems use a tiered memory hierarchy to balance speed, capacity, and cost. At the top of the hierarchy are the CPU registers (fastest), followed by cache memory, main memory (RAM), and finally secondary storage (slowest but largest and cheapest). The hierarchy exists because no single memory technology can simultaneously provide high speed, large capacity, and low cost.
现代计算机系统采用分层的存储层次结构,以平衡速度、容量和成本。存储层次顶端是 CPU 寄存器(速度最快),其后依次是高速缓存(Cache)、主存储器(RAM),最后是辅助存储器(速度最慢但容量最大且成本最低)。该层次结构存在的原因在于,没有任何一种存储技术能同时提供高速度、大容量和低成本。
Cache memory is a small, high-speed memory located close to the CPU, storing frequently accessed data and instructions to reduce the average time taken to access data from main memory. It operates on the principle of locality of reference, which means that recently used data is likely to be used again. Virtual memory, by contrast, uses a portion of the hard disk as an extension of RAM when physical memory is insufficient, allowing larger programs to run at
Published by TutorHao | Computer Science Revision Series | aleveler.com
更多咨询请联系16621398022(同微信)
屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导Cancel reply