architecture: more notes on ALU

This commit is contained in:
thomasabishop 2023-07-12 07:02:55 +01:00
parent 5cabf54588
commit cb2a720808
2 changed files with 10 additions and 6 deletions

View file

@ -14,10 +14,8 @@ It executes arithmetic and logical operations on binary numbers and thus it is w
More specifically, the ALU is responsible for the _execute_ phase of the [fetch, decode, execute cycle](/Computer_Architecture/CPU/Fetch_decode_execute.md).
// Notes on
## ALU execution lifecycle
### Processor cores
The vast majority of general purpose computers are multi-core. This means that the CPU contains more than one processing unit. They are best thought of as mini-CPUs within the main CPU since they each have the same overall Von Neumann architecture.
With Intel processors the two main consumer processors are the i5 and i7. The latter has more cores than the former. Consequently it has faster clock speeds and greater concurrency due to increased threads.
1. **Inputs**: The ALU receives two operands and a control signal as inputs. The operands are the data on which the operations will be performed. The control signal tells the ALU which operation it needs to perform.
2. **Perform operation**: The ALU carries out the requested operation. For instance, if the control signal indicates an addition operation, the ALU sums the two operancs.
3. **Output**: The ALU then sends the operation to another part of the CPU for further processing or storage. The ALU also outputs a status bit that can be used by other parts of the CPU to make decisions. For instance if the additon results in a value that is too large to be stored, the ALU will set an overflow flag.

View file

@ -65,3 +65,9 @@ Hertz was the scientist who detected [electromagentic waves](/Electronics_and_Ha
![](/_img/hertz_wave_freq.gif)
As the diagram above shows, a cycle is equal to one ascending and one descending crest. The more cycles per time unit, the greater the Hertz. We see the Hz increase as the number of cycles increases over time.
## Processor cores
The vast majority of general purpose computers are multi-core. This means that the CPU contains more than one processing unit. They are best thought of as mini-CPUs within the main CPU since they each have the same overall Von Neumann architecture.
With Intel processors the two main consumer processors are the i5 and i7. The latter has more cores than the former. Consequently it has faster clock speeds and greater concurrency due to increased threads.