1.1 The characteristics of contemporary processors, input, output and storage devices Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Why was assembly language developed?

A

To allow humans to input instructions easily, without having to remember long strings of 1’s and 0’s.

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

What are Mnemonics?

A

Simplified instructions, used in assembly language, to easily write instructions. E.g. ADD, SUB, AVG.

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

Benefits of Mnemonics

A

Simplified

Easier for a developer to remember compared to binary instructions

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

What is an Opcode?

A

Part of an instruction which tells a computer what to do with data.

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

Components in a CPU:

A

The control unit
Buses
Arithmetic/logic unit (ALU)
Registers

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

What is the main function of the control unit?

A

Coordinates the activities of a CPU, directing the flow of data in, within and out of the CPU.

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

What is a bus?

A

A set of parallel wires that connect two or more components of a computer. Usually consists of 8, 16, 32 or 64 lines.

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

What are the main buses that connect the CPU to the memory and the direction of data flow along these buses?

A

The address bus (From CPU to memory only)
The data bus (Both directions)
The control bus (Both directions)

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

What is the function of the address bus?

A

Carries the address of a specific memory location that the CPU wants to access.

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

What is the function of the data bus?

A

Carries data from the memory to the CPU to be processed

Carries processed data from the CPU to the memory

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

What is the function of the control bus?

A

Transmits control signals between the CPU to control timings, status information and bus requests.

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

What is the function of the arithmetic/logic unit (ALU)?

A

Carries out arithmetic and logic operations on data.
Can ADD, SUBTRACT, MULTIPLY and DIVIDE numbers
Can carry out Boolean logic operations

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

What are registers?

A

A memory location in a CPU that holds a small amount of data.
Can be an instruction, a storage address, or other items of data.

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

What is the function of the program counter?

A

Holds the address of the next instruction to be executed.

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

What is the function of the current instruction register?

A

Holds the instruction that is currently being executed.

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

What is the function of the memory address register?

A

Holds the memory address for which data is to be fetched from or written to.

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

What is the function of the memory data register?

A

Holds data that is read from or written to memory.

Acts like a buffer between the CPU and the memory so that they can act independently of each other.

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

Describe the fetch, decode, execute cycle.

A

PROGRAM COUNTER tells CPU address of next instruction, sends address to RAM through ADDRESS BUS.

Instruction is fetched from RAM through DATA BUS to CIR.

Instruction is decoded by control unit and data to be operated on is fetched using BUSES and sent to the ACCUMULATOR.

ACCUMULATOR carries out operation on the data.

Processed data is sent back to the RAM through DATA BUS.

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

What three factors affect the performance of a processor?

A

> Clock speed
Number of cores
Amount of cache

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

What is clock speed?

A

The speed at which a CPU can execute a cycle of processes.

Cycles per second, Hertz.

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

What is a limitation of increasing clock speed?

A

The faster the clock speed, the more heat is generated by the CPU.

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

What is cache?

A

A small amount of fast memory which is connected directly to the CPU which stores recently accessed data.

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

How does cache speed up the processor?

A

It is quicker to retrieve information from cache than it is to retrieve from the RAM.

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

What are cores?

A

Cores are small processors which make up the entire processor.

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

Why is having more cores faster?

A

More information can be processed at a time.

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

Why does doubling the number of cores not double performance?

A

Because the cores may have a lower clock speed due to size and temperature and some speed is lost as the cores have to communicate with each other.

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

What is a limitation of increasing the number of cores?

A

More cores increases the complexity of the CPU and so software has to be written to make use of the extra cores.

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

Describe the Von Neumann architecture.

A

Instructions and data are stored in the same location and share the same bus.
Fetch decode execute cycle is followed in a linear format.
Each cycle must be completely finished before the next one can begin.

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

Describe the Harvard architecture.

A

Instructions and data are stored in separate memory locations and have a different set of busses for each.
This allows for the next instruction to be fetched while data is being written back to RAM.

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

Where are Von Neumann architecture processors found?

A

Conventional PCs and servers

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

Where are Harvard architecture processors found?

A

Digital signal processing, mobile communication systems, speech and image processing systems.

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

Compare the sizes of programs for Von Neumann and Harvard architectures.

A
  • Optimised programs for Von Neumann

- Large programs for Harvard

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

Compare the speed and cost of Von Neumann and Harvard architectures.

A
  • Von Neumann is slower but cheaper

- Harvard is faster but more expensive

34
Q

Give two examples of contemporary architectures.

A

Parallel processing, MIMD, distributed processing.

35
Q

What does CISC stand for?

A

Complex Instruction Set Computer

36
Q

What does RISC stand for?

A

Reduced Instruction Set Computer

37
Q

Describe a CISC processor.

A

Complicated hardware allows large instruction sets to be built into the CPU. This means that it is able to understand complicated instructions and so code can consist of less lines.

38
Q

Describe a RISC processor.

A

Uses a compiler (software) to translate high level code into lots of short, easy to execute lines of machine code.

39
Q

What type of processor uses less RAM?

A

CISC uses less RAM - less lines of code required

RISC uses more RAM - more lines of code required

40
Q

What type of processor uses more transistors?

A

CISC uses more transistors.

41
Q

What type of processor uses more registers?

A

RISC uses more registers and less transistors.

42
Q

What does the transistor count mean for the size, energy usage and heat output?

A

More transistors (CISC) means larger, less power efficient CPUs that produce more heat.

RISC processors are smaller, more power efficient and produce less heat.

43
Q

How many cycles does a CISC instruction take to complete and what does this mean?

A

Multiple cycles - makes pipe lining difficult

44
Q

How many cycles does a RISC instruction take to complete and what does this mean?

A

1 - this makes pipe lining easy.

45
Q

Where are RISC processors often found?

A

Portable devices (think power, size, heat)

46
Q

Where are CISC processors often found?

A

Desktop computers (think power, size, heat)

47
Q

What is sequential processing?

A

When instructions are carried out, one at a time, in the order in which they are received.

48
Q

What is a disadvantage of sequential processing?

A

It is very slow

49
Q

What is pipe-lining?

A

When an instruction is fetched while the instruction before it is being decoded, and the instruction before that is being executed.

50
Q

How does pipe-lining improve efficiency?

A

It means that for each step of the fetch, decode, execute cycle, there is always something happening.
The CPU does not have to wait for new data to be fetched and decoded before it can be executed as it is ready and waiting.

51
Q

How do branches in programs affect pipe-lining?

A

The pipeline controller has to predict where the branch will jump the program to in order to keep the pipeline full with the correct instructions.

If the pipeline controller is wrong, the pipeline has to be flushed, which wastes time.

52
Q

What does SIMD stand for?

A

Single Instruction Multiple Data

53
Q

What type of processing is found on SIMD computers?

A

Array processing.

54
Q

What is array processing?

A

A single control unit applies the same instruction to multiple algorithmic units to carry out the same operation on multiple data items at once.

55
Q

When can array processing not take place?

A

When the data relies on another item of data to be processed before it can be processed.

56
Q

In what hardware is array processing often found?

A

Graphics cards - moving lots of pixels.

57
Q

What does MIMD stand for?

A

Multiple Instruction Multiple Data

58
Q

What type of processing is found on MIMD computers?

A

Parallel processing

59
Q

What is parallel processing?

A

When multiple instructions are processed at the same time for a single system, either through multiple cores in the CPU

60
Q

What is a limitation of parallel processing?

A

Most programs do not effectively make use of all of the cores/CPUs that they have available - it is extremely hard to write a program that makes full use of multiple cores.

61
Q

Define an input device.

A

A piece of hardware that sends data to a computer in a form that the computer can understand.

62
Q

Define an output device.

A

A piece of hardware that receives data from a computer and outputs it in a way that a human can understand.

63
Q

Define a storage device.

A

A piece of hardware on which information can be stored.

64
Q

What is magnetic storage?

A

Disks that are covered in magnetic material which a read write head can rearrange to store data.

65
Q

Give a pro and a con of magnetic storage.

A
  • Cheap, large capacity

- Slow, easily damaged > relies on moving parts

66
Q

Where would magnetic storage be used?

A

Personal computers, mainframes, backup centres

67
Q

What is optical storage?

A

Plastic disks coated in a reflective surface from which a laser can read data in the form of pits and lans.

68
Q

Give a pro and con of optical storage.

A
  • Cheap, portable

- Low capacity, requires specific reader

69
Q

Where would optical storage be used?

A

CDs, DVDs

70
Q

What is solid state / flash storage?

A

A collection of chips and capacitors which store a charge to represent a bit.

71
Q

Give a pro and con of flash storage.

A
  • Very fast, portable, durable, silent

- Expensive, not as much capacity as magnetic

72
Q

Where would solid state storage be used?

A

Mobile phones, tablets, military all terrain laptops

Also personal computers - SSD

73
Q

What is RAM?

A

Random Access Memory

Very fast, volatile memory which is used to store programs and data that is in use by the processor.

74
Q

What does volatile mean?

A

When it loses power, the data stored on it is lost.

75
Q

What is a core dump?

A

A snapshot of all of the information in the RAM at a specific moment. It is saved permanently in storage and used in debugging when a program crashes.

76
Q

What is ROM?

A

Read Only Memory

A small amount of non-volatile memory which stores the boot up instructions for the computer.

77
Q

Why does ROM not hold the operating system?

A

Because ROM cannot be changed and so if it held the operating system then the OS would never be able to change or update.

78
Q

What is virtual storage?

A

Storage that appears to be physically part of the computer but is actually on a network that the computer has access to.

79
Q

Give an example of virtual storage.

A
  • Google Drive (other companies as well)
  • School file server
  • Office file server
80
Q

Give an benefit of virtual storage.

A
  • The amount of space each user has can be regulated
  • Users can only access files that they are allowed
  • It is easy to share and view files on any computer
81
Q

Give a drawback of virtual storage.

A
  • If the server that holds the data is down, the data cannot be accessed.
  • You do not have the physical copy of the data