✅ 1. Systems Architecture Flashcards
Difference between hardware and software
Hardware are the physical components that make up a computer
Software is the programs that run on a computer system and control the hardware
What is the purpose of the CPU?
The purpose of the CPU is to fetch data or instructions from the main memory, process them and execute them
What is the function of the Arithmetic Logic Unit?
The function of the Arithmetic Logic Unit is to carry out mathematical and logical operations
Give examples of what the operations performed by the ALU include
Boolean logic operations such as AND, OR, NOT
Addition & Subtraction
What is the function of the Control Unit?
The control unit contains a clock which sends control signals to other components within the CPU at fixed intervals in order to direct operations and synchronise activity between components within the CPU
What is cache?
- Cache is a very small and very fast amount of memory built within the processor
- It stores data and instructions the processor frequently uses, so that it can be accessed faster than accessing them from RAM
What are Registers?
Registers are a small piece of memory within the CPU that can hold one instruction or address
What are the 4 types of registers?
- Program Counter (PC)
- Memory Address Register (MAR)
- Memory Data Register (MDR)
- Accumulator
What is the function of the Memory Address Register (MAR)?
The MAR stores the address of the data to be retrieved from, and the address where the data will be written to
What is the function of the Memory Data Register (MDR)?
The Memory Data Register (MDR) stores the data or instruction that is fetched from
memory. It also stores the data that will be written to memory.
What is the function of the program counter?
The function of the program counter is to:
- Store the address of the next instruction to be fetched from memory
- Increment in each fetch-execute cycle by 1
What is the function of the Accumulator?
The accumulator stores the result of the calculation from the ALU
Fetch - Decode - Execute Cycle
- The PC holds the address or location of the next instruction to be run
- The address of the instruction to be fetched is copied into the MAR
- The instruction which is stored at the location held in the MAR, is fetched from the main memory, and then copied into the MDR
- The instruction in the MDR is then decoded by the Control Unit and executed by the ALU
- The result of the ALU calculation is then sent to the Accumulator, where the result is stored
- The value in the PC is then incremented by 1 so that it now points to the next instruction which has to be fetched
- The process is then repeated
What factors affect the performance of the CPU?
- Clock Speed
- Cache Size
- Number of Cores