This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en:multiasm:cs:chapter_3_4 [2025/12/02 10:54] – [Execution unit] ktokarz | en:multiasm:cs:chapter_3_4 [2025/12/02 11:05] (current) – [Execution unit] ktokarz | ||
|---|---|---|---|
| Line 44: | Line 44: | ||
| ===== Execution unit ===== | ===== Execution unit ===== | ||
| - | An execution unit, known also as the data processor, executes instructions. Typically, it is composed of a few essential elements: | + | An execution unit, also known as the data processor, executes instructions. Typically, it is composed of a few essential elements: |
| * Arithmetic logic unit (ALU). | * Arithmetic logic unit (ALU). | ||
| * Accumulator and set of registers, | * Accumulator and set of registers, | ||
| Line 62: | Line 62: | ||
| The flags are used as conditions for decision-making instructions (like //if// statements in some high-level languages). | The flags are used as conditions for decision-making instructions (like //if// statements in some high-level languages). | ||
| The flags register can also implement some control flags to enable/ | The flags register can also implement some control flags to enable/ | ||
| + | |||
| + | ===== Registers ===== | ||
| + | |||
| + | Registers are memory elements which are placed logically and physically very close to the arithmetic logic unit. It makes them the fastest memory in the whole computer. They are sometimes called scratch registers, and the set of registers is called the register file. | ||
| As we mentioned in the chapter about CISC and RISC processors, in CISC processors, registers are specialised, | As we mentioned in the chapter about CISC and RISC processors, in CISC processors, registers are specialised, | ||