The CPU and the fetch-execute cycle
導入済み
11:47
CPU
あなたのスマホのプロセッサは、非常に単純なことを繰り返しています。命令を1つ取得する。その意味を理解する。実行する。そして次の命令を取得する。それが…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| 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/ | 制御部 |
| registers/ˈredʒɪstəz/ | レジスタ |
| buses/ˈbʌsɪz/ | バス |
| 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/ | 組込みシステム |
| 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. |
CPU(中央処理装置)
- CPUはデータを処理し命令を実行し、每秒数百万回のサイクルを繰り返します。
- 内部にはALU、制御ユニット、レジスタがあり、バスで接続されています。
- すべてのプログラムを**fetch–execute cycle( fetch-実行サイクル)**で動作させます。
CPUの構成要素
- ALU — 計算と論理比較を行います。
- 制御ユニット (CU) — 全構成要素を管理するための制御信号を送信します。
- レジスタ — 非常に小さい高速メモリで、各1値を保持します。
- メモリとの接続に3つのバスを使用します:アドレスバス(一方向)、データバス(双方向)、制御バス。


現代のCPUは制御ユニット、ALU、レジスタを内蔵した単一チップです。


The ALU in a CPU:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
The arithmetic logic unit does the maths and logic; the control unit manages the parts.
レジスタとfetch–execute cycle
- 特殊レジスタ:PC(次の命令のアドレス)、MAR(アクセス先のアドレス)、MDR(取得されたデータ/命令)、CIR(現在実行中の命令)、ACC(ALUの結果)。
- サイクルは3段階を繰り返します:Fetch(命令をCPUへコピー、PC+1)→ Decode(CUが意味を理解)→ Execute(実行)。

CPUがすべての命令に対して繰り返すfetch–decode–execute cycle。

フェチ・エグゼキューションサイクル
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.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
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.
難易度 3/5 · 200 コイン + 今日初回達成時の小ボーナス
Fetch the instruction, decode what it means, then execute it — repeated continuously.
キャッシュ、パフォーマンス、組込みシステム
- キャッシュはCPU近くの非常に高速な少量メモリで、頻繁に使用するデータを保持し、CPUの待機時間を短縮します。
- パフォーマンスはコア数、キャッシュ容量、クロック速度(每秒サイクル数)に依存します。
- 組込みシステムとは、特定の固定タスク(洗濯機、電子レンジなど)のためにデバイス内に組み込まれた小型コンピュータです。

キャッシュとメインメモリ(RAM)はCPU近くに配置され、高速でデータを供給します。


Which change would improve CPU performance?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
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.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
A bigger cache, more cores and a higher clock speed all raise performance — cache helps by cutting the wait for data.
このカードは新しいため、翻訳ができるまで英語で表示されます。
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?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
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.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Only tasks that can be split between cores speed up, and the cores must share work and memory.
理解できましたか
- CPU = ALU(数学/論理)+ CU(制御信号)+ レジスタ、アドレス/データ/制御バスで接続
- 主要レジスタ: PC (次の命令)、MAR/MDR (メモリ)、CIR (現在の実行中)、ACC (結果)
- ループ: fetch → decode → execute
- パフォーマンス: コア数、キャッシュ容量、クロック速度; キャッシュ = CPU近くの高速メモリ
何が問題でしたか?この内容はサイトの運営チームだけが確認します。