
Now that we have the basic design philosophy and some fundamental requirements for our new CPU, we should consider the types and number of registers we need. First, let’s look at how registers are used, their benefits, and some limitations due to hardware and instruction architecture.
One of the primary uses of internal registers in a CPU is to hold values for operations that are being actively computed or worked on. Registers can represent CPU settings, flags used in logic operations, and loop counters so the program knows which item in a loop it is working on and when to stop the current algorithm.
Comments