1.1.2 Von Neumann Architecture Flashcards
Von Neumann Architecture
All modern CPUs are based on the Von Neumann architecture.
ALU
Arithmetic and Logic Unit
What does the ALU do
Performs all of the arithmetic and logical operations of the CPU eg.
Addition and subtraction, multiplication and division.
Comparisons such as whether numbers are equal or if one is greater than another.
Boolean operations (e.g. AND, OR, NOT).
CU
Control Unit
What does the CU do
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 componenets of the Control Unit:
The clock, which coordinates the CPU’s activity.
The decoder, which decodes program instructions.
Registers
Tiny amounts of super-quick memory within CPU.
They are used to hold information needed for the CPU to work.
Each register holds a specific piece of information.
Types of registers in the CPU
ACC
MAR
PC
MDR
ACC
Accumulator
Holds the result of calculations and operations performed by the ALU.
MAR
Memory Address Register
Holds the address of the location in memory where data is to be retrieved or stored.
PC
Program Counter
Holds the memory location address of the next instruction to be performed by the CPU.
MDR
Memory Data Register
Holds the data that has been retrieved from memory, or that is about to be stored in memory.
The Fetch, Decode, Execute Cycle (FDE)
Processes instructions and data, the processor needs to retrieve them from memory.
Fetch
The address of the instruction that needs to be processed next is copied from the PC to the 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
The CU decodes the instruction and sends control signals to the component within or outside the CPU that needs to act.
Execute
The operation indicated by the instruction is performed by the appropriate component.
The ALU performs the operation given by the CU.
The value stored by the PC or MAR might be changed.