Section 1 - components of a computer system Flashcards
what is the purpose of a computer?
to take data, process it, then output it
what does a computer consist of?
hardware and software that work together to process data or complete tasks
what is hardware?
the physical parts of a computer system, like the CPU, motherboard, monitor and printer
what is software?
the programs or applications that a computer system runs e.g. an operating system, a word processor or video game
what are peripherals?
external pieces of hardware like the keyboard, mouse and printer
what are embedded systems?
computers built into other devices, like dishwashers, microwaves and TVs. they are usually dedicated systems
what are embedded systems often used as?
control systems - they monitor and control machinery in order to achieve a desired result
what are the advantages of an embedded system over a general purpose computer?
they’re dedicated to a single task, so they are usually easier to design, cheaper to produce, and more efficient at doing their task
what are the components of a computer?
power suply case cooling fan CPU heat sink and cooling fan CPU graphics card hard disk drive motherboard RAM sticks optical drive
what does the power supply of a computer do?
supplies power to the motherboard, optical and hard drives, and other hardware
what does the case cooling fan of a computer do?
extracts hot air from the computer case
what does the CPU heat sink and cooling fan of a computer do?
it keeps the CPU at a steady temperature
what does the CPU of a computer do?
it does all the processing
it is the most important component
what does the hard disk drive of a computer do?
its internal secondary storage
what does the motherboard of a computer do?
its the main circuit board in the computer, where the hardware is connected
what does the optical drive of a computer do?
for read/writing of optical discs
what is a CPU?
the brain of a computer
it processes all of the data and instructions that make the system work
what does the processing power of a CPU depend on?
characteristics like:
clock speed
number of cores
cache size
what are the 3 main parts of the CPU?
the control unit
the arithmetic logic unit
the cache
what does the control unit do?
its main job is to execute program instructions by following the fetch-decode-execute cycle.
it controls the flow of data inside and outside the CPU
what does the arithmetic logic unit do?
it does all the calculations
it completes simple addition and subtraction, compares the size of numbers and can do multiplication and division using addition ad subtraction
it performs logic operations like AND, OR and NOT and binary shifts
it contains the accumulator register
what is the cache?
very fast memory in the CPU. slower than registers, faster than RAM
it has low capacity and is expensive compared o RAM and secondary storage
there are 3 different levels of cache memory (L1, L2, L3) they get slower but can hold more as the levels increase
what does cache do?
it stores regularly used data so the CPU can access it quickly, the CPU checks the cache for the data it wants before RAM
what does von neumann architecture describe?
it describes a system where the CPU runs programs stored in memory
how is the von neumann architecture laid out?
data goes in to the CPU from input devices and memory and out to output devices and the memory. inside the control unit, registers and ALU are all connected
what do registers do?
they temporarily hold tiny bits of data needed by the CPU. they’re very quick to read/write to
what does the control unit contain?
the program counter
what does the ALU contain?
accumulator
what does the registers contain?
memory address register
memory data regiser
what does the MAR do?
it holds any memory address about to be used by the CPU. the address might point to data or a CPU instruction
what does the MDR do?
it holds data or instructions. this may have been fetched from memory, or be waiting to be written to memory
what does the accumulator do?
it stores intermediate results of calculations in the ALU
what does the program counter do?
it holds the memory address of the instruction for each cycle
what happens in the fetch part of the fetch-decode-execute cycle?
copy memory address from program counter to MAR
copy the instruction stored in the MAR address to MDR
increment program counter to point to the address of the next instruction, ready for the next cycle
what happens in the decode part of the fetch-decode-execute cycle?
the instruction in the MDR is decoded by the CPU. the CPU may then prepare for the next step, e.g. by loading values into the MAR or MDR
what happens in the execute part of the fetch-decode-execute cycle?
the instruction is performed. this could be: load data from memory, write data to memory, do a calculation or logic operation (using the ALU), change the address in the PC, or halt the program
what is RAM?
random access memory that is used as the main memory in a computer. it can be read and written to. it is volatile.
what is volatile memory?
temporary memory. it requires power to retain its data
what is non-volatile memory?
permanent memory - it keeps its contents even when it has no power
what is main memory?
where all data, files and programs are stored while they are being used
what happens when a computer boots up?
when the operating system (software applications, documents and files) are opened, they are copied from secondary storage to RAM. they stay in RAM until the files or applications are closed
how fast is RAM?
it is slower than the CPU cache, but much faster than secondary storage
what happens when RAM is full?
the computer needs somewhere else to put application data. it moves data that hasn’t been used recently to a location on secondary storage known as virtual memory
why might virtual memory be used?
if there are too many applications open at once, or if a particularly memory-intensive application is being used
why is virtual memory bad?
the CPU needs to read data stored in virtual memory so it has to be moved back to RAM. this is slow because data transfers are slower on secondary storage than RAM.
it makes a computer slow to respond when switching between applications or when using a memory-intensive application
how can an application be memory-intensive?
due to data constantly moving between virtual memory and RAM just to keep the program running
what is ROM?
read only memory, its non-volatile memory. it can only be read and not written to.
it comes on a small, factory-made chip built into the motherboard
what does ROM contain?
all the instructions a computer needs to properly boot up. these instructions are called the BIOS
what is the BIOS?
basic input output system. its a type of firmware which is hardware-specific software built in to a device. embedded systems are controlled by firmware
what happens when a computer is powered on?
the CPU reads the instructions from the ROM. this tells the CPU to perform self checks and set up the computer. e.g. test the memory is working, see what hardware is present, copy the operating system to RAM
how can the BIOS on a ROM chip be updated?
ROM chips often use flash memory. this is a common non-volatile memory that stores data in electrical circuits by trapping electrons. its used in SD cards, USB sticks and solid state drives.
what is clock speed?
the number of instructions a single processor core can carry out per second (Hz). usually around 3.5 GHz
what does overclocked mean?
CPU’s can be overclocked to make them run at a higher clock speed than the factory-set rate. it’s risky if not done properly - it can make CPU’s overheat, causing crashes or permanent damage to the system. high performance cooling systems are usually needed