Computers πŸ’» | Computer Architecture | 3.1 Flashcards

1
Q

What does CPU stand for?

A

Central Processing Unit

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

Define CPU

A

The part of a computer that is responsible for the execution or processing of all the instructions and data in a computer

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

Define microprocessor

A

A type of integrated circuit on a single chip.

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

What is Von Neumann architecture?

A

A form of computer architecture developed that introduced the idea of a β€˜stored program’, allowing computer memories to store programs as well as data

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

What are the three components of a CPU?

A
  • Units
  • Registers
  • Buses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the units in a CPU?

A

Arithmetic Logic Unit (ALU) and Control Unit (CU)

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

What are the registers in a CPU?

A
  • Program Counter (PC)
  • Memory Address Register (MAR)
  • Memory Data Register (MDR)
  • Current Instruction Register (CIR)
  • Accumulator (ACC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the three buses in a CPU?

A

Address bus, data bus, control bus

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

What is the function of the ALU?

A

It allows the required arithmetic and logical operations to be carried while a program is being run.

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

What is the function of the control unit?

A

It ensures synchronisation of data flow and program instructions throughout a computer.

It also decodes instructions.

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

What is the purpose of the CIR?

A

Stores the current instruction being decoded and executed

Current Instruction Register

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

What is the purpose of the ACC?

A

Used when carrying out ALU calculations to store data temporarily during calculations

Accumulator

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

What is the purpose of the MAR?

A

Stores the address of the memory location currently being read from or written to

Memory Address Register

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

What is the purpose of the MDR?

A

Stores data which has just been read from memory or data which is about to be written to memory

Memory Data Register

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

What is the purpose of the PC (Program Counter)?

A

Stores the address where the next instruction to be read can be found

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

Each partition of memory contains …

A

An address and its contents

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

What are registers?

A

A part of the CPU that temporarily stores data for different reasons

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

What is a system bus?

A

A connection between major components in a computer that can carry data, addresses, or control signals

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

Define address bus

A

The system bus that carries the addresses throughout the computer system

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

Define data bus

A

The system bus that allows data to be carried from CPU to memory (and vice versa), or to and from I/O decvices

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

Define control bus

A

The system bus that carries signals from control unit to all other computer components

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

Which part of the CPU is responsible for decoding instructions?

A

The CU

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

Which data buses are unidirectional, and which are bidirectional?

A

Unidirectional: address bus
Bidirectional: data bus and control bus

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

What is the bus width?

A

The number of bits in a system bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
How does bus width impact address buses?
The wider the bus, the more memories that can be *simultaneously* addressed
26
How does bus width impact data buses?
The wider the bus, the larger the word length that can be transferred (word - group of bits which can be regarded as a single unit). The larger the word length the better the performance.
27
How does bus width impact control buses?
There is no need to widen the bus width of a control bus as it only is used to carry around control signals
28
What is the purpose of the system clock?
It produces timing signals on the control bus to ensure synchronisation takes place
29
What does *IAS* stand for?
Immediate Access Store
30
Define IAS
Memory that holds all data and programs neded to be accessed by the control unit (the RAM)
31
Define Fetch-Decode-Execute
A cycle in which instructions and data are fetched from memory, decoded, and finally executed
32
How is an instruction *fetched*? | fetch-execute cycle
1. The address of the instruction, held in PC is sent using address bus to MAR 2. Using the data bus, the next instruction is fetched from the memory address stored in the MAR, and stored in the MDR 3. Contents of the MDR are copied to the CIR 4. PC is incremented so that the next instruction can be processed | *PC = Program Counter
33
What does CIR stand for?
Current Instruction Register
34
Define increment
Increase by one
35
Why should an instruction be *decoded*? | fetch-execute cycle
The instruction is decoded so it can be interpreted in the next (execute) part of the cycle
36
How is an instruction *executed*? | fetch-execute cycle
- The CPU passes the decoded instruction as a set of control signals to the appropriate components within the computer system - Allows each instruction to be carried out in its logical sequence
37
What is the clock cycle?
The vibrational frequency of the system clock which sends out pulses along the control bus
38
In what units is clock speed measured?
GHz
39
How does clock speed affect computer performance?
Potentially, a higher clock speed can lead to a better performance but there are dangers such as overclocking
40
Define overclocking
Changing the clock speed of a system clock to a value higher than the factory/reccomended settings
41
What are the possible dangers of overclocking?
- Executing instructions outside design limits can lead to very unsynchronised operations, making the computer frequently crash an unstable - Overclocking can lead to serious overheating of the CPU leading to unreliable performance
42
Define cache
A temporary memory using static RAM to hold frequently used data/instructions by the CPU thereby increasing CPU performance
43
Why is cache memory faster than RAM?
- It uses Static RAM - The memory is located within the CPU itself, so has faster access times
44
How does cache size impact performance?
The larger the cache memory size, the better the CPU performance
45
Define core
A unit on a CPU made up of an ALU, control unit, and registers. A CPU may contain a number of cores.
46
How can number of cores impact performance?
- Using more cores alleviates the need to continually increase clock speeds - However doubling the number of cores doesn't necessarily double computer performance as it will take more time for the CPU to communicate with each core
47
Define instruction set
The complete set of machine code instructions used on a particular microprocessor : a limited ammount of opcodes that can be used
48
Define opcode
Part of a machine code instruction that identifies what action the CPU has to perform on data / operand
49
Define operand
Part of a machine code instruction that identifies what data is to be used
50
Why is the *instruction set* limited?
There is a limited number of opcodes that can be used
51
What is the difference between the instruction set and programming code?
Instruction sets: The low level language instructions that instruct the CPU Program code: The higher level language instructions that require interpreters or compilters to convert the code into the instruction set understood by a computer
52
Define embedded system
A combination of hardware an software which is designed to carry out a specific set of functions
53
What are the three things an embedded system can be based on?
Microcontrollers, microprocessors, or System on Chips (SoC)
54
What does a microcontroller contain in an embedded system?
- A CPU - Some RAM - Some ROM - Other peripherals - All on one chip | Together, carries out specific task
55
What does a microcontroller contain in an embedded system?
- A CPU - Some RAM - Some ROM - Other peripherals - All on one chip | Together, carries out specific task
56
What does a microprocessor contain in an embedded system?
- Integraded circuit with only a CPU on the chip - No RAM, ROM, or peripherals - those have to be added
57
What does an SoC contain in an embedded system?
- May have a microcontroller as one of its components - Almost always includes CPU, I/O ports, and secondary storage on one microchip
58
What is the difference between a programmable and non-programmable embedded system?
- A Non-programmable device had to be replaced if it requires a software update - A programmable device can be updated by connecting it to a computer, or by updates from the internet
59
What are the benefits of devices being controlled via embedded systems?
- Small in size; easy to fit into devices - Low cost compared to other systems - Dedicated to one task; allows for simple interfaces - Consume little power - Can be remotely controlled - Very fast reaction to changing input
60
What are the drawbacks of devices being controlled using embedded systems?
- Difficult to upgrade some - Troubleshooting faults in the device becomes specialist task - Interface can be confusing - If it has internet access, open to hackes and viruses - Devices are often thrown away rather than repair; very wasteful
61
How do most embedded systems work?
An operator inputs data manually from a UI, or data is automatically input by a sensor - and the output is connected to related components
62
What embedded systems are found in motor vehichles?
- GPS system - In-car entertainment system - Aribags - Fuel injection system - ABS breaking - Traction control
63
What embedded systems are found in vending machines?
- Input pad - Sensors to show position of gates - Coin counter - Temperature sensor to maintain environment - Display showing prices - Actuators to control motors that dispense items
64
What embedded systems are found in washing machines?
- Keypad to select wash cycle - Dial to control cooking duration - Dial to control temperature
65
What embedded systems are found in lighting systems?
- System allowing for remote control from phone - Device checking time of day or day of week - Sensor checking whether room is occupied - Sensor checking brightness of natural light
66
What embedded systems are found in lighting systems?
- System allowing for remote control from phone - Device checking time of day or day of week - Sensor checking whether room is occupied - Sensor checking brightness of natural light
67
What embedded systems are found in security systems?
- Keypad interface - Temperature sensor - Pressure sensor - Acoustic sensor