Unit 3 - The Processor
Unit 3 - The Processor
Unit 3
The Processor
1
Unit 3 – The Processor
2
5 Unit 3 – The Processor
for instance, an addition operation was requested, an ALU will be connected to a set of
inputs and a set of outputs. If the addition operation produces a result too large for the
CPU to handle, an arithmetic overflow flag in a flags register may also be set.
The final step, writeback, simply “writes back” the results of the execute step to
55some form of memory. Very often the results are written to some internal CPU register for
quick access by subsequent instructions. Some types of instructions manipulate the
program counter rather than directly produce result data. These are generally called
“jumps” and facilitate behaviour like loops, conditional program execution (through the
use of a conditional jump), and functions in programs.
60 After the execution of the instruction and writeback of the resulting data, the
entire process repeats, with the next instruction cycle normally fetching the next-in
sequence instruction because of the incremented value in the program counter.
3
Unit 3 – The Processor
65