跳到主要内容

硬件

IGCSE 计算机科学知识点 3

本主题的视频课程 打开视频页面
11:47

中央处理器

你手机里的处理器正在做一件近乎愚蠢简单的事。取一条指令。弄懂它的含义。执行它。然后取下一条。这就是…

英文讲解 · 可切换中英文字幕

3.1

计算机体系结构

教学大纲
考生应能够: 注释与指导
1 (a) 理解中央处理器 (CPU) 在计算机中的作用 • CPU 处理输入到计算机中的指令和数据,以便输出结果
(b) 理解微处理器的含义 • 微处理器是一种单芯片上的集成电路类型
2 (a) 理解具有 冯·诺依曼架构 的计算机中 CPU 各组件的目的 • 包括:– 单元:算术逻辑单元 (ALU) 和控制器 (CU) – 寄存器:程序计数器 (PC)、内存地址寄存器 (MAR)、内存数据寄存器 (MDR)、当前指令寄存器 (CIR) 和累加器 (ACC) – 总线:地址总线、数据总线和控制总线
(b) 描述 取指-译码-执行 (FDE) 周期 的过程,包括该过程中每个组件的作用 • 指令和数据如何从随机存取存储器 (RAM) 获取到 CPU 中,如何使用各组件进行处理,以及随后如何执行 • 将数据和地址存储到特定寄存器中 • 使用总线传输数据、地址和信号 • 使用单元获取、译码和执行数据和指令
3 理解 CPU 中核心、缓存和时钟的含义,并解释它们如何影响 CPU 的性能 • 核心数量、缓存大小和时钟速度都可能影响 CPU 的性能
4 理解 CPU 指令集的目的和用途 • 指令集是 CPU 可以处理的所有命令列表,且这些命令均为机器码
5 描述嵌入式系统的目的和特征,并识别其常见使用的设备 • 嵌入式系统用于执行专用功能。例如,在家电、汽车、安全系统、照明系统或自动售货机中。这与用于执行多种不同功能的通用计算机不同。例如,个人电脑 (PC) 或笔记本电脑

来源:Cambridge International 教学大纲

English
The fetch-decode-execute cycle

The central processing unit 中央处理器 (CPU) is the part of the computer that processes data and carries out instructions 指令. It runs programs by repeating a cycle, billions of times each second. Its role is simple to state: the CPU processes the instructions and data that are input into the computer, so that the result can be output.

A microprocessor 微处理器 is a type of integrated circuit 集成电路 on a single chip. A CPU is usually built as a microprocessor; the small computers inside washing machines and cars are microprocessors too.

Most computers follow the Von Neumann architecture 冯·诺依曼体系结构: the program's instructions and its data are stored together in the same main memory (RAM), and the CPU fetches them one at a time, along the same buses, to process them.

A square computer chip with a shiny metal top and the model name printed on it
A central processing unit (CPU): the chip that processes data and runs the instructions

Parts of the CPU

Part What it does
arithmetic logic unit 算术逻辑单元 (ALU) does calculations (add, subtract) and logical operations (compare)
control unit 控制单元 (CU) sends control signals to manage all the parts and tell them what to do
registers 寄存器 very small, very fast stores that hold one piece of data at a time

The parts are joined by buses 总线 — sets of wires that carry information:

  • the address bus 地址总线 carries memory addresses (one direction);
  • the data bus 数据总线 carries data and instructions (both directions);
  • the control bus 控制总线 carries control signals.
Block diagram of a CPU containing the control unit, ALU and registers, joined to main memory by the address, data and control buses
The CPU holds the control unit, the ALU and the registers; three buses link it to main memory

Special registers

These registers are used during the fetch–execute cycle.

Register Purpose
program counter 程序计数器 (PC) holds the address of the next instruction
memory address register 内存地址寄存器 (MAR) holds the address to read from or write to
memory data register 内存数据寄存器 (MDR) holds the data or instruction just fetched
current instruction register 当前指令寄存器 (CIR) holds the instruction now being carried out
accumulator 累加器 (ACC) holds the result of the ALU's calculations

The fetch–execute cycle

The fetch–execute cycle 取指执行周期 has three stages, repeated again and again:

  1. Fetch — the instruction is copied from memory 内存 into the CPU (using the PC, MAR and MDR). The PC then increases by 1.
  2. Decode — the control unit works out what the instruction means.
  3. Execute — the instruction is carried out (the ALU may do a calculation, with the result going to the accumulator).

Exam questions often ask for the fetch stage register by register. Learn this order:

  1. The address in the PC is copied to the MAR.
  2. The address is sent along the address bus to RAM, and a read signal is sent along the control bus.
  3. The instruction at that address is sent along the data bus to the MDR.
  4. The instruction is copied from the MDR to the CIR.
  5. The PC is incremented (increased by 1), so it points to the next instruction.

Then the CU decodes the instruction in the CIR, and it is executed: the CU sends signals, and the ALU does any calculation or comparison, storing the result in the ACC.

Worked example (4 marks). Describe the role of the MAR and the MDR in the fetch stage. A full answer: "The MAR holds the address of the instruction to be fetched, copied from the PC (1). This address is sent along the address bus to RAM (1). The instruction stored at that address is sent along the data bus and stored in the MDR (1). The MDR then passes the instruction to the CIR (1)." Each mark is one register and what it holds or does.

The fetch-decode-execute cycle drawn as three boxes connected in a loop
The processor repeats three stages: fetch the instruction, decode it, then execute it

Cache memory

Cache 高速缓存 is a small amount of very fast memory inside or close to the CPU. It stores data and instructions that the CPU uses often. The CPU can read from cache much faster than from main memory, so the computer runs faster.

What affects CPU performance

Feature Effect
number of cores 核心 each core can run instructions on its own, so more cores can do more work at the same time
cache size a larger cache holds more data ready for the CPU, so it waits less
clock speed 时钟速度 the number of cycles per second; a higher clock speed runs more instructions per second

Worked example. Two computers are identical except that A has a 3.0 GHz single-core CPU with 2 MB of cache, and B has a 2.4 GHz quad-core CPU with 8 MB of cache. Which is better for video editing, and why? Video editing splits into many tasks that can run at the same time, so B's four cores can process several streams in parallel while A can only work on one at a time. B's larger cache also keeps more frequently used data close to the CPU, so it has to fetch from RAM less often. B is the better choice, even though A has the higher clock speed. Never answer on clock speed alone: weigh cores, cache and clock speed together, and tie each one to the job being done.

Instruction sets

An instruction set 指令集 is the list of all the commands a CPU can process. The commands are machine code 机器码 (binary). Each CPU family has its own instruction set, so a program in machine code for one type of CPU will not run on a different type.

Embedded systems

An embedded system 嵌入式系统 is a small computer built inside a larger device to do one fixed job. It is dedicated to that task and is usually small and low-cost. It may use an operating system suited to its purpose. Examples: a washing machine, a microwave, a set-top box, a car's engine management, a security system, a lighting system and a vending machine.

This is different from a general purpose computer 通用计算机, such as a PC or a laptop, which can run many different programs to do many different jobs. To decide whether a device is embedded, ask: does it do one dedicated function?

A green circuit board densely packed with chips, memory and connectors, taken from inside a satnav
The mainboard from inside a satnav: an embedded system is a small dedicated computer like this, built into a device to do one fixed job
探索

取指-执行周期

点一圈 CPU 每秒重复数十亿次的循环——取指令、解码它的意思、执行它,然后再做一遍。

词汇 训练
English 中文 拼音
central processing unit/ˈsentrəl ˈprəʊsesɪŋ ˈjuːnɪt/ 中央处理器 zhōng yāng chǔ lǐ qì
instructions/ɪnˈstrʌkʃnz/ 指令 zhǐ lìng
microprocessor/ˌmaɪkrəʊˈprəʊsesə/ 微处理器 wēi chǔ lǐ qì
integrated circuit/ˈɪntɪɡreɪtɪd ˈsɜːkɪt/ 集成电路 jí chéng diàn lù
Von Neumann architecture/vɒn ˈnɔɪmən ˈɑːkɪtektʃə/ 冯·诺依曼体系结构 féng · nuò yī màn tǐ xì jié gòu
arithmetic logic unit/əˈrɪθmətɪk ˈlɒdʒɪk ˈjuːnɪt/ 算术逻辑单元 suàn shù luó jí dān yuán
control unit/kənˈtrəʊl ˈjuːnɪt/ 控制单元 kòng zhì dān yuán
registers/ˈredʒɪstəz/ 寄存器 jì cún qì
buses/ˈbʌsɪz/ 总线 zǒng xiàn
address bus/əˈdres bʌs/ 地址总线 dì zhǐ zǒng xiàn
data bus/ˈdeɪtə bʌs/ 数据总线 shù jù zǒng xiàn
control bus/kənˈtrəʊl bʌs/ 控制总线 kòng zhì zǒng xiàn
program counter/ˈprəʊɡræm ˈkaʊntə/ 程序计数器 chéng xù jì shù qì
memory address register/ˈmeməri əˈdres ˈredʒɪstə/ 内存地址寄存器 nèi cún dì zhǐ jì cún qì
memory/ˈmeməri/ 内存 nèi cún
memory data register/ˈmeməri ˈdeɪtə ˈredʒɪstə/ 内存数据寄存器 nèi cún shù jù jì cún qì
current instruction register/ˈkʌrənt ɪnˈstrʌkʃn ˈredʒɪstə/ 当前指令寄存器 dāng qián zhǐ lìng jì cún qì
accumulator/əˈkjuːmjʊleɪtə/ 累加器 lěi jiā qì
fetch–execute cycle/fetʃ ˈeksɪkjuːt ˈsaɪkl/ 取指执行周期 qǔ zhǐ zhí xíng zhōu qī
fetch-execute cycle/fetʃ ˈeksɪkjuːt ˈsaɪkl/ 取指执行周期 qǔ zhǐ zhí xíng zhōu qī
Cache/kæʃ/ 高速缓存 gāo sù huǎn cún
cores/kɔːz/ 核心 hé xīn
clock speed/klɒk spiːd/ 时钟速度 shí zhōng sù dù
instruction set/ɪnˈstrʌkʃn set/ 指令集 zhǐ lìng jí
machine code/məˈʃiːn kəʊd/ 机器码 jī qì mǎ
embedded system/emˈbedɪd ˈsɪstəm/ 嵌入式系统 qiàn rù shì xì tǒng
general purpose computer/ˈdʒenərəl ˈpɜːpəs kəmˈpjuːtə/ 通用计算机 tōng yòng jì suàn jī
3.2

输入与输出设备

教学大纲
考生应能: 注释与指导
1 理解输入设备的含义及其用途 • 包括:– 条形码扫描器 – 数码相机 – 键盘 – 麦克风 – 光学鼠标 – 二维码(QR code)扫描器 – 触摸屏(电阻式、电容式和红外式) – 二维(2D)和三维(3D)扫描仪
2 理解输出设备的含义及其用途 • 包括:– 致动器 – 数字光处理(DLP)投影仪 – 喷墨打印机 – 激光打印机 – 发光二极管(LED)屏幕 – 液晶显示(LCD)投影仪 – 液晶显示(LCD)屏幕 – 扬声器 – 3D打印机
3 (a) 理解传感器的含义及传感器的用途 • 仅限于:– 声学 – 加速度计 – 流量 – 气体 – 湿度 – 红外 – 液位 – 光线 – 磁场 – 水分 – pH值 – 压力 – 接近 – 温度
(b) 识别每种传感器捕获的数据类型,并理解何时使用每种传感器,包括为特定场景选择最合适的传感器

来源:Cambridge International 教学大纲

English

An input device sends data into the computer.

Device How it works
barcode scanner 条形码扫描器 shines light at the bars and reads the pattern reflected back
QR code scanner 二维码扫描器 a camera reads a square pattern of black-and-white blocks
keyboard pressing a key sends a code for that character
optical mouse 光电鼠标 a light and a sensor track movement across a surface
microphone turns sound waves into an electrical signal
digital camera a lens focuses light onto a sensor that records pixels
sensors 传感器 measure a physical quantity (such as temperature or light) and send it as data
touch screen 触摸屏 detects where your finger touches the screen
2D scanner 二维扫描仪 shines light across a flat document and records the reflected light as an image
3D scanner 三维扫描仪 uses lasers or light to measure the shape of a solid object from many angles, building a 3D model
A close-up of a black computer keyboard with the QWERTY letter keys
A keyboard: each key press sends a code for that character
A white optical mouse on a desk, with the optical light glowing underneath
An optical mouse: a light and a sensor track its movement on the desk
A flat white box-shaped scanner with a closed lid that lifts up to scan a page
A flatbed scanner: it shines light across a page to copy it into the computer
A handheld scanner in a stand, joined to a computer by a USB cable
A barcode scanner reads the pattern of bars and sends it to the computer
The front of a small red digital camera, showing its lens and flash
A digital camera: a lens focuses light onto a sensor that records the pixels
A handheld microphone with a rounded metal mesh head
A microphone turns sound waves into an electrical signal
A small blue-and-black temperature sensor on a tiny circuit board with three pins
A sensor measures a physical quantity (here, temperature) and sends it as data

A touch screen can work in three ways:

  • resistive 电阻式 — two layers are pressed together where you touch;
  • capacitive 电容式 — it senses the tiny electric charge of your finger;
  • infrared 红外线 — your finger breaks a grid of light beams.
A finger touching the screen of a smartphone to scroll a page
A touch screen senses where your finger touches it

Sensors

A sensor is an input device that captures data from its surroundings. It measures one physical quantity and sends it to the computer, so that a system can monitor or control something without a person taking readings. Learn the data each one captures:

Sensor Data it captures When it is used
acoustic 声学 sound level a noise alarm; a sound-activated light
accelerometer 加速度计 acceleration, movement and tilt turning a phone screen; an airbag; a fitness tracker
flow 流量 how fast a liquid or gas moves through a pipe water pipes; fuel pumps; a factory line
gas 气体 the amount of a gas (such as carbon monoxide or smoke) a gas or smoke alarm; car exhaust tests
humidity 湿度 the amount of water vapour in the air a greenhouse; a museum; a weather station
infra-red infra-red radiation (body heat, or a broken beam) an intruder alarm; a TV remote; an automatic tap
level 液位 how high a liquid is in a container a water tank; a fuel tank; a drinking bowl
light 光 brightness street lights that switch on at dusk; a screen's auto-brightness
magnetic field 磁场 the strength of a magnetic field a door or window alarm; a phone's compass
moisture 水分 the amount of water in a solid, such as soil watering plants in a field or greenhouse
pH how acidic or alkaline a liquid is a fish tank; a swimming pool; soil testing
pressure 压力 force pressing on it a weighing scale; a floor mat by a door; tyre pressure
proximity 接近 how close an object is car parking sensors; a robot vacuum; a drone avoiding a tree
temperature 温度 how hot or cold something is air conditioning; an oven; a greenhouse

Two pairs are easy to mix up: humidity is water in the air, moisture is water in a solid such as soil; level measures how high a liquid is, flow measures how fast it moves.

Worked example (choosing a sensor). A farm's water bowl must refill when it is empty. Identify the most suitable sensor. The system needs to know how high the water is, so the answer is a level sensor. A pressure sensor under the bowl could also work, but "level" fits the job best. Always match the sensor to the quantity the system needs to know.

A sensor on its own only measures. In a control system, a microprocessor makes the decision and an actuator (an output device) acts. The loop repeats all the time. (Handout 6 covers automated systems in full.)

Worked example (6 marks). A train door must only close when no passenger is in the doorway. Explain how a sensor and a microprocessor are used. A strong answer, one mark per point:

  1. A proximity (or infra-red) sensor is placed by the door.
  2. The sensor continually sends readings to the microprocessor; an analogue reading is converted to digital first.
  3. The microprocessor compares the reading with a stored value (for example, an object within 20 cm).
  4. If the reading shows a person in the doorway, the door stays open (a warning may sound).
  5. If the reading shows the doorway is clear, the microprocessor sends a signal to the actuator to close the door.
  6. The process repeats continuously until the door has closed.
A loop: a temperature sensor feeds the microprocessor, which signals an actuator to open a window, cooling the greenhouse, which the sensor then measures again
The same loop drives every control question: sensor reading, compare with a stored value, signal the actuator, repeat
探索

设备和存储实验室

根据计算示例在系统中的功能进行分类。

词汇 训练
English 中文 拼音
barcode scanner/ˈbɑːkəʊd ˈskænə/ 条形码扫描器 tiáo xíng mǎ sǎo miáo qì
QR code scanner/ˌkjuː ˈɑː kəʊd ˈskænə/ 二维码扫描器 èr wéi mǎ sǎo miáo qì
optical mouse/ˈɒptɪkl maʊs/ 光电鼠标 guāng diàn shǔ biāo
light/laɪt/ 光 guāng
sensors/ˈsensəz/ 传感器 chuán gǎn qì
touch screen/tʌtʃ skriːn/ 触摸屏 chù mō píng
2D scanner 二维扫描仪 èr wéi sǎo miáo yí
3D scanner 三维扫描仪 sān wéi sǎo miáo yí
resistive/rɪˈzɪstɪv/ 电阻式 diàn zǔ shì
capacitive/kəˈpæsɪtɪv/ 电容式 diàn róng shì
infrared/ˌɪnfrəˈred/ 红外线 hóng wài xiàn
acoustic/əˈkuːstɪk/ 声学 shēng xué
accelerometer/əkˌseləˈrɒmɪtə/ 加速度计 jiā sù dù jì
flow/fləʊ/ 流量 liú liàng
gas/ɡæs/ 气体 qì tǐ
humidity/hjuːˈmɪdɪti/ 湿度 shī dù
level/ˈlevl/ 液位 yè wèi
magnetic field/mæɡˈnetɪk fiːld/ 磁场 cí chǎng
moisture/ˈmɔɪstʃə/ 水分 shuǐ fèn
pressure/ˈpreʃə/ 压力 yā lì
proximity/prɒkˈsɪmɪti/ 接近 jiē jìn
temperature/ˈtemprɪtʃə/ 温度 wēn dù
3.2

输出设备

English

An output device sends data out of the computer to the user.

Device How it works
actuator 执行器 turns an electrical signal into movement (e.g. a motor or valve)
LCD screen 液晶显示屏 liquid crystals in each pixel twist to let light through or block it; a backlight (usually LEDs) shines through them
LED screen each pixel is made of tiny light-emitting diodes that give out their own light
DLP projector 数字光处理投影仪 a projector 投影仪 shines an enlarged image onto a screen; in a DLP one, millions of tiny mirrors on a chip tilt towards or away from the light to make each pixel bright or dark
LCD projector 液晶投影仪 a bright light shines through a liquid crystal panel, and a lens enlarges the image onto a screen
inkjet printer 喷墨打印机 sprays tiny drops of ink onto paper
laser printer 激光打印机 uses a laser and powder (toner) fixed onto paper by heat
3D printer builds a solid object layer by layer
speaker 扬声器 turns an electrical signal into sound
A desktop inkjet printer with the paper tray open at the top
An inkjet printer sprays tiny drops of ink onto the paper
A white-and-grey desktop laser printer with its paper trays folded out
A laser printer uses a laser and powder (toner) fixed onto paper by heat
A 3D printer: a black metal frame holding a flat print bed and a moving print head
A 3D printer builds a solid object layer by layer
A wide flat-screen computer monitor on a round stand
An LCD/LED monitor shows images using a grid of tiny coloured dots
A pair of small black computer speakers on a desk
A speaker turns an electrical signal into sound
A pair of blue over-ear headphones
Headphones turn an electrical signal into sound for one listener
Several electric motors of different sizes next to a 9-volt battery for scale
An actuator such as a motor turns an electrical signal into movement

Describing how an output device works

A question such as “Describe how a laser printer works” is marked one point per correct step, in order, so learn each device as a short sequence.

Inkjet printer.

  1. The printer driver turns the document into data the printer can use. The data is stored in the printer's buffer 缓冲区 (a small memory), so the computer can carry on with other work.
  2. The print head moves across the paper. Its tiny nozzles 喷嘴 spray drops of ink where the image needs them. A drop is pushed out either by heating the ink, which makes a bubble (thermal bubble), or by a crystal that changes shape when a current flows (piezoelectric).
  3. A motor moves the paper up a little, and the head prints the next line, until the page is finished.

Laser printer.

  1. The data is sent through the driver and stored in the printer's buffer.
  2. A rotating drum 硒鼓 is given an electric charge. A laser beam scans across the drum and changes the charge wherever the page should be printed, leaving a pattern of the page on the drum.
  3. The drum is coated with toner 墨粉 (a fine powder), which sticks only to the charged pattern.
  4. Charged paper rolls past the drum, and the toner moves onto the paper.
  5. The paper passes through a fuser 定影器 (hot rollers), which melts the toner so it is fixed to the paper.
  6. A lamp removes the charge from the drum, ready for the next page.

3D printer. The object is designed with computer-aided design software, and the software splits it into thin horizontal layers 层. The printer then builds the object one layer at a time, for example by squeezing out melted plastic through a heated nozzle, and each layer hardens onto the one below.

Speaker. The digital sound data is changed to an analogue signal by a digital-to-analogue converter 数模转换器 (DAC) and amplified. The changing current flows through a coil next to a magnet, so the coil and the cone fixed to it move in and out, and the vibrating cone makes the sound waves.

Common mistake. Describing a laser printer as “a laser burns the image onto the paper”. The laser never touches the paper: it only changes the charge on the drum, and the image is made of toner melted on by the fuser.

词汇 训练
English 中文 拼音
actuator/ˈæktʃuːeɪtə/ 执行器 zhí xíng qì
LCD screen/ˌel siː ˈdiː skriːn/ 液晶显示屏 yè jīng xiǎn shì píng
DLP projector/ˌdiː el ˈpiː prəˈdʒektə/ 数字光处理投影仪 shù zì guāng chǔ lǐ tóu yǐng yí
projector/prəˈdʒektə/ 投影仪 tóu yǐng yí
LCD projector/ˌel siː ˈdiː prəˈdʒektə/ 液晶投影仪 yè jīng tóu yǐng yí
inkjet printer/ɪŋkˈdʒet ˈprɪntə/ 喷墨打印机 pēn mò dǎ yìn jī
laser printer/ˈleɪzə ˈprɪntə/ 激光打印机 jī guāng dǎ yìn jī
speaker/ˈspiːkə/ 扬声器 yáng shēng qì
buffer/ˈbʌfə/ 缓冲区 huǎn chōng qū
nozzle/ˈnɒzl/ 喷嘴 pēn zuǐ
drum/drʌm/ 硒鼓 xī gǔ
toner/ˈtəʊnə/ 墨粉 mò fěn
fuser/ˈfjuːsə/ 定影器 dìng yǐng qì
layer/ˈleɪə/ 层 céng
digital-to-analogue converter/ˈdɪdʒɪtl tʊ ˈænəlɒɡ kənˈvɜːtə/ 数模转换器 shù mó zhuǎn huàn qì
3.3

数据存储

教学大纲
考生应能: 注释与指导
1 理解 主存储器(primary storage) 的含义 • 主存储器可直接被 CPU 访问
• 包括以下组件的作用:
– 随机存取存储器(RAM)
– 只读存储器(ROM)
• 包括计算机为何需要 RAM 和 ROM,以及它们之间的区别
2 理解 辅助存储器(secondary storage) 的含义 • 辅助存储器不能直接被 CPU 访问,主要用于数据的更持久存储
3 描述 磁性、光学 和 固态(闪存) 存储的工作原理,并各举一例 • 磁性存储使用磁盘盘片,盘片被划分为磁道和扇区。数据通过电磁铁进行读写。包括:硬盘驱动器(HDD)
• 光学存储使用激光来创建和读取凹坑(pits)与平面(lands)。包括:CD、DVD 和 Blu-ray
• 固态(闪存)存储使用 NAND 或 NOR 技术。晶体管用作控制栅极和浮动栅极。包括:固态硬盘(SSD)、SD 卡和 USB 驱动器
4 描述 虚拟内存(virtual memory) 的含义、它是如何创建和使用的,以及为何是必要的 • 当需要时,数据页会在 RAM 和虚拟内存之间传输
5 理解 云存储(cloud storage) 的含义 • 与本地存储数据相比,云存储可以远程访问
6 解释将数据存储于云端与本地存储相比的优缺点 • 云存储需要物理服务器和存储空间来存放数据

来源:Cambridge International 教学大纲

English

Primary storage 主存储器 is memory the CPU can use directly. There are two kinds.

RAM: volatile, can change, holds running programs. ROM: non-volatile, cannot change, holds the startup instructions
RAM is volatile and holds running programs; ROM is non-volatile and read-only
RAM ROM
Full name random access memory 随机存取存储器 read only memory 只读存储器
Read/write read and write read only
Keeps data without power? no — it is volatile 易失性 yes — it is non-volatile 非易失性
Holds programs and data in use now start-up instructions (how to boot the computer)

Both are needed: ROM tells the computer how to start, then RAM holds the programs you run.

A long thin green circuit board carrying rows of small black memory chips and a gold edge connector
A stick of RAM (random access memory): it holds the programs and data in use now
词汇 训练
English 中文 拼音
Primary storage/ˈpraɪməri ˈstɔːrɪdʒ/ 主存储器 zhǔ cún chǔ qì
random access memory/ˈrændəm ˈækses ˈmeməri/ 随机存取存储器 suí jī cún qǔ cún chǔ qì
read only memory/riːd ˈəʊnli ˈmeməri/ 只读存储器 zhī dú cún chǔ qì
volatile/ˈvɒlətaɪl/ 易失性 yì shī xìng
non-volatile/nɒn ˈvɒlətaɪl/ 非易失性 fēi yì shī xìng
3.3

辅助存储

English

Secondary storage 辅助存储器 keeps data permanently, even when the power is off. It is non-volatile and is used for long-term storage. There are three types.

Type How it stores data Examples
magnetic storage 磁存储 data is stored as magnetised areas on a disk or tape hard disk drive (HDD), magnetic tape
optical storage 光存储 data is stored as marks read by a laser CD, DVD, Blu-ray
solid state storage 固态存储 data is stored in flash memory 闪存, with no moving parts SSD, USB flash drive, SD card

How each one works. Questions ask you to describe the operation of each type:

  • Magnetic — a hard disk has one or more platters 盘片 that spin. Each platter is divided into tracks 磁道 (rings) and sectors 扇区 (parts of a track). A read/write head, an electromagnet 电磁铁, moves across the platter: it magnetises tiny areas to write data and detects them to read it. Because it has moving parts, it is slower to access than solid state and can break if dropped.
  • Optical — a laser burns pits 凹坑 into the disc surface; the flat areas between them are lands 平面. To read, a laser shines on the spinning disc: lands reflect light back, pits scatter it, and the changes are read as binary. CD, DVD and Blu-ray work like this; Blu-ray uses a blue laser with a shorter wavelength, so its pits are smaller and it holds more data.
  • Solid state (flash memory) — data is stored in a grid of transistors 晶体管, using NAND or NOR technology. Each transistor has a control gate 控制栅 and a floating gate 浮栅. Electrons trapped on the floating gate store a 0 or a 1, and they stay there with the power off. There are no moving parts, so it is fast, quiet and robust.
Three panels: a hard-disk platter divided into tracks and sectors with an electromagnet head, an optical disc surface of pits and lands with a laser reflecting off a land, and a flash cell with a control gate above a floating gate holding trapped electrons
Magnetic disks store data in sectors on tracks, optical discs as pits and lands, flash memory as electrons trapped on a floating gate
Inside an opened hard disk drive, showing the round silver disk (platter) and the read/write arm resting on it
Inside a hard disk drive (HDD): the shiny disk spins and the arm reads the magnetised data
Four square magnetic-tape cartridges, each holding a reel of thin magnetic tape
Magnetic tape stores data on a long magnetic strip; it is cheap for large backups
A shiny round disc reflecting rainbow colours from its data surface
An optical disc such as a CD or DVD: a laser reads the marks on its shiny surface
A 2.5 inch Samsung solid state drive, a flat grey metal box with no visible moving parts
A solid state drive (SSD) stores data in flash memory chips and has no moving parts
A small white USB stick with a red cap loop, labelled 32 GB
A USB flash drive stores data in flash memory and has no moving parts
A pyramid with registers at the top, then cache, then RAM, then secondary storage at the base, with a faster-smaller to slower-larger arrow
Storage forms a hierarchy: registers and cache are fastest but smallest; secondary storage is slowest but largest
探索

设备和存储实验室

根据计算示例在系统中的功能进行分类。

词汇 训练
English 中文 拼音
Secondary storage/ˈsekəndəri ˈstɔːrɪdʒ/ 辅助存储器 fǔ zhù cún chǔ qì
magnetic storage/mæɡˈnetɪk ˈstɔːrɪdʒ/ 磁存储 cí cún chǔ
optical storage/ˈɒptɪkl ˈstɔːrɪdʒ/ 光存储 guāng cún chǔ
solid state storage/ˈsɒlɪd steɪt ˈstɔːrɪdʒ/ 固态存储 gù tài cún chǔ
flash memory/flæʃ ˈmeməri/ 闪存 shǎn cún
platter/ˈplætə/ 盘片 pán piàn
track/træk/ 磁道 cí dào
sector/ˈsektə/ 扇区 shàn qū
electromagnet/ɪˌlektrəʊˈmæɡnɪt/ 电磁铁 diàn cí tiě
pit/pɪt/ 凹坑 āo kēng
land/lænd/ 平面 píng miàn
transistor/trænˈzɪstə/ 晶体管 jīng tǐ guǎn
control gate/kənˈtrəʊl ɡeɪt/ 控制栅 kòng zhì zhà
floating gate/ˈfləʊtɪŋ ɡeɪt/ 浮栅 fú zhà
3.3

虚拟内存

English

When the RAM becomes full, the computer can use part of the secondary storage as extra, pretend RAM. This is called virtual memory 虚拟内存.

Virtual memory is created as an area of the secondary storage. Data is moved in blocks called pages 页: a page that is not needed right now is moved out of RAM into virtual memory, which frees space in RAM for other programs. When that page is needed again, it is moved back into RAM. This lets you run more programs than the RAM alone could hold. It is slower, because secondary storage is much slower than RAM.

RAM holding two active programs and a freed slot, with an arrow moving an unused program out to the disk
When RAM is full, data not in use is moved to the disk to free RAM — slower, but it lets more programs run
词汇 训练
English 中文 拼音
virtual memory/ˈvɜːtʃuːəl ˈmeməri/ 虚拟内存 xū nǐ nèi cún
page/peɪdʒ/ 页 yè
3.3

数据存储

教学大纲
考生应能: 注释与指导
1 理解 主存储器(primary storage) 的含义 • 主存储器可直接被 CPU 访问
• 包括以下组件的作用:
– 随机存取存储器(RAM)
– 只读存储器(ROM)
• 包括计算机为何需要 RAM 和 ROM,以及它们之间的区别
2 理解 辅助存储器(secondary storage) 的含义 • 辅助存储器不能直接被 CPU 访问,主要用于数据的更持久存储
3 描述 磁性、光学 和 固态(闪存) 存储的工作原理,并各举一例 • 磁性存储使用磁盘盘片,盘片被划分为磁道和扇区。数据通过电磁铁进行读写。包括:硬盘驱动器(HDD)
• 光学存储使用激光来创建和读取凹坑(pits)与平面(lands)。包括:CD、DVD 和 Blu-ray
• 固态(闪存)存储使用 NAND 或 NOR 技术。晶体管用作控制栅极和浮动栅极。包括:固态硬盘(SSD)、SD 卡和 USB 驱动器
4 描述 虚拟内存(virtual memory) 的含义、它是如何创建和使用的,以及为何是必要的 • 当需要时,数据页会在 RAM 和虚拟内存之间传输
5 理解 云存储(cloud storage) 的含义 • 与本地存储数据相比,云存储可以远程访问
6 解释将数据存储于云端与本地存储相比的优缺点 • 云存储需要物理服务器和存储空间来存放数据

来源:Cambridge International 教学大纲

English

Cloud storage 云存储 keeps your data on remote physical servers, reached over the internet, instead of on your own device.

  • Advantages: reach it from anywhere on any device; no local storage hardware to buy or maintain; easy to share files and to back up automatically.
  • Disadvantages: needs a working internet connection; an ongoing subscription cost; security and privacy depend on the provider; you rely on that provider staying available and in business.
Data-centre server racks: cloud storage keeps your files on remote servers you reach over the network
Data-centre server racks: cloud storage keeps your files on remote servers you reach over the network
词汇 训练
English 中文 拼音
Cloud storage/klaʊd ˈstɔːrɪdʒ/ 云存储 yún cún chǔ
3.4

网络硬件

教学大纲
考生应能: 注释与指导
1 理解计算机需要**网络接口卡(NIC)**才能接入网络
2 理解媒体访问控制(MAC)地址的含义、作用及其结构 • 网络接口卡在制造时会被分配一个 MAC 地址
• MAC 地址通常以十六进制表示
• MAC 地址由制造商代码和序列号组合生成
3 (a) 理解互联网协议(IP)地址的含义及作用 (b) 了解 IP 地址的不同类型 • IP 地址由网络分配,可以是静态的或动态的
• 包括 IPv4 和 IPv6 的特征及区别
4 描述路由器在网络中的作用 • 路由器将数据发送到网络中的特定目标地址
• 路由器可以分配 IP 地址
• 路由器可以将局域网连接到互联网

来源:Cambridge International 教学大纲

English

Network interface card (NIC)

A network interface card 网络接口卡 (NIC) is the hardware that lets a device join a network and send and receive data. Each NIC has a built-in MAC address.

MAC address and IP address

  • A MAC address (media access control 介质访问控制 address) is a number that identifies one physical device. The maker sets it, and it does not normally change. It is written in hexadecimal.
  • An IP address (internet protocol 网际协议 address) is a number that identifies a device on a network. It is given by the network and can change.

So a MAC address stays with the device, while an IP address depends on the network the device is using.

There are two versions of IP address. IPv4 is 32-bit, written as four denary numbers 0–255 (for example 192.168.0.1); the newer IPv6 is 128-bit, written as eight groups of hexadecimal separated by colons, giving vastly more addresses. An address is also either static 静态 (fixed, set by hand and never changing) or dynamic 动态 (handed out by the router/network each time the device connects, so it can change).

Router

A router 路由器 connects different networks together — for example, your home network to the internet. It reads the IP address in each packet and forwards it towards the right network.

A Wi-Fi router: network hardware forwards packets between devices and the wider Internet
A Wi-Fi router: network hardware forwards packets between devices and the wider Internet
探索

网络路由实验

跟踪设备通过网络硬件和协议的数据传输路径。

词汇 训练
English 中文 拼音
network interface card/ˈnetwɜːk ˈɪntəfeɪs kɑːd/ 网络接口卡 wǎng luò jiē kǒu kǎ
media access control/ˈmiːdiːə ˈækses kənˈtrəʊl/ 介质访问控制 jiè zhì fǎng wèn kòng zhì
internet protocol/ˈɪntənet ˈprəʊtəkɒl/ 网际协议 wǎng jì xié yì
static/ˈstætɪk/ 静态 jìng tài
dynamic/daɪˈnæmɪk/ 动态 dòng tài
router/ˈruːtə/ 路由器 lù yóu qì
3.4

考试技巧

English
  • Learn the fetch–decode–execute cycle and the special registers: the program counter holds the address of the next instruction, the MAR/MDR carry the address/data, and the accumulator holds the ALU's result.
  • CPU performance improves with more cores, a larger cache, and a higher clock speed.
  • RAM is volatile (it loses its data with no power) and holds programs in use; ROM is non-volatile and read-only (the start-up instructions).
  • For a "describe how the sensor and the microprocessor are used" question, write the loop: sensor sends reading → microprocessor compares with a stored value → signal to the actuator → repeats. Name the sensor that measures the right quantity (level, not flow, for a tank that empties).
  • Say Von Neumann: instructions and data share the same memory. A microprocessor is an integrated circuit on a single chip.
  • Match the secondary-storage types: magnetic (HDD, tape), optical (CD/DVD, read by a laser), solid state (SSD, USB, flash — no moving parts).
  • A MAC address identifies the physical device and does not normally change; an IP address is given by the network and can change.

该知识点的互动课程

逐步完成,配合即时检查练习。

历年真题

更多 IGCSE 计算机科学 知识点

登录或创建账户

IGCSE, A-Level & AP