Section 5- Components of a Computer System Flashcards
What is a computer?
- A computer is a machine that processes data
- The purpose of a computer is to take data, process it and then output it
- A computer system consists of hardware and software that work together to process data and complete tasks
What is hardware?
-Hardware is the physical stuff that makes up your computer like the CPU, monitor, motherboard and printer
What is software?
- Software is the programs that the computer system runs
- You can have application software (programs that help the user perform specific tasks) and system software (operating systems and utilities)
What are embedded systems?
- Embedded systems are computers which are built into other devices, like dishwashers,microwaves and TV
- They are often used as control systems- they monitor and control machinery in order to achieve a desired result
- They are usually easy to design, cheap to produce and more efficient at doing the task than a normal computer as they are specific to one task only
What components do the computer contain?
- Computers contain components which work together:
- Power Supply- supplies power to the motherboard, optical and hard drive, and other hardware
- Case cooling fan- extracts hot air from the computer case
- CPU Heat Sink and Cooling Fan- keeps the CPU at a steady temperature
- CPU- most important component (does all the processing)
- Graphics Card
- Motherboard- the main circuit board in the computer, where the hardware is connected
- Hard Disk Drive- internal secondary storage
- RAM sticks- Computer Memory slots in here
- Optical Drive- for read/writing of optical disks
What is the CPU?
- The CPU is the brain of the computer system
- It processes all of the data and instructions that make the system work
- The processing power of the CPU depends on:clock speed, number of cores and cache size and type
- The CPU also contains various registers which temporarily hold tiny bits of data needed by the CPU. They are very quick to read/write to, way quicker than other forms of memory
What is the Control Unit(CU)?
- The control unit is in overall control of the CPU. It’s main job is to execute program instructions by following the fetch-decode-execute cycle
- It controls the flow of data inside and outside of the CPU
What is the Arithmetic Logic Unit (ALU)?
- Does all the calculations
- It completes simple addition and subtraction, compares the size of numbers and can do multiplications and divisions using repeated addition and subtraction
- It performs logic operations such as AND, OR and NOT and binary shifts
- Registers are used to store intermediate results of calculations
What is the cache?
- The cache is a very fast memory in the CPU. It’s slower than the registers, but faster than RAM
- It stores regularly used data so that the CPU an access it quickly the next time it is needed. When the CPU requests data, it checks the cache first to see if the data is there. If not, it will fetch it from the RAM
- Caches have a very low capacity and are expensive compared to the RAM and secondary storage
What is the clock?
- The clock sends out a signal that continually cycles between 1 and 0, usually at a constant rate
- The Signal is used to synchronise when instructions will be carried out
- The number of clock cycles per second is called the clock speed
What are buses?
- Buses are collections of wires that are used to transmit data between the components of the CPU, and to other parts of the computer system.
- A processor may have separate buses for carrying data, instructions and memory addresses
What is Von Neumann architecture and how does it work?
- The Von Neumann architecture describes a system where the CPU runs programs stored in memory. Programs consist of instructions and data which are stored in memory addresses
- The Registers hold any data, instructions and memory addresses that are about to be used by the CPU. There are specific registers for different tasks
- The memory holds the program instructions and the program data
- The CU controls the flow of data. It also keeps track of the memory address of the instruction for each cycle
- The ALU gets data from the CU and registers, performs an operation on it an sends the output back to the registers
What is the Fetch-Decode-Execute cycle?
-FETCH- the control unit reads the memory address of the next CPU instruction->the instruction stored in that address is copied from memory to one of the registers->the memory address in the control unit is incremented to point to the address of the next instruction, ready for the next cycle
-DECODE-the instruction that was copied from memory is decoded by the control unit->the control unit prepares for the next step,e.g. by loading other values into the registers
-EXECUTE-the instruction is performed.This could be:load data from memory, write data to memory, do a calculation or logic operation, change the address in the CU, or halt the program
-
What is RAM (Random Access Memory)?
- RAM is high speed, volatile memory
1) RAM is used as the main memory in a computer. It can be read and written to.
2) The main memory is where all data, files and programs are stored while they are being used
3) When a computer boots up, the operating system is copied from secondary storage to RAM
4) When 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
5) RAM is slower than the CPU cache, but way faster than secondary storage
What is ROM (Read Only Memory)?
1) ROM is non-volatile memory
2) ROM comes on a small, factory-made chip built into the motherboard
3) It contains all the instructions a computer needs to properly boot up. These instructions are called the BIOS(Basic Input output system)
4) As soon as the computer is powered on, the CPU reads the instructions from ROM. This tells the CPU to perform self checks and set up the computer,e.g. test the memory is working OK,see what hardware is present and copy the operating system into RAM
5) Although the CPU can only read ROM, it is possible to update the BIOS on a ROM chip
What is volatile and non-volatile memory?
- Volatile Memory is temporary memory. It requires power to retain its data
- non-volatile Memory is permanent memory-it keeps its content even when it has no power
What happens in a non-embedded system?
- Non-embedded Systems usually have much more RAM than ROM because they often need to write data to main memory
- ROM is typically only used for BIOS, which does not require much memory
- ROM and RAM are usually stored on the motherboard, away from the CPU
What happens in a embedded system?
- embedded systems usually have more ROM than RAM because they do not write much (if any) data to memory
- they do not tend to have secondary storage so ROM is used to store all programs
- ROM and RAM are often stored on the same chip as the CPU to reduce physical space needed and cost
How does CPU performance depend on Clock Speed?
- for most desktop computers, clock speed is somewhere around 3.5 GHz. This determines the number of instructions a single processor core can carry out per second- the higher the clock speed, the more instructions that can be carried out per second
- some CPUs can be overclocked to make them run at a higher clock speed than the factory-set rate. But this can be risky if it is not done properly- it can make CPUs overheat, causing crashes or permanent damage to the system. High performance cooling systems (e.g. water cooling) are usually needed
How does CPU performance depend on the CPU Cores?
- Each Core in a CPU can process data independently of the rest
- The more cores a CPU has, the more instructions it can carry out at once, so the faster it can process a batch of data
- Most PCs and Smartphones have 4 or more cores these days
How does CPU performance depend on Cache Size?
- The Cache is data storage inside the CPU that is much faster than the RAM
- A larger CPU cache gives the CPU faster access to more data it needs to process
How does the CPU performance depend on the Cache type?
- There are different levels of Cache memory-L1, L2 and L3. The higher the level, the more it can hold, but the slower it is
- Cache Speed is based on how far it is from the CPU. L1 is quick because it is on the CPU itself, while L3 is often on the motherboard so it is slower
How does the RAM affect the overall performance of a CPU?
1) If a computer has too little RAM, it may not be able to keep all application data loaded at once, slowing the system down
2) The more RAM, the more applications or more memory-intensive applications it can smoothly run, making it faster overall
3) If the computer already has plenty of RAM to run everything the user wants, increasing RAM may make no difference to performance