The CPU and the fetch-execute cycle
Introduit
11:47
Le CPU
Le processeur dans votre téléphone fait quelque chose d'almost stupidement simple. Récupère une instruction. Comprends ce qu'elle signifie. Exécute-la. Puis récupère la suivante. C'est…
Narration en anglais · sous-titres en anglais et en 中文 au choix
Dans cette leçon
| English | Sens |
|---|---|
| CPU/ˌsiː piː ˈjuː/ | |
| data/ˈdeɪtə/ | Recorded facts, observations or values used for analysis or processing. |
| instructions/ɪnˈstrʌkʃnz/ | |
| ALU/ˌeɪ el ˈjuː/ | |
| control unit/kənˈtrəʊl ˈjuːnɪt/ | unité de commande |
| registers/ˈredʒɪstəz/ | registres |
| buses/ˈbʌsɪz/ | bus |
| program/ˈprəʊɡræm/ | A set of instructions specifying operations for a computer to carry out. |
| fetch–execute cycle/fetʃ ˈeksɪkjuːt ˈsaɪkl/ | The repeating process of obtaining an instruction, decoding it and carrying out the required operation. |
| logical comparisons | |
| control signals | |
| memory/ˈmeməri/ | Circuits that store data, such as registers, RAM and ROM. |
| address/əˈdres/ | An identifier specifying a location in memory or on a network. |
| chip | |
| Fetch | |
| Execute/ˈeksɪkjuːt/ | |
| PC | |
| MAR | |
| MDR | |
| CIR | |
| ACC | |
| Decode | |
| cache/kæʃ/ | |
| embedded system/emˈbedɪd ˈsɪstəm/ | système embarqué |
| cores/kɔːz/ | Processing units within a processor that can execute instruction streams. |
| cache size | |
| clock speed/klɒk spiːd/ | The number of cycles of a processor's clock per second; it alone does not determine how quickly every program runs. |
| Storage/ˈstɔːrɪdʒ/ | |
| secondary storage/ˈsekəndəri ˈstɔːrɪdʒ/ | Non-volatile storage used to retain data and programs beyond immediate processing. |
| program counter/ˈprəʊɡræm ˈkaʊntə/ | A processor register holding the address of the next instruction to fetch in the simplified CPU model. |
| address bus/əˈdres bʌs/ | The signal lines used to identify a memory location or device involved in a transfer. |
| data bus/ˈdeɪtə bʌs/ | The signal lines carrying data between processor, memory and other connected components. |
| accumulator/əˈkjuːmjʊleɪtə/ | A register used to hold intermediate arithmetic or logical results during processing. |
L'unité centrale de traitement
- Le CPU 中央处理器 traite les données et exécute des instructions 指令, répétant un cycle des millions de fois par seconde.
- À l'intérieur se trouvent l'ALU 算术逻辑单元, l'unité de contrôle 控制单元 et les registres 寄存器, reliés par des bus 总线.
- Il fait tourner chaque programme via le cycle de recherche-exécution.
Parties du CPU
- ALU — effectue les calculs et les comparaisons logiques.
- Unité de contrôle (CU) — envoie des signaux de contrôle pour gérer toutes les parties.
- Registres — petites mémoires très rapides contenant une valeur chacune.
- Trois bus les relient à la mémoire : adresse (un sens), données (deux sens), contrôle.


Un CPU moderne est une puce unique regroupant l'unité de contrôle, l'ALU et les registres
The ALU in a CPU:
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
The arithmetic logic unit does the maths and logic; the control unit manages the parts.
Registres et cycle de recherche-exécution
- Registres spéciaux : PC (adresse de l'instruction suivante), MAR (adresse d'accès), MDR (donnée/instruction chargée), CIR (instruction en cours d'exécution), ACC (résultat de l'ALU).
- Le cycle se répète en trois étapes : Recherche (copie l'instruction dans le CPU, puis PC + 1) → Décodage (la CU détermine sa signification) → Exécution (l'exécute).

Cycle de recherche-décodage-exécution que le CPU répète pour chaque instruction
Le cycle fetch-execute
Tap round the loop the CPU repeats billions of times a second — fetch the instruction, decode what it means, execute it, then do it all again.
Match each CPU part to what it does.
Difficulté 2/5 · 140 pièces + un petit bonus lors de la première réussite aujourd'hui
The ALU computes, the control unit directs, the PC tracks the next instruction, and cache keeps hot data close.
Put the stages of the cycle in order.
Difficulté 3/5 · 200 pièces + un petit bonus lors de la première réussite aujourd'hui
Fetch the instruction, decode what it means, then execute it — repeated continuously.
Cache 高速缓存, performances, systèmes embarqués 嵌入式系统
- La Cache est une petite quantité de mémoire très rapide près du CPU, contenant des données fréquemment utilisées — afin que le CPU attende moins.
- La performance dépend du nombre de cores, de la taille du cache et de la vitesse d'horloge 时钟速度 (cycles par seconde).
- Un système embarqué est un petit ordinateur intégré dans un appareil pour une tâche fixe (lave-linge, micro-ondes).

La cache et la mémoire principale (RAM) sont situées près du CPU pour lui alimenter rapidement des données


Which change would improve CPU performance?
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
More cores, a larger cache and a higher clock speed all improve performance.
Cache is small, very fast memory near the CPU that holds often-used data, so the CPU waits less than it would reading from main memory.
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
A bigger cache, more cores and a higher clock speed all raise performance — cache helps by cutting the wait for data.
Cette carte est nouvelle. Elle s’affiche donc en anglais jusqu’à ce que sa traduction soit prête.
Worked example: one trip round the cycle
The program counter 程序计数器 (PC) holds 20. Describe how the next instruction is fetched.
- The address 20 is copied from the PC to the MAR and sent along the address bus 地址总线 to memory. The instruction stored at address 20 comes back along the data bus 数据总线 into the MDR, then is copied to the CIR.
- The PC goes up by 1, to 21, ready for the next fetch. The control unit then decodes the instruction in the CIR, and it is executed (the ALU does any calculation, with the result in the accumulator 累加器).
Which register holds the address of the next instruction to be fetched?
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
The PC holds the next address and is incremented after each fetch.
Doubling the number of cores always makes every program run twice as fast.
Difficulté 1/5 · 100 pièces + un petit bonus lors de la première réussite aujourd'hui
Only tasks that can be split between cores speed up, and the cores must share work and memory.
Vous avez compris
- CPU = ALU (maths/logique) + CU (signaux de contrôle) + registres, reliés par les bus adresse/données/contrôle
- registres clés : PC (prochaine instruction), MAR/MDR (mémoire), CIR (courante), ACC (résultat)
- le cycle : recherche → décodage → exécution
- performance : cores, taille du cache, vitesse d'horloge ; cache = mémoire rapide près du CPU
Que s’est-il passé ? Seule l’équipe du site voit ces informations.