Systems architecture Flashcards
Central processing unit (CPU)
The purpose of the CPU is to fetch decode and execute instructions.
FDE cycle
The FDE cycle is the cycle that the CPU runs billions of times per second. A computer takes an input and then delivers the output for the user.
Fetch stage
The address of the instruction that needs to be processed next is copied from the Program Counter (PC) to the Memory Address Register (MAR).
The PC is incremented to point to the next instruction that will be needed when the cycle starts again.
The instruction stored at the location held by the MAR is copied to the MDR.
Decode stage
The Control Unit decodes the instruction and sends control signals to the component within or outside the CPU that needs to act.
Execute stage
The operation indicated by the instruction is performed by the appropriate component. For example:
The Arithmetic Logic Unit (ALU) performs the operation given by the Control Unit.
The value stored by the Program Counter or Memory Address Register might be changed.
Arithmetic logic unit (ALU)
Performs arithmetic operations and logical decisions.
Control unit (CU)
The Control Unit transmits control signals to other components of the CPU.
The Control Unit follows the fetch-decode-execute cycle to execute program instructions.
There are two main components of the Control Unit:
The clock, which coordinates the CPU’s activity.
The decoder, which decodes program instructions.
Cache
Very small, fast memory located in the CPU which is used to provide quick access to frequently used instructions and data.
The more cache there is the more data can be stored which speeds up the performance of the CPU.
It prevents the CPU from having to repeatedly fetch frequently used instructions from RAM.
Registers
Extremely small fast memory located in the CPU. Each register has its own purpose.
It is a temporary storage area built into the CPU.
PC, MAR, MDR, ACC
Von Neumann architecture
The Von Neumann architecture is a design of the CPU. It outlines how the computer memory, input and output devices and processor all work together. The idea that the programme instruction and the data required are both stored in the same memory.
Program counter (PC)
Holds the memory address of the next instruction to be executed. Increments by 1 as the FDE cycle runs.
Memory address register (MAR)
Holds the memory address of the current instruction to be executed and the address of the data to be fetched.
Memory data register (MDR)
Stores the data or actual instruction which has been fetched from memory.
Accumulator (ACC)
Temporarily stores the result of any calculations that have taken place in the ALU.
Clock speed
The clock speed is measured in hertz (Hz) The clock speed measures the number of FDE cycles that take place per second. The faster the clock speed the more instructions can be carried out per second. Modern computers have a clock speed in gigahertz (GHz).