1.1 Systems Architecture Flashcards
OCR J277 Systems Architecture
The purpose of the CPU
The CPU is the Central Processing Unit.
It executes instructions stored in memory by repeatedly carrying out the fetch-decode-execute cycle.
Summarise the Fetch-Decode-Execute Cycle
The FDE cycle or Fetch-Execute cycle describes the basic operation of modern computers.
Instructions are loaded into main memory (RAM) before the processor starts running the program.
The instructions are FETCHED from memory.
Once fetched, the instructions are DECODED by the Control Unit within the CPU, to decide what to do.
Then the instructions are EXECUTED.
Every operation is carried out within the FDE cycle is regulated by the cycle of the CPU clock.
Summarise the Fetch phase of the FDE Cycle
- Each instruction is FETCHED from main memory (RAM) in order.
- Instructions are put in to the appropriate registers.
- The Control Unit (CU) accesses instructions for the next stages.
Summarise the Decode phase of the FDE Cycle.
Instructions (in binary) need to be decoded before they can be run.
The Control Unit (CU) DECODES them to work out what the other components need to do.
Summarise the Execute phase of the FDE Cycle.
The Control Unit (CU) tells the other components what to do in order to carry out the instructions.
The cycle repeats.
Common CPU Components
ALU = Arithmetic Logic Unit
CU = Control Unit
Cache
Registers
What is the ALU and its function?
ALU = Arithmetic Logic Unit Carries out: 1. arithmetic calculations: + - * / (binary shifts) 2. logical operations: AND OR NOT 3. comparisons: < > ==
What is the CU and its function?
CU = Control Unit
Simple: Co-ordinates all of the CPU’s actions in the FDE Cycle.
Medium: Organises the execution of instructions, including managing the other components in the CPU.
Detailed:
- Ensures instructions executed in correct order
- Decode every instruction the processor will execute
- Send and receive signals to and from other components
- Check that signals have been delivered successfully
- Make sure data goes to the correct place at the correct time.
Describe the function of Cache
Cache is a small amount of high-speed RAM built directly within the processor.
It is used to temporarily hold data and instructions that the processor is likely to reuse.
This allows for faster processing as the processor does not have to wait for the data and instructions to be fetched from RAM.
Describe the function of registers.
Registers are even smaller and faster than cache.
Memory locations within the CPU.
Temporarily store memory addresses, instructions or data
32 bits / 64 bits.
Von Neumann Architecture
John von Neumann developed the stored program computer.
In a Von Neumann computer, both programs and data are stored in memory.
Von Neumann architecture consists of:
1. a processor
2. a memory unit that can communicate directly with the processor
3. connections for input and output devices
4. secondary storage for saving/backing up files
What is the function of MAR?
MAR = Memory Address Register
Found within the Control Unit (CU)
Temporarily holds the address (location in memory) of the current instruction or piece of data to be fetched/stored.
What is the function of MDR?
MDR = Memory Data Register
Found in the ALU.
Temporarily holds the data or program instruction when it is fetched from memory
or holds data that is waiting to be written to memory.
What is the function of the Program Counter?
PC = Program Counter
Found in the Control Unit (CU)
Register which holds the memory address of the next instruction to be processed.
What is the function of the Accumulator?
Found in the ALU.
Register in which the results of operations carried out in the ALU are stored.