Components of a Computer Flashcards
Arithmetic Logic Unit
Carries out calculations and logic (Comparisons of binary)
Control Unit
Control Unit is a register in the CPU that controls and co-ordinates the activity of the CPU. Control signals are sent along the control bus between the control unit and the other components of the computer.
Registers
Registers are small storage locations used to hold data temporarily. They have high read and write speeds.
Program Counter
stores the address of the next instruction
Memory Address register (MAR)
stores the address of instructions and data that need to be fetched from memory
Memory Data register (MDR)
stores the data which is to be sent or fetched from memory
Current instruction register
stores the actual instruction that is being decoded
Accumulator
stores the result of calculations made by the ALU
Interrupt register
generates and detects interrupts
Buses
the communication channels between the CPU and the memory and other components.
Address Bus
A one directional bus that transmits memory addresses that are used as operands in programming instructions, so that data can be retrieved from main memory
Data Bus
A bi-directional path for moving data and instructions between system components
Control Bus
A bi-directional bus to transmit command, timing and specific status information between system components
system bus
collective term for address, data and control bus
fetch decode execute cycle
PC MAR Address Bus Memory Data bus MDR CIR Decode Unit
Fetch
- The address of the next instruction is copied from the PC to the MAR
- The fetch signal is sent across the control bus. The content of the MAR are transferred across the address bus.
- The contents of the memory location stored in the MAR are sent across the data bus and stored in the CIR
- the PC increments by 1
Decode
The contents of the CIR are sent to the CU and divided. The Opcode tells you the instruction to be carried out and the operand stores the address of any data which might be needed, the operand is sent to the MAR and the data is fetched from memory and stored in the MDR
Execute
The appropriate instruction/ opcode is carried out on the data/ operand
program branch reason
occurs due to an if statement, function, procedure call or loop.
program branch result
the next instruction held in the PC is not carried out
Clock speed
Indicates the number of instructions the CPU can process per second.
Clock speed Unit
Hertz (usually gigahertz)
Positives of increasing clock speed
you can carry out more instructions in a given time; improved performance
Negatives of increasing clock speed
more heat generated meaning computers must be cooled (either with heat sync/fan or water/oil cooling)
Cache memory
Special high speed memory used by a computer. Stores frequently used data and instructions.
Positives of increasing cache size
less time fetching data; improved performance
negative of increasing cache size
expensive
Multiple cores
Multiple CPUs working on a single computer
positives of multiple cores
may speed up processing
negatives of multiple cores
complicated circuitry (more expensive) doesn't always improve performance
Von neumann architechture
- instructions and data share the same memory space
- instructions and data served by the same system bus
- instructions and data are stored in the same format
- single CU and ALU
Harvard architecture
- instructions and data are stored in separate memory units
- instructions and data are each served by their own buses
- allows for pipelining
Parallel processing/concurrent processing
multiple processors working at the same time
SIMD
(parallel processing, single instruction multiple data) a single processor carries out an instruction on multiple data
MIMD
multiple instruction multiple data, multiple instructions are carried out on multiple data using multiple
pipelining
overlapping stages in the fetch-execute cycle.
fetching the next instruction while the first instruction is being decoded
distributed computing
when each computer on a network takes on part of a problem
pipelining advantages
improves efficiency
pipelining disadvantages
only good if you can predict subsequent instructions. If the wrong instruction is fetched it has to be thrown away wasting time.
RISC
reduced instruction set computing. Small Instruction set where each instruction is performed in one clock cycle.
CISC
Complex instruction set computing, large number of instruction each taking multiple machine cycles to carry out.
RISC advantages
very simple hardware/circuitry less silicon needed
each instruction is a single machine cycle therefore pipelining can be used to improve performance
lower energy consumption (can go into sleep mode)
RISC Disadvantages
complicated software
more machine code (not as many instructions)
lower clock speed, not good with complicated tasks
GPU
Graphical processing unit.
used for rendering graphics and processing many parallel streams of data at the same time.
Co-processor
a processor designed for specific purposes which can carry out specialised tasks more quickly than a regular microprocessor. execute concurrently with the main CPU
CPU vs GPU
CPUs excel at doing complex instructions on small data sets whereas GPUs excel at simple manipulations to much larger data sets
Chip Multi Processor (CMP)
a single chip which contains 2 or more independent CPUs which can execute independent instructions
opcode
the actual instruction
operand
the data the instruction applies to
instruction set
a group of instructions that a computer can carry out. unique for computers.
clock
a device that generates a timing signal which changes at a regular frequency.
What determines the format of a machine code instruction
- the word size
- the width of the address bus
data bus width (bottle neck data bus)
same as the computers word size
word
equal units of memory. each with separate memory addresses.
What does the width of the address bus determine (bottle neck address bus)
the maximum possible memory addresses of the system
Address bus average width
32 bits
Clock signal
used to synchronise operations
Bus request signal
the CPU has granted access to the address/data bus
Memory write signal
causes data on the data bus to be written into the addressed location in RAM
Memory read signal
causes data from the addressed location in RAM to be placed on the data bus
Control signals
- Memory read
- memory write
- bus request
- clock signal
Contemporary processor architectures
Modern high-performance CPU chips incorporate aspects of both Von Neumann and Harvard architectures
e.g. memory for both data and instructions but cache is divided into instruction and data and multiple parallel data buses
uses of a GPU
- Machine learning
- Oil exploration
- Image processing
- Financial transactions
need for secondary storage
Can retain contents when the computer’s power is turned off. This includes the Hard drive, optical media and solid state storage.
input device
any device which allows you to get information from the outside world into a computer system so that it can be stored in a digital form
Input device examples
Key board Card readers Microphones Cameras Barcode scanners OMR/OCR Mice Sensors Magnetic stripe reader touch pads
Output device
any device which is able to take data which is stored in a digital form and convert it into another format which wee can process e.g. sound, images or vibrations
Output device examples
speakers plotters printers monitors actuators projectors LEDs
example of input AND output device
touch screen or games controllers
storage device
any computer hardware used for temporary or permanent storage of data. They can be internal or external to a computer.
internal storage examples
magnetic hard drive, ROM, RAM, internal solid state drive
external storage examples
DVDs, CDs, Blue-ray, USB pens, SD card, Portable solid state drive, Mass storage tape, cloud storage.
three types of secondary storage
magnetic, optical, solid-state
magnetic storage examples
magnetic tape, floppy disks hard disk drives
magnetic storage
where metal disks called platters are magnetised. a read-write head moves very close to the platter and is able to detect and modify the magnetic properties of the platter.
magnetic storage positives
cheap large capacity
magnetic storage negatives
slow access speed
moving parts make it vunerable
optical storage examples
CDs, DVDs, Blue-ray disks
optical storage
data is written to the surface of a reflective disk using pits (depressions) and lands. A laser beam passes over the surface of a land and the light beam reflected back is interpreted as binary values.
Solid-State examples
USB pens and SD cards
Solid-State Storage
uses flash memory so data is read and written directly to blocks and pages on the silicon micro-chips
Optical storage advantages
Cheap
light weight and portable
Resilient
Optical storage disadvantages
slow access speed
the surface of the disk degrades over time
scratches can corrupt data
Solid-State storage advantages
Durable
No moving parts
fast access time
Solid-state storage disadvantages
Expensive
limited lifespan - each section can only be written to a set number of times
RAM acronym
Random Access Memory
ROM acronym
read only memory
RAM
fast read-write volatile memory that stores the data and programs the computer is currently using e.g. OS, Programs currently in use, data that the programs are accessing
ROM
non-volatile read only memory embedded into the motherboard of a computer and used to hold important instructions the computer needs for starting up
Virtual storage
(cloud storage) when data is stored over the internet on cloud storage instead of on local storage device
virtual storage advantages
data can be accessed anywhere so long as you have internet access
data can be easily shared between devices without having to copy the data and transport it
the capacity is limitless
virtual storage disadvantages
Expensive if you want to store large amounts of data
Access times can be slow if there is poor internet connection
Buffer
a region of a physical memory storage used to temporarily store data while it is being moved from one place to another
Uses of CISC
what most desktops use, Intel or AMD
Uses of RISC
used in most smart phones and tablets based around an ARM processor
Input devices for limited mobility
- Foot mouse/pedal
- Camera/eye tracker
- Microphone
- Puff/suck switch
Foot Mouse
press key/click button with their foot to send signal.
Camera/eye tracker
Move/blink to send signal
Microphone
Make sound to send signal
Puff/Suck Switch
blow/suck to send signal.
types of interrupts
- hardware
- software
- Input/output
polling
The CPU checks with each device if it needs attention. Inefficient and wastes time as some devices will not want attention when called upon
Hardware interrupt
- shut down triggered by user pressing on/off button
- memory parity error (when comparisons don’t match)
- internal clock triggers suspending a running process
Software interrupts
- Arithmetic overflow
- Illegal instruction encountered
Input/output interrupt
- Buffer almost empty
- Signals the completions of data transfer between devices
Timer Interrupts
Triggered regularly by a timer, to indicate that it is the turn of the next process to have processor time- this allows for multi tasking
Why Do RISC processors result in increased battery life
- smaller instruction set
- fewer transistors/ less complex circuitry
- less power required
motion sensors
- Alitmeter measures when the person ascends/descends
- accelerometer measures the forces on a device as it moves
- gyroscope measures if a user turns
characteristics of CISC
- Each instruction can take up more than one cycle
- Many different instructions available
- Many addressing modes available
- Single register set
- Instructions have a variable format
- Complicated processor design
- Integrated circuit is expensive
characteristics of RISC
- An instruction performs a simple task
- Limited number of instructions available
- Simple processor design
- Complex tasks can only be performed by combining more than one instruction
Why are GPUs better at rendering graphics than CPUs
- CPUs are general purpose processors whereas GPUs are designed specifically for graphics and so likely to have built in circuitry / instructions for common graphics operations.
- GPUs are able to perform an instruction on multiple pieces of data at one time which means it can perform transformations to onscreen graphics quicker than a CPU
advantage of RISC over CISC
- programs run faster due to simpler instructions
- Cheaper
similarities between paging and segmentation
- divide up memory
- Both use indexes
- assigned to memory when needed
- allow programs to run without sufficient memory (virtual memory)
what LMC instructions change the contents of the ACC
- LDA
- INP
- SUB
- ADD
Which instruction set has more addressing modes
CISC
Which instruction set has more transistors?
CISC
How does a GPU apply multiple instructions to multiple data simultaneously
it has multiple ALUs