Components of a computer and their uses Flashcards

1
Q

Registers

A

Registers are small storage locations used to hold data temporarily. They have high read and write speeds.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Current Instruction Register

A

Holds the current instruction that is being executed, divided into operand and opcode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Memory Data Register

A

Stores the data which is to be sent or fetched from memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Memory Address Register

A

Stores the address of instructions and data that need to fetched from or sent to memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Opcode

A

The actual instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Operand

A

the data the instruction applies to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Program Counter

A

stores the memory address of the next instruction.
it is incremented after an instruction has been read from memory and interpreted

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Arithmetic Logic Unit

A

completes all the arithmetic (addition and subtraction) and logical operations (including AND, NOT, OR and XOR) as well as binary shifts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Control Unit

A

Control unit is a register in the CPU that controls and coordinates the activity of the CPU.
Control signals are sent along the control bus between the control unit and the other components of the computer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Jobs of the control unit

A
  • Controlling and coordinating the activities of the CPU
  • Managing the flow of data between the CPU and other devices
  • Accepting the next instruction
  • Decoding instructions
  • Storing the resulting data back in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Address Bus

A

A one directional bus
It transmits memory addresses specifying where data is to be sent to or retrieved from in memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Bottleneck address bus

A

the width of the address bus determines the maximum possible capacity of the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Address bus average width

A

32 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the width of the address bus determine?

A

the max possible memory addresses of the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Data Bus

A

A bi-directional bus for moving data and instructions between system components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Buses

A

the communication channel between the CPU, the memory and other components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

System bus

A

Address Bus, Data Bus and Control Bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Bottleneck Data Bus

A

A wider bus can transmit larger values/more bits per instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Data bus width

A

same as the computers word size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Control Bus

A

A bi-directional bus used to transmit control signals between internal and external components.
It coordinates the use of the buses (data and address).
It provides the status info between system components.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Width of the bus

A

is the number of parallel wires the bus has

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

The number of parallel wires the bus has

A

is the number of bits that can be transferred simultaneously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Control Signals

A
  • memory read
  • memory write
  • bus request
  • bus grant
  • clock signal
  • interrupt
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Interrupt

A

A device sends a signal on the control bus to show the CPU it needs attention

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Memory read signal

A

causes data from the addressed location in RAM to be placed on the data bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Memory write signal

A

causes data on the data bus to be written into the addressed location in memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Clock signal

A

Used to synchronise operations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Bus grant signal

A

Indicates that the CPU has granted access to the data bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Bus request signal

A

indicates that the device is requesting the use of the data bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Fetch-decode-execute cycle

A
  1. Load the address in PC into MAR
  2. Increment the PC by 1 (using ALU)
  3. Load instruction given by memory address in the MAR into MDR - done via the data bus
  4. Load instruction in MDR into CIR
  5. Decode instruction in CIR by splitting into operand and opcode
  6. Execute instruction
  7. Cycle repeats itself
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Factors affecting the CPU performance

A

number of cores
cache
clock speed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

clock speed

A

indicates the number of instructions the CPU can process per second

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

clock speed units

A

hertz (one cycle per second)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

clock

A

a device that generates a timing signal that changes at a regular frequency.
It is used to synchronise communication between the components of the CPU and the rest of the system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Pros of increasing clock speed

A

can carry out more instructions in a given time - which increases performance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Cons of increasing clock speed

A
  • requires more energy, which increases costs
  • more energy = more heat is generated, so the computer must be cooled by cooling systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Multiple cores

A

mean multiple CPUs are working on a single computer, which means the processor can perform more than one fetch-decode-execute cycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Pros of multiple cores

A

It may speed up processing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

Why may additional cores be redundant?

A
  • if the software is only written for one core
  • if the output of one operation is required to perform the second operation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

Cons of multiple cores

A
  • multiple cores = more materials needed, which increases costs
  • multiple cores = more energy/power needed, which increases costs and generates more heat, so need greater cooling systems
  • has a more complicated circuitry
  • doesn’t always improve performance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

Cache memory

A

Special high-speed memory used by a computer. Stores frequently used instructions and data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

Why is cache memory better than RAM?

A

cache operates faster —> than main memory —> as data is transferred —> in + out of cache memory —> more quickly —> as it is closer to the CPU —-> which makes CPU more efficient —> as less time is spent —> waiting for data —> to be transferred

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

Pros of cache

A
  • less time spent fetching data, which improves performance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

Cons of cache

A

expensive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

What happens when cache is used up?

A

unused instructions are replaced

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

Pipelining

A

Involves fetching one instruction, whilst the one before is decoded, and the one before that is executed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

Pros of pipelining

A

improves the efficiency of CPU, because it can process more instructions simultaneously, while reducing the delay between completed instructions

48
Q

Cons of pipelining

A

only useful if you can predict subsequent instructions. If the wrong instruction is fetched (ie due to a jump) it has to be thrown away, wasting time

49
Q

Contemporary Processor Architecture

A

Incorporate aspects of Harvard and Von Neumann’s architecture.
- same memory is used for both instructions and data
- cache is divided into instruction and data
- there are multiple parallel data buses

50
Q

Harvard architecture

A
  • instructions and data are stored in separate memory units
  • separate set of system buses for both instructions and data
51
Q

Pros of Harvard architecture

A
  • can simultaneously store data whilst fetching instructions, making it faster
  • memory units can be different sizes, which can make more efficient use of space
52
Q

Cons of Harvard architecture

A
  • is more expensive as requires more RAM
53
Q

Von Neumann architecture

A
  • a shared memory for both data and instructions
  • shared buses between data and instructions
54
Q

Pros of Von Neumann architecture

A
  • programs can be optimised in size
  • cheaper to develop, as the control unit is easier to design
55
Q

Cons of Von Neumann architecture

A
  • Von Neumann bottleneck
56
Q

Store instruction

A

STA

57
Q

End instruction

A

HLT

58
Q

Branch if zero or +ve instruction

A

BRP

59
Q

Branch always instruction

A

BRA

60
Q

Output instruction

A

OUT

61
Q

Load instruction

A

LDA

62
Q

Add instruction

A

ADD

63
Q

Subtract instruction

A

SUB

64
Q

Branch if zero instruction

A

BRZ

65
Q

Data location

A

DAT (put at the very end of code in the format of variable name, DAT, value)

66
Q

Input instruction

A

INP

67
Q

RISC

A
  • reduced instruction set computing
  • contains a small instruction set where each instruction is performed in one clock cycle
68
Q

Uses of RISC

A

Smartphones and tablets using ARM processors

69
Q

Pros of RISC

A
  • simpler hardware
  • single machine cycle per instruction
  • smaller in size as less complex circuitry, so less silicon, so cheaper to produce
  • lower energy requirements as smaller, so less heat
  • smaller number of simple, standardised instructions that are of a fixed length
  • can support pipelining*
70
Q

Cons of RISC

A
  • fewer addressing modes available
  • heavy use of RAM
  • lower clock speed - not good for complex tasks with large code sizes
  • as the emphasis is on the software, the compiler has to do more work
71
Q

Why do RISC processors result in increased battery life?

A
  • smaller instruction set
  • fewer transistors/ less complex circuitry
  • less power required
72
Q

CISC

A
  • complex instruction set computing
  • large number of instructions each taking multiple machine cycles to carry out
73
Q

Uses of CISC

A

laptops or desktop computers

74
Q

Pros of CISC

A
  • emphasis is on the hardware, so compiler has to do less work (compiles faster)
  • makes more efficient use of RAM than RIC
  • multiple addressing modes available
  • has higher clock speeds, as has smaller code sizes, as typically an instruction to carry out the process
  • large number of complex instructions of variable length
75
Q

Cons of CISC

A
  • has more complex hardware
  • physically larger, due to more complex circuitry, so requires more silicon to make, so more expensive
  • greater energy consumption = more heat = greater cooling needed
  • multiple clock cycles per instruction
  • can’t make use of pipelining*
76
Q

MIMD

A
  • multiple instructions multiple data
  • multiple instructions carried out on multiple data using multiple cores
77
Q

SIMD

A
  • single instruction multiple data
  • a single processor carries out a single instruction on multiple pieces of data (parallel processing)
78
Q

GPU

A
  • graphics processing unit
  • used for rendering graphics and processing many parallel streams of data simulatenously
79
Q

CPU vs GPU

A
  • CPU excels at complex instructions for a small data set
  • GPU excels at simple instructions for a large data set
80
Q

GPU uses

A

machine learning (AI), graphics, gaming, data analysis, oil exploration, weather analysis

81
Q

INPUT devices

A

keyboard
mice
microphone
webcamera
barcode scanner
card reader

82
Q

OUTPUT devices

A

speaker
printer
monitor
projector

83
Q

example of input and output device

A

touch screen
games controller

84
Q

what is an input device?

A

gathers data on the outside world and places it into a computer system

85
Q

what is an output device?

A

takes data which is stored in a digital form and converts it into another form we can process (ie sound, images or vibrations)

86
Q

what is a storage device?

A

any device that is used for either temporary or permanent storage of data - can be internal or external

87
Q

STORAGE devices

A

SD card
Blu-ray
DVD
CD
USB/flash drive
magnetic hard drive
portable SSD
cloud storage

88
Q

3 types of secondary storage devices

A

magnetic
optical
solid-state/flash

89
Q

Optical storage

A
  • 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 a binary value
90
Q

Pros of optical storage

A
  • cheap
  • highly portable + lightweight (so easy to post or carry)
91
Q

Cons of optical storage

A
  • surface of disk degrades over time with exposure to sunlight
  • scratches can corrupt data
  • low capacity
  • slow access speeds
92
Q

magnetic storage examples

A

magnetic tape, floppy disk hard disk drives

93
Q

magnetic storage

A
  • where metal disks called platters are magnetised
  • a read-write head moves over the surface of the platter and is able to detect and modify the magnetic properties of the platter
94
Q

Pros of magnetic storage

A
  • cheaper than SSDs
  • high capacity
95
Q

Cons of magnetic storage

A
  • can be affected by magnetic fields and heat (so may require expensive cooling systems)
  • slower than SSDs (as they contain moving parts)
  • less durable (as will eventually fail due to moving parts)
  • not robust if dropped (due to moving parts)
96
Q

solid state storage

A

uses flash memory so data is read and written directly to blocks and pages on the silicon micro-chips

97
Q

examples of solid-state storage

A
  • USB pens
  • SD cards
  • SSDs
98
Q

Pros of solid state

A
  • durable (have no moving parts)
  • robust if dropped (due to no moving parts)
  • portable and take up very little space (due to lack of moving parts) reducing physical device size
  • fast access times
  • high capacity
99
Q

Cons of solid state

A
  • expensive
  • limited lifespan (as limited number of read/write cycles)
100
Q

Why do we need secondary storage?

A
  • It is a non-volatile, long-term form of storage
  • it is used to keep programs and data indefinitely (otherwise all our files and apps would be lost when the power is switched off)
101
Q

Forms of primary storage

A

RAM
ROM
cache memory

102
Q

RAM

A

fast, read-write, volatile memory that stores the data and programs that the computer needs whilst in operation or is using (e.g. OS)

103
Q

ROM

A
  • non-volatile, read-only memory embedded into the motherboard of a computer
  • used to hold the bootstrap and BIOS of the computer
104
Q

Virtual memory

A
  • when a small section of the hard disk is reserved to act like RAM
  • when the program in virtual memory is needed, it is swapped with something else in RAM
105
Q

Explain why getting more RAM would be preferable to using virtual memory?

A
  • access to data in RAM —> faster than having to swap —> programs in + out of RAM —> before accessing them
  • constantly swapping —> programs + data —> between RAM + the hard disk —> can cause disk thrashing —> takes time + decreases performance
  • reading data —> from a hard disk —> is slower than —> from RAM
106
Q

Virtual storage (cloud)

A

when data is stored over the internet in the cloud rather than in a local storage device

107
Q

Examples of virtual storage

A

DropBox, OneDrive, Google Drive

108
Q

Process to get to CLOUD

A

RAID —> NAS —> SAN —> CLOUD

109
Q

NAS

A
  • network accessed storage
  • contains multiple hard drives in a RAID configuration (to create backups of your data)
110
Q

Uses of NAS

A

as a home server (to share files, videos etc)

111
Q

Pros of NAS drivers

A
  • built for 24/7 action
  • cheaper than a PC drive
  • heat resistant
  • can serve the data needs of multiple people on a network simultaneously
112
Q

SAN

A

is multiple NAS drivers

113
Q

Pros of CLOUD

A
  • Flexible storage is offered —> can increase when needed
  • You do not need to —> purchase or maintain —> expensive hardware
  • The Cloud storage provider —> is responsible for the security —> of your data + regular backups
  • One cloud storage centre —> is more environmentally friendly —> than millions of individual servers
  • You do not need —> networking skills or maintenance workers
  • Easy to share files between devices
113
Q

What is cloud?

A

involves renting someone else’s SAN

114
Q

Cons of CLOUD

A
  • Need a reliable Internet connection —> to access servers
  • Have no direct control —> over the security —> of your data
  • Keeping your data —> on another company’s server —> may cause issues of ownership
  • You may be responsible —> for any data security breaches —> even if you have no direct control —> over the security of your data
  • Subscription fees —> may be expensive