← 返回资讯屏轩教育 · 行业资讯

Basic Principles of Computer Systems | 计算机系统基本原理

2026-08-31 01:45 · 本文部分内容由AI辅助创作

📚 Basic Principles of Computer Systems | 计算机系统基本原理

Computer systems are built upon a set of fundamental principles that determine how data is processed, stored, and communicated. Understanding these principles — from the central processing unit (CPU) to memory hierarchy and system buses — is essential for any computer science student preparing for board examinations. This guide covers the core concepts in a structured, exam-focused manner.

计算机系统建立在决定数据如何被处理、存储和通信的一系列基本原理之上。从中央处理器(CPU)到存储器层次结构和系统总线,理解这些原理对每一位备战考试的计算机科学学生来说都至关重要。本指南以结构化、紧扣考点的方式覆盖核心概念。


1. The Von Neumann Architecture | 冯·诺依曼体系结构

The Von Neumann architecture is the foundational model for most modern computers. It describes a system where the CPU, memory, and input/output devices are connected through a single shared bus system. Both instructions and data are stored in the same memory unit, and the CPU fetches them sequentially.

冯·诺依曼体系结构是现代大多数计算机的基础模型。它描述了一个由CPU、存储器和输入/输出设备通过单一共享总线系统连接的体系。指令和数据存储在同一个存储器单元中,CPU按顺序取用它们。

The alternative Harvard architecture uses separate memory spaces for instructions and data, allowing simultaneous access. It is commonly found in embedded systems and DSP (digital signal processing) chips where speed is critical.

另一种哈佛体系结构为指令和数据使用独立的存储空间,允许同时访问。它常见于对速度要求苛刻的嵌入式系统和DSP(数字信号处理)芯片中。


2. The Central Processing Unit (CPU) | 中央处理器(CPU)

The CPU is often called the "brain" of the computer. Its primary role is to execute instructions by performing arithmetic, logic, control, and input/output operations.

CPU常被称为计算机的“大脑”,其主要角色是通过执行运算、逻辑、控制和输入/输出操作来处理指令。

ComponentFunction
Arithmetic Logic Unit (ALU)Performs arithmetic operations (+, −, ×, ÷) and logical operations (AND, OR, NOT, XOR).
Control Unit (CU)Decodes instructions and generates control signals to coordinate all components.
RegistersHigh-speed, temporary storage locations within the CPU used during processing.
CacheSmall, very fast memory used to store frequently accessed data and instructions.

组件名称与功能:ALU执行算术运算(+、−、×、÷)和逻辑运算(AND、OR、NOT、XOR);控制单元(CU)对指令进行译码并产生控制信号协调各组件;寄存器是CPU内部用于处理过程中的高速临时存储单元;Cache是容量小但速度极快的存储器,用于存储频繁访问的数据和指令。


3. Key Registers in the CPU | CPU中的关键寄存器

Registers are the fastest memory in the computer. Each register has a specific role in the fetch-decode-execute cycle.

寄存器是计算机中最快的存储器。每个寄存器在取指-译码-执行周期中扮演特定角色。


4. The Fetch-Decode-Execute Cycle | 取指-译码-执行周期

The fetch-decode-execute cycle is the fundamental process by which the CPU executes a single instruction. The cycle repeats continuously while the computer is running.

取指-译码-执行周期是CPU执行一条指令的基本过程。当计算机运行时,该周期不断重复。

Fetch → Decode → Execute → (repeat)

Fetch (取指):

1. The address stored in the PC is copied to the MAR. 2. The MAR places the address on the address bus. 3. A read control signal is sent on the control bus. 4. The memory location is read, and data is placed on the data bus. 5. The data is loaded into the MDR. 6. The MDR holds the data until it is transferred to the CIR. 7. The PC is incremented to point to the next instruction.

取指阶段:1. PC中保存的地址被复制到MAR。2. MAR将地址放到地址总线上。3. 控制总线上发出读控制信号。4. 读取存储单元,数据被放到数据总线上。5. 数据被加载到MDR中。6. MDR保存数据直至其被传送到CIR。7. PC递增以指向下一条指令。

Decode (译码): The instruction in the CIR is decoded by the Control Unit, which interprets the opcode and determines which operands are needed.

译码阶段:CIR中的指令由控制单元译码,控制单元解释操作码并确定需要哪些操作数。

Execute (执行): The decoded operation is carried out. This may involve the ALU performing calculations, reading/writing memory, or communicating with an I/O device.

执行阶段:被译码的操作被执行。这可能涉及ALU进行计算、读写存储器或与I/O设备通信。


5. Main Memory: RAM and ROM | 主存储器:RAM与ROM

Main memory is directly accessible by the CPU. It consists primarily of RAM and ROM, which serve different purposes.

主存储器是CPU可以直接访问的存储器,主要由RAM和ROM构成,二者用途不同。

FeatureRAMROM
VolatilityVolatile — content lost when power is offNon-volatile — content is retained
WritableYes, read/writeRead-only in normal operation
PurposeStores running programs and dataStores boot-up instructions (BIOS/firmware)

RAM的特点是易失性(断电后内容丢失)、可读写,用于存储正在运行的程序和数据;ROM的特点是非易失性(断电后内容保留)、常规操作只读,用于存储启动指令(BIOS/固件)。

Note that modern systems also use flash memory (e.g., SSDs, USB drives), which is non-volatile and electrically erasable — a bridge between speed and permanence.

注意现代系统还使用闪存(如SSD、U盘),它非易失且可电擦除——介于速度与持久性之间。


6. Secondary Storage | 辅助存储器

Secondary storage provides large-capacity, non-volatile storage for data and programs that are not currently being used. It is slower than main memory but far cheaper per unit of storage.

辅助存储器为当前未使用的数据和程序提供大容量、非易失的存储。它比主存储器慢,但单位存储成本远低得多。

Exam tip: Be ready to compare storage types in terms of capacity, speed, portability, durability, and cost.

考试提示:要准备从容量、速度、便携性、耐用性和成本等方面比较存储类型。


广告 / Sponsored

7. System Buses | 系统总线

A bus is a set of parallel wires that transfers data between components. The CPU communicates with memory and I/O devices via three buses.

总线是一组在组件之间传输数据的并行导线。CPU通过三条总线与存储器和I/O设备通信。

Maximum addressable memory = 2ⁿ bytes (n = address bus width)

最大可寻址内存 = 2ⁿ 字节(n = 地址总线宽度)


8. Input and Output Systems | 输入与输出系统

Input devices convert external data into a form the computer can process; output devices convert processed data back into human-readable or usable forms.

输入设备将外部数据转换为计算机可处理的形式;输出设备将处理后的数据转换回人类可读或可用的形式。

I/O interaction is managed through methods such as polling, interrupt-driven I/O, and direct memory access (DMA). DMA allows hardware devices to transfer data directly to/from memory without involving the CPU, improving efficiency.

输入/输出交互通过轮询、中断驱动I/O和直接存储器访问(DMA)等方式管理。DMA允许硬件设备不经过CPU而直接与存储器传输数据,从而提高效率。


9. Factors Affecting CPU Performance | 影响CPU性能的因素

Several key factors influence how quickly a CPU can execute instructions. Understanding these helps explain real-world performance differences between processors.

几个关键因素影响CPU执行指令的速度。理解这些因素有助于解释真实世界中处理器之间的性能差异。


10. Embedded Systems | 嵌入式系统

An embedded system is a computer system designed for a specific, dedicated function within a larger device. Unlike general-purpose computers, embedded systems run a fixed set of tasks, usually with a real-time constraint.

嵌入式系统是为大型设备中的特定专用功能而设计的计算机系统。与通用计算机不同,嵌入式系统运行固定的任务集,通常带有实时约束。


11. Parallel Processing and Multi-Core Systems | 并行处理与多核系统

Parallel processing uses multiple processing units to execute independent instructions simultaneously, reducing total computation time. Board exams often test the distinction between parallel and concurrent execution.

并行处理利用多个处理单元同时执行相互独立的指令,从而减少总计算时间。考试经常考查并行与并发执行之间的区别。

Speedup limit → 1 / (1 − fₚ) where fₚ is the fraction of code that is parallelisable

加速上限 → 1 / (1 − fₚ),其中fₚ是可并行化代码的比例


12. Summary and Revision Checklist | 总结与复习清单

To succeed in the computer systems topic, ensure you can explain each concept from first principles and apply the knowledge to unfamiliar scenarios. Below is a concise checklist.

要在计算机系统主题上取得好成绩,请确保你能从基本原理出发解释每个概念,并将知识应用于陌生情境。以下是简明复习清单。

ConceptKey Point
Von Neumann architectureSingle memory for data + instructions, sequential execution
CPU registersPC, MAR, MDR, ACC, CIR — know each function
Fetch-Decode-ExecuteUnderstand each phase in the correct order
RAM vs ROMVolatile vs non-volatile, read/write vs read-only
BusesAddress (unidirectional), Data (bidirectional), Control (bidirectional)
Performance factorsClock speed, cache size, cores, word length
Embedded systemsDedicated function, limited resources, real-time constraints

Review past paper questions on diagram labelling, bus direction, binary arithmetic in the ALU, and comparison tables. Practice explaining each step of the fetch-decode-execute cycle without looking at your notes — this is the most commonly assessed skill.

复习往年试题中的图示标注、总线方向、ALU中的二进制运算和比较表。练习不看笔记解释取指-译码-执行周期的每一步——这是最常考查的技能。

Published by TutorHao | Computer Science Revision Series | aleveler.com

广告 / Sponsored
Linux高级程序设计(高等院校计算机技术十二五规划教材)/刘加海/季江民/浙江大学出版社
计算机 备考教辅 · 正版现货 · 与本文内容相关
查看详情 / View on Taobao参考价 ¥55.6

更多咨询请联系16621398022(同微信)

备考资讯每日更新,关注不错过
考纲变化 · 科目分析 · 学习方法
扫码关注公众号 tutorhao
在微信里长按二维码识别关注
或截图后用「扫一扫 → 相册」选择本图
公众号:tutorhao