Central processing unit (CPU) | Components of the CPU the main components of the CPU include:
registers (used to hold data for immediate use);
the ALU (used to perform transformations on data);
the control unit (used to "direct traffic") |
Lecture #4: Hardware architecture |
Central processing unit (CPU) | Components of the CPU |
| The native language of machines each CPU has a pre-determined set of instructions which it can execute; typical instructions might include "add some numbers", "get some information from memory", etc. |
Lecture #4: Hardware architecture |
Central processing unit (CPU) | Components of the CPU |
| The native language of machines |
| Stored program computers each instruction is represented by a word, i.e., a sequence of ones and zeros of some fixed width (often a power of 2, e.g., 32, 64, etc.)
a sequence of instructions (i.e., a program) can be stored in the computer's memory and retrieved to be performed as needed |
Lecture #4: Hardware architecture |
Central processing unit (CPU) | Components of the CPU |
| The native language of machines |
| Stored program computers |
| The basic operating cycle in order to "run" a program, the computer must follow these steps: get an instruction, decode it (control), perform the associated task (e.g., addition), and then continue
a special register called the program counter is used to store the "number" of the next instruction to be performed |