The CPU and the fetch-execute cycle
도입됨
11:47
CPU
휴대폰 속 프로세서는 거의 바보처럼 간단한 일을 하고 있습니다. 지령 하나를 가져옵니다. 그것이 무엇을 의미하는지 파악합니다. 수행합니다. 그리고 다음 지령을 가져옵니다. 이것이…
영어 내레이션 · 영어와 중국어 자막 전환 가능
이 수업의 내용
| 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)**을 통해 실행합니다.
CPU의 구성 요소
- ALU — 계산 및 논리적 비교를 수행합니다.
- 제어 유닛(CU) — 모든 부분을 관리하기 위한 제어 신호를 보냅니다.
- 레지스터 — 매우 작은 초고속 저장소로 각 하나씩의 값을 보관합니다.
- 세 가지 버스가 메모리와 연결됩니다: 주소总线(단방향), 데이터总线(양방향), 제어总线.


현대 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.
레지스터와 취사-실행 사이클
- 특수 레지스터: PC(다음 명령어의 주소), MAR(접속할 주소), MDR(취사된 데이터/명령어), CIR(현재 실행 중인 명령어), ACC(ALU의 결과).
- 사이클은 세 단계가 반복됩니다: 취사(Fetch) (명령어를 CPU로 복사한 후 PC + 1) → 복호(Dcode) (CU가 의미를 파악함) → 실행(Execute) (수행함).

CPU가 모든 명령어에 대해 반복하는 취사-복호-실행 사이클

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.
난이도 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에 빠르게 데이터를 공급하기 위해 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(결과)
- 사이클: 취급 → 디코딩 → 실행
- 성능: 코어, 캐시 용량, 클럭 속도; 캐시 = CPU 근처의 고속 메모리
어떤 문제가 있었나요? 사이트 팀만 이 내용을 볼 수 있습니다.