2. Hardware Flashcards
What does CPU stand for?
Central Processing Unit
What does the CPU do?
The hardware that executes programs and manages the rest of the hardware.
What are the two main parts of the CPU?
Control Unit - Sends electrical signals to components to control them
ALU - Carries out all the logic and calculations
What does ALU stand for?
Arithmetic Logic Unit
What things does the CPU need to access?
- Main Memory (RAM)
- Storage devices (Hard disk)
- Input/Output Devices
How does the CPU access the things it needs to access?
A system of Buses (wires).
What is measured in Ghz?
The amount of instructions that can be carried out per second. (Clock speed)
How many calculations per second is 1 Ghz?
1 billion
What is a multi-core processor?
One component where two or more CPUs (processors) or ‘cores’ work together to improve the clock speed.
What is cache memory?
Memory close to the core processor with very rapid response. It is used to store instructions before they are executed and temporary data.
What is architecture?
How large the gap between transistors is and how many transistors are on a chip.
What is memory?
How computers store data and programs.
What is RAM?
- ‘Main Memory’
- Loads programs and data before running
- Storing generated data before they are stored permanently
- Allows CPU to access data from hard disk
- Volatile -> Loses content when power is turned off
What is ROM?
- Holds programs that start up the computer (boot up programs) and programs that have information about the hardware
- Non-Volatile -> ‘Remembers’ state
- Cannot easily be overwritten
What are the main differences between RAM and ROM?
RAM
• Loses its data when computer is switched off
• Temporary storage that is constantly being written to and read from
ROM
• Retains its data even when computer is switched off
• ‘Read only’ and cannot easily be changed by the program or user
What does RAM stand for?
Random Access Memory
What does ROM stand for?
Read Only Memory
What is virtual memory?
When there is not enough space on RAM, an area of the hard disk is used for temporary memory. This is, however, much slower than RAM.
What are some examples of magnetic devices?
- Tape Drive / Digital Audio Tape
- Hard Disk Drive
- Floppy Disk Drive / Disk
How do magnetic devices work?
By setting an area of magnetic coated material to NS or EW setting. This can then be scanned by a read/write head.
What are some examples of optical devices?
- CD - Rom, CD - R, CD - RW
- DVD - Rom, DVD - R/RW/RAM
- Blu-Ray
- HD-DVD
How do optical devices work?
They are read using light - usually laser light (lighter and darker areas are detected). Commercially, troughs are cut into the disk surface. At home, colour change is used.
What are some examples of solid state technology?
- Solid State Hard Disc
- Memory Stick (USB)
- Flash Memory (camera type)
How does solid state technology work?
There are no moving parts (solid state). Data is stored by applying a voltage to a grid of transistors and enabling or disabling current. NAND gates are used.
Why are magnetic drives not appropriate for portable devices?
Moving Parts Slower data transfer times Less robust Larger in size Uses more power than a solid state
What are buses?
The circuits/internal wiring of that connect the processor and main memory.
Remember to look at the diagram for how the CPU moves around instructions.
Pg 9 of textbook
Describe the fetch-execute cycle.
• Instruction fetched from main memory
• Control unit decodes instruction
• ALU executes instruction
(There may be storage in main memory after this)
What is the unit for clock speed?
Gigahertz (GHz)
What is clock speed?
The number of cycles per second that a system is capable of.
What is latency?
The time taken waiting for components to respond.
Summarise the purpose of the CPU.
- Fetching data and instructions from main memory
- Decoding and executing instructions
- Performing calculations
- Managing the movement of instructions and data to and from peripheral devices
What factors affect the performance of a computer/CPU?
- Clock speed
- Number of cores
- Cache memory
- Architecture - how large the gaps between transistors are and how many transistors there are
- Speed of other components - can create bottlenecks
What does the control unit do?
Sends electrical signals to components to control them.
What does the ALU do?
Carries out all the logic and calculations.
What is a quad-core processor?
When there are 4 processing units within the CPU.
With what factors can different types of memory be compared?
- Access speed
- Price
- Volatility
Why does the processor load programs into the main memory before executing them instead of getting them straight from the hard drive?
Access speed from the hard drive is very slow, so the main memory allows the computer to run faster.
What is needed if many programs are running at once?
Lots of RAM.
Sort these by access speed: Main memory, Cache, Virtual memory, Processor
1) Processor
2) Cache
3) Main memory
4) Virtual memory
Give an example of volatile and non-volatile memory.
Volatile: RAM
Non-volatile: Hard disk
What is the bootstrap loader?
- The piece of software that loads the operating system.
* It’s the first program that is loaded into main memory from ROM when a computer is switched on.
What is secondary storage?
- Devices such as hard disks and memory sticks which are not the main memory.
- They are long term and non-volatile.
(Basically any storage that is not main memory)
What is the need for secondary storage?
To allow files to be stored for a long period of time. Main memory can’t do this.
Describe how a program is loaded.
- Program is loaded into main memory
- The processor is given the address of the program in main memory
- The processor can run the program instruction by instruction
- Each time the processor fetches an instruction, decodes it, and then runs it
What is the fetch-execute cycle?
The cycle that the CPU goes through as it fetches instructions from memory, decodes them and executes them. This repeats.
What is the primary memory?
Main memory (RAM)
What factors must be considered when picking a type of secondary storage for a specific purpose?
- Capacity
- Access speed
- Portability
- Durability
- Reliability
What are some common secondary storage types?
- Optical
- Magnetic
- Solid state
What is the reliability of a storage technology?
How long it will last.
What is the durability of a storage technology?
How easily it is damaged (e.g. by dropping)
Evaluate magnetic memory in terms of cost, capacity, access speed, portability, durability and reliability.
- Cost: Cheap
- Capacity: High
- Speed: Slow
- Portability: Usually not very portable
- Durability: Vulnerable to movement, heat and magnetic fields
- Reliability: Very good
Evaluate optical memory in terms of cost, capacity, access speed, portability, durability and reliability.
- Cost: Cheap
- Capacity: Low
- Speed: Very slow
- Portability: Portable
- Durability: Not too durable -> Not good for long term
- Reliability: Good, but degrades over time
Evaluate solid state memory in terms of cost, capacity, access speed, portability, durability and reliability.
- Cost: Expensive
- Capacity: Medium
- Speed: Fast
- Portability: Portable (except internal solid state / flash storage)
- Durability: Very durable
- Reliability: Very reliable
Aside from portable storage such as USB drives, what can solid state memory be used for?
- As a replacement for a hard disk in notebooks and tablets (internal solid state) or cameras and phones (memory cards) since it is a non-volatile type of RAM.
- It can’t be used as a replacement for the main memory since the access speed is too slow.
What is the processor?
The component in the computer that fetches, decodes and executes instructions.
What is flash memory?
Basically, it is solid state memory, so it has no moving parts. The two terms are used synonymously sometimes.
Compare the different types of storage by capacity?
Optical: Low
Solid state / Flash: Medium
Magnetic: High
Describe how memory changes are advancing computers.
- Capacity and density are increasing -> Increased number of transistors -> Doubling every 12 to 17 months
- Speed -> Flash memory is replacing magnetic hard disks
- Cost of memory decreasing
What is an input device?
Any device that helps to input data into a computer.
What is an output device?
Any device that outputs data from the computer to the user.
How does a keyboard work?
Pressing a key generates a character code which is sent to the computer.
How does a mouse work?
The mouse detects movements using either a ball or a reflected light source under the mouse.
What is OMR and how does it work?
- Optical Mark Recognition is used for detecting answers on multiple-choice tests, forms and lottery tickets.
- Works by reflecting light off the boxes, which reflect less light if they are shaded.
What is OCR and how does it work?
- Optical Character Recognition is similar to OMR, but is used to convert markings into text
- Works by reflecting light off the markings
What is a sip-and-puff switch?
An assistive input device which detects breathing in order to control a computer for a disabled person.
Name two types of monitor.
- CRT Monitor - Cathode Ray Tube
* TFT Monitor - Thin Film Transistor
What is a CRT monitor and where is it used?
- Cathode Ray Tube Monitor
- Heavy, old-fashioned monitor that takes up a lot of space
- Used only in places like factories because they are more robust
What is a TFT monitor and where is it used?
- Thin Film Transistor Monitor
* Newer, thinner type of screen which most people have at home on laptops
What is LCD technology?
Liquid Crystal Display - an earlier version of TFT screens
Name four types of printer.
- Inkjet printer
- Laser printer
- Dot-matrix printer
- Braille printer
How does an inkjet printer work and what are the advantages and disadvantages?
- Works by spraying ink onto the page
- Advantages: Good for low cost printing of text
- Disadvantages: Slow, Smudged by highlighter
How does a laser printer work and what are the advantages and disadvantages?
- Laser beam is moved along page, creating static charge. Toner powder is attracted to this and is sealed by heat rollers.
- Advantages: Faster, Quieter, Doesn’t smudge, Better images
- Disadvantages: Expensive
What is a dot-matrix printer and how does it work?
- Printers which existed before inkjet and laser printers
* Work like a typewriter as a print head has to strike the paper through an ink ribbon to print text
What is a Braille printer?
An impact printer that creates raised dots to allow blind people to read.
What is an actuator?
A device that performs some sort of action (based on inputs). E.g. A voice sensor might trigger a motor to close some curtains
Give some examples of inputs in a supermarket checkout.
- Barcode scanner
- Scales
- Touch-screen
- Keypad
- Chip & pin reader
- Magnetic stripe reader
Give some examples of outputs in a supermarket checkout.
- LED display
- Receipt printer
- Speaker
- Touch-screen
Give some examples of inputs in an automated home for a disabled person.
- Microphone
- Pressure sensor
- Movement sensor
- Digital camera
- Touch-screen
Give some examples of outputs in an automated home for a disabled person.
- Lights
- Motors
- Monitor
- Speakers
- Touch-screen
- Switches
Give some examples of inputs for monitoring a patient in hospital.
- Heart rate sensor
- Blood pressure sensor
- Breathing sensor
- Temperature sensor
- Touch-screen
- Buttons
Give some examples of outputs for monitoring a patient in hospital.
- Warning lights
- Speakers
- Monitor
- Printer
- Touch-screen
- LED display
What is a Boolean expression?
An expression that is either true or false (e.g. X=10)
What is a truth table?
A table that shows all the possible combinations of inputs and their logical
output value.
What are the main logical operators?
AND, OR, NOT
What is a logic diagram?
A diagram of a circuit showing logic gates with inputs and the output these
generate.
What is a transistor?
A tiny switch that can be set to on or off.
Why do computers use binary?
They contain thousands of transistors which can be set to either on or off.
Remember to revise truth tables.
Pg 27 of textbook.
What is the circuit symbol for an AND gate?
A D shape.
See Pg 28 of textbook
What is the circuit symbol for an OR gate?
A D shape with a curved left edge.
See Pg 28 of textbook
What is the circuit symbol for a NOT gate?
A triangle with a circle after the point.
See Pg 28 of textbook
How can an AND gate symbol be turned into a NANAD gate symbol?
A small circle is added just after the symbol.
What is the best way to complete a table for a complex logic gate, like a NAND gate?
Work through it stage by stag. E.g. Write the results of AND first, and then reverse these to get NAND