1.1 Systems Architecture Flashcards
What is a computer? What is its purpose?
A computer is a machine that processes data
Its purpose is to take data, process it, then output it (A.K.A FDE cycle)
What does a computer consist of?
Hardware and software that work together to process data / complete tasks
What is hardware?
The physical components of a computer
Give 3 examples of hardware in a computer system
CPU, RAM, ROM, motherboard, HDD, SSD, CPU heatsink and cooling fan, power supply, optical drive, graphics card
What is software?
Programs or applications that a computer system runs
Give 3 examples of software
OS, word processor, videogame, web browser, graphics software
What are peripherals?
External pieces of hardware e.g. keyboard, mouse, printer
What are the two types of computer systems and what are they used for?
General purpose systems are designed to perform many tasks e.g. PC, tablet, mobile phone
Embedded systems are designed for one particular function and are computers built into other devices e.g. dishwasher, digital camera, robotic vaccum cleaner, microwave, TV
What is the function of the CPU?
To process all of the data and instructions that make the computer system work
It is the ‘brain’ of the computer system
What is the Fetch-Decode-Execute cycle?
The method a computer uses to carry out instructions
What occurs in the fetch stage of the F-D-E cycle?
1) The memory address of the next instruction to be executed is copied from the Program Counter to the MAR
2) The instruction stored in the memory address in the MAR is copied to the MDR
3) The PC is incremented by one so it is ready for the next F-D-E cycle
What occurs in the decode stage of the F-D-E cycle?
The instruction in the MDR is decoded by the Control Unit and it coordinates a response
What occurs in the execute stage of the F-D-E cycle?
The instruction is executed
e.g. load data from memory, write data to memory, do a calculation or logic operation, halt the program
F-D-E cycle in full
1) The memory address of the next instruction to be executed is copied from the Program Counter to the MAR
2) The instruction stored in the memory address in the MAR is copied to the MDR
3) The PC is incremented by one so it is ready for the next F-D-E cycle
4) The instruction in the MDR is decoded by the Control Unit and it coordinates a response
5) The instruction is executed
What are the 4 main components of the CPU?
Control Unit (CU)
Arithmetic Logic Unit (ALU)
Cache
Registers
What is the function of the CU?
1) Manages the fetching, decoding and executing of instructions (F-D-E cycle)
2) Controls the flow of data inside the CPU (to ALU, registers etc.) and outside the CPU (to memory and input/output devices)
What is the function of the ALU?
1) Performs mathematical calculations
2) Performs logic operations (AND, OR, NOT) and binary shifts
What is the function of the cache?
1) Stores frequently used data and instructions so the computer can access it quickly
What are some characteristics of the cache?
1) The cache is very fast memory in the CPU (faster than RAM but slower than registers)
2) Caches have a very low capacity and are very expensive per MB compared to RAM and secondary storage
3) There are different levels of cache memory. L1 is the fastest but has the lowest capacity. L3 is the slowest but has the highest capacity. L2 is in the middle
What is the general function of registers?
Temproarily hold tiny bits of data needed by the CPU
What is the main benefit of registers?
They are super quick to read/write to (much faster than any other form of memory)
What are the 4 registers?
Control Unit (CU)
Memory Address Register (MAR)
Memory Data Register (MDR)
Accumulator
What is the function of the PC?
Stores the memory address of the next instruction to be fetched
What is the function of the MAR?
Stores the memory address of the instruction that is currently in use