The ALU performs
logical operations (including and, or, not)
logical comparisons
bit-shifting operations (multiplication)
arithmetic operations (addition)
The CU
handles all processor control signals
directs all input and output flow
fetches code for instructions
directs other units by providing control and timing signals
CPU bus is internal to the CPU and is used to transport data to and from the ALU
A clock signal used to synchronise things inside the computer.
The beginning of each clock cycle is when the signal goes from low to high (0 to 1).
Measured in Hertz (Hz).
A cpu can have one or more units, each unit is called a core. Each core contains an ALU, control unit and registers.
Just because a CPU has multiple cores it will not necessarily be quicker:
Usually measured in megahertz (MHz) or gigahertz (GHz).
Generally the faster the clock the more instructions the processor can complete per second.
Built into the CPU
Some instruction sets are more efficient than others.
RISC, CISC
Central processing unit
True
Control unit
Cache memory holds regularly used data and instructions.
It processes all the data and instructions that make the system work.
To perform arithmetic calculations and logic operations such as AND, OR, NOT.
The control unit handles the fetching, decoding and execution of program instructions. It sends signals to control the flow of data.
High cost and physical space.
Decode the instruction
Execute the instruction
Fetch an instruction from Main Memory
The CPU continuously reads instructions stored in main memory and executes them as required.
Register
Holds data, instructions and memory addresses that are about to be used by the CPU.
Collections of wires that are used to transmit data between components of the CPU.
To hold data, instructions and memory addresses that are about to be used by the CPU.
False - data and instructions are stored in the same memory unit.
Load/write data; perform calculations/logic operations;
change address; halt program
The clock sends out a signal that continually cycles between 0 and 1. It is used to synchronise when instructions should be carried out.
The control unit reads the memory address of the next CPU instruction. The instruction is then copied from memory to one of the registers. The memory address in the control unit is incremented to point to the address of the next instruction, so that its ready for the next cycle. The control unit decodes the instruction and then executes it. This could involve things like writing data to memory or performing operations with the ALU.