- 1 TRC PowerPoint
- 2 Role of the Processor
- 3 Processor Components
- 4 Registers
- 4.1 CraigNDave
- 4.2 Computer Science Tutor
- 4.3 General Purpose Registers
- 4.4 Dedicated Registers
- 4.5 Program Control Unit Registers
- 4.6 ALU Registers
- 4.7 Memory Registers
Role of the Processor
The processor is a major part of the computer. It is required to sequence operations and give commands. It also controls the memory of the computer as well as perform simple tasks and operations such as basic mathematical problems.
Program Control Unit
The program control unit fetches instructions from the main memory and executes them one at a time.
Arithmetic Logic unit
The ALU performs all logical operations on data, such as addition and subtraction, fixed or floating point arithmetic, and Boolean logic and shift operations.
Clock speed is the number of clock pulses per second or cycles per second. It is measured in Hertz (Hz).
Word length is the number of bits in each of the registers in the processor. Word length determines the size of data or addresses that can be processed in one operation. If data exceeds the word length, this causes an overflow and extra processing is needed.
The bus width is the number of signal wires in the bus, which affects how many bits it can transfer at a time in parallel. A 16-bit bus has 16 wires to transfer 16-bits at a time and 32-bit buses have 32 wires, etc. All buses also have their own clock speed, to make sure all the bits sent are synchronised and arrive at the same time and in order.
Registers are fast memory locations on the processor. They store data or instructions that are currently in use by the processor.
Computer Science Tutor
General Purpose Registers
General purpose registers do not store any specific type of information, but instead temporarily hold general information as well as instructions.
Dedicated registers store a specific type of information, chosen by the processor and not the programmer.
Program Control Unit Registers
The Program Counter (PC) holds the memory address of the next instruction.
Current Instruction Register
The Current Instructions Register (CIR) stores the instructions and commands to be executed on the next clock cycle of the CPU.
The stack pointer (SP) takes data and puts it into a "stack". The data is figuratively put into a stack where the data that was most recently received will be on the top of the stack. When another component wants to request information from the SP, it can only take the data from the top of the stack, in a "last in, first out" order.
The status register (SR) displays the state of the processor. This can be things such as overflowing, positive or negative outcome, full or working properly.
The Accumulator or ACC will hold the current set of calculations. This information is then retrievable later on.
Memory Address Register
This register stores the address of the memory location to be read from or written to.
Memory Buffer Register
This is the register containing data being retrieved or sent to the currently accessed memory location.