4.1 ProcessorFundamentals.CPU_architecture incompl Flashcards

1
Q

What is the Von Neumann architecture?

A

A computer architecture introduced in the 1940s that introduced the concept of the stored program.

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

What does the Arithmetic Logic Unit (ALU) do?

A

It performs all arithmetic and logical operations within the processor.

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

What is the role of the Control Unit (CU)?

A

It ensures the synchronisation of data flow and programs throughout the computer by sending control signals along the control bus.

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

What is the purpose of the system clock?

A

It produces timing signals on the control bus to ensure synchronisation in the computer system.

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

What is the Immediate Access Store (IAS)?

A

A memory component that holds all data and programs needed to be accessed by the control unit.

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

What is an accumulator in a CPU?

A

A temporary general-purpose register that stores numerical values during operations.

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

What is a register?

A

A temporary storage component in the processor that holds data or instructions as part of the fetch-execute cycle.

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

What is a status register?

A

A register used during arithmetic or logical operations to store information about the result, such as flags.

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

What is a flag in a CPU?

A

A flag indicates the status of a bit, e.g., N = 1 indicates the result of an addition gives a negative value.

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

What is the address bus?

A

A bus that carries addresses throughout the computer system.

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

What is the data bus?

A

A bus that allows data to be carried from the processor to memory (and vice versa) or to and from input/output devices.

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

What is the control bus?

A

A bus that carries signals from the control unit to all other computer components.

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

What does unidirectional mean in relation to buses?

A

It describes a bus where bits can travel in one direction only.

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

What does bidirectional mean in relation to buses?

A

It describes a bus where bits can travel in both directions.

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

What is a word in computing?

A

A group bits used by a computer to represent a single unit.

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

What is a clock cycle?

A

The vibrational frequency of the clock, measured in GHz, which sends out pulses along the control bus.

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

What is overclocking?

A

Changing the clock speed of a system clock to a value higher than the factory/recommended setting.

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

What does BIOS stand for?

A

basic input/output system

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

What is cache memory?

A

A high-speed auxiliary memory that allows for fast data transfer and retrieval.

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

What is a core in a CPU?

A

A unit made up of an ALU, control unit, and registers that is part of the CPU.

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

What is a dual core CPU?

A

A CPU containing two cores.

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

What is a quad core CPU?

A

A CPU containing four cores

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

What is a port in computing?

A

An external connection that allows a computer to communicate with peripheral devices.

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

What is a USB?

A

Universal Serial Bus, a type of port used to connect devices to a computer.

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

What is asynchronous serial data transmission?

A

A method where a single wire transmits bits one after the other, with the sender using its own clock.

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

What is HDMI?

A

High-Definition Multimedia Interface, a type of port used to connect devices to a computer, supporting high-definition signals.

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

What is VGA?

A

Video Graphics Array, a type of port used to connect devices to a computer, based on older analogue technology.

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

What is HDCP?

A

High-Bandwidth Digital Copy Protection , a part of HDMI technology that reduces the risk of piracy.

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

What is the fetch-execute cycle?

A

A cycle where instructions and data are fetched from memory, decoded, and then executed.

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

What is the program counter (PC)?

A

A register that stores the address of the instruction currently being executed or the address of the next instruction to be read.

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

What is the Current Instruction Register (CIR)?

A

A register that contains the instruction currently being executed or decoded.

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

What is Register Transfer Notation (RTN)?

A

A shorthand notation used to represent the movement of data and instructions in a processor.

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

What is an interrupt?

A

A signal sent from a device or software to the processor requesting its attention.

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

What is interrupt priority?

A

A system where interrupts are given priority levels to determine which should be serviced first.

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

What is an Interrupt Service Routine (ISR)?

A

Software that handles interrupt requests, such as sending “printer out of paper” notifications to the CPU.

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

What was a limitation of early computers before the Von Neumann model?

A

Early computers could not store programs or data, requiring significant human intervention to operate.

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

Who developed the concept of the stored program computer and when?

A

John Von Neumann in the mid-1940s

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

What are the main features of the Von Neumann architecture?

A
  • Central processing unit (CPU or processor)
  • Processor able to access memory directly
  • Computer memories that store both programs and data
  • Stored programs made up of sequentially executable instructions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

What are the main components of the processor?

A
  • Arithmetic logic unit (ALU)
  • Control unit (CU)
  • System clock
  • Immediate access store (IAS)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

What does the arithmetic logic unit (ALU) do?

A

It performs required arithmetic or logic operations during program execution.

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

Can a computer have more than one ALU? What operations do they perform?

A

It can. one ALU may perform fixed-point operations and another floating-point operations.

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

How are multiplication and division performed in the ALU?

A

Through sequences of addition, subtraction, and left/right shifting operations.

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

What is the accumulator (ACC)?

A

A temporary register used during ALU calculations.

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

What role does the control unit (CU) play in the CPU?

A

It reads instructions from memory, interprets them, and generates signals along the control bus for other components. It ensures synchronisation of data flow and program instructions

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

What is the purpose of the system clock in a computer?

A

To produce timing signals on the control bus to ensure synchronisation of operations. Computer crashes if it does not function.

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

What does the Immediate Access Store (IAS) do?

A

Holds data and programs temporarily that the processor needs to access.

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

Why is data stored temporarily in IAS instead of backing store?

A

Read/write operations with IAS are much faster than with backing store.

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

What is another name for the IAS?

A

Primary memory or RAM

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

What are the two types of registers in the Von Neumann system?

A

General purpose and special purpose registers

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

What is the function of general purpose registers?

A

They hold data frequently used by the CPU and can be directly accessed by programmers. Example: accumulator

51
Q

What are special purpose registers used for?

A

They have specific functions within the CPU and hold the program state.

52
Q

What is the purpose of the Index Register (IX)?

A

It is used for index addressing operations, especially in assembly code.

53
Q

What is the function of the Memory Data Register (MDR), also known as the Memory Buffer Register (MBR)?

A

It stores data that has just been read from memory or is about to be written to memory.

54
Q

What is the Status Register (SR) used for?

A

It contains bits (flags) that indicate conditions during arithmetic or logic operations.

55
Q

What does the Memory Address Register (MAR) do?

A

It stores the address of the memory location currently being read from or written to.

56
Q

Name the four flags in a Status Register.

A
  • Carry flag (C)
  • Negative flag (N)
  • Overflow flag (V)
  • Zero flag (Z)
57
Q

What does the Carry Flag (C) indicate?

A

A carry has occurred after an addition operation.

58
Q

When is the Negative Flag (N) set to 1?

A

When the result of a calculation is negative.

59
Q

What does the Overflow Flag (V) represent?

A

An arithmetic operation has resulted in an overflow.

60
Q

What does the Zero Flag (Z) indicate?

A

The result of an arithmetic or logic operation is zero.

61
Q

What do the flags indicate in this example operation: 01110111 + 00111000 = 10101111?

A

N = 1 (negative result, incorrect for positive numbers)
V = 1 (overflow occurred)
C = 0
Z = 0

62
Q

What do the flags indicate in this example operation: 10001000 + 11000111 = 101001111?

A

N = 0 (non-negative result, correct for negatives)
V = 1 (overflow occurred)
C = 1 (carry generated)
Z = 0

63
Q

Name some other possible flags besides the main four in the course.

A

Parity flag, interrupt flag, half-carry flag.

64
Q

What is the role of system buses in a computer?

A

System buses are used for parallel transmission of data, with each wire transmitting one bit at a time.

65
Q

Name three buses in the Von Neumann architecture.

A

Address bus, data bus, control bus.

66
Q

What is the purpose of the address bus?

A

It carries addresses throughout the computer system and is unidirectional.

67
Q

Why is the width of the address bus important?

A

A wider bus allows more memory locations to be addressed at any given time.

68
Q

How many memory locations can a 16-bit address bus access?

A

2¹⁶ or 65,536 memory locations.

69
Q

What is the function of the data bus?

A

It is bidirectional and carries data, which can be addresses, instructions, or numerical values, between the CPU, memory, and input/output devices.

70
Q

How does the width of the data bus affect computer performance?

A

A wider data bus allows larger word lengths to be transported, improving performance.

71
Q

What is the purpose of the control bus?

A

It is bidirectional and carries control signals from the control unit to other computer components.

72
Q

How does the system clock contribute to computer operations?

A

It produces timing signals to synchronise all operations in the computer.

73
Q

What is the impact of increasing clock speed on computer performance?

A

It increases processing speed but may not necessarily improve overall performance due to other limiting factors.

74
Q

What are the risks of overclocking a CPU?

A
  • Execution of instructions outside design limits, causing unsynchronised operations.
  • Frequent crashes and instability.
  • Overheating, leading to unreliable performance.
75
Q

What is cache memory, and how does it improve processor performance?

A

Cache memory is high-speed SRAM that stores frequently used instructions and data for faster access compared to main memory.

76
Q

Why is SRAM used in cache memory instead of DRAM?

A

SRAM does not require refreshing and has faster access times.

77
Q

How does the use of multiple cores in a CPU affect performance?

A

Multiple cores improve performance by dividing tasks, but communication between cores reduces the potential performance gain.

78
Q

What is the difference between dual-core and quad-core CPUs in terms of performance?

A
  • Dual-core CPUs have one channel, and communication between cores reduces performance slightly.
  • Quad-core CPUs have six channels, requiring more communication and significantly reducing potential performance.
79
Q

What are the factors that influence computer performance?

A
  1. Width of address and data buses
  2. Clock speed
  3. Cache memory usage
  4. Number of CPU cores
80
Q

How does increasing bus width affect computer performance?

A

It increases the system’s performance and speed by allowing more data and memory locations to be addressed.

81
Q

What are the key methods to improve a computer’s performance?

A
  • Increasing bus width
  • Increasing clock speed
  • Using multi-core CPUs
  • Employing cache memory
82
Q

What is the primary function of computer ports?

A

To connect input and output devices to a computer, with the interaction controlled by the control unit.

83
Q

What is USB, and why is it significant?

A

The Universal Serial Bus (USB) is an asynchronous serial data transmission method that has become the standard for transferring data between computers and devices.

84
Q

How does a USB port detect and recognise a connected device?

A
  1. A small change in voltage on the data wires signals the presence of a device.
  2. The computer automatically recognises the device and loads the appropriate driver.
  3. If no driver is available, the user is prompted to download the required software.
85
Q

What are the advantages of the USB system?

A
  • Automatic detection and driver installation for connected devices.
  • Connectors are unidirectional, preventing incorrect connections.
  • It is the industry standard with extensive support.
  • Supports multiple data transmission rates.
  • Newer USB standards are backward compatible.
86
Q

What are the limitations of the USB system?

A
  • Limited transmission rate (less than 500 megabits per second).
  • Maximum cable length is about five metres.
  • Older USB standards (e.g., 1.1) may lose support in the future.
87
Q

What is the purpose of an HDMI port?

A

To output high-definition audio and video signals from a computer to an HDMI-enabled device.

88
Q

Why was HDMI introduced, and what did it replace?

A

HDMI was introduced as a digital replacement for the older analogue Video Graphics Array (VGA) system.

89
Q

What features of modern HD televisions make VGA technology obsolete?

A
  • Widescreen format (16:9 aspect ratio).
  • Higher pixel density (e.g., 1920 × 1080).
  • Faster refresh rates (e.g., 120Hz).
  • Wider range of colours (up to 4 million variations).
90
Q

How does HDMI support the requirements of modern HD televisions?

A

By providing increased bandwidth (around 10 gigabits per second) for transmitting high-quality sound and visual data.

91
Q

How does HDMI offer piracy protection?

A

HDMI uses High-Bandwidth Digital Copy Protection (HDCP), which employs authentication protocols to ensure secure data transmission between devices.

92
Q

What is HDCP, and how does it work?

A

HDCP (High-Bandwidth Digital Copy Protection) is an authentication protocol that checks the key of a connected device (e.g., an HD television) to enable secure handshaking before transmitting data.

93
Q

What is VGA, and when was it introduced?

A

Video Graphics Array (VGA) is an analogue technology introduced in the late 1980s, supporting a resolution of 640 × 480 pixels and a refresh rate of up to 60Hz with 16 colours.

94
Q

What are the advantages of VGA?

A
  • Simpler technology with only one standard.
  • Easy to split the signal and connect multiple devices.
  • Secure connection.
95
Q

What are the disadvantages of VGA?

A
  • Outdated analogue technology.
  • Prone to bending pins during connection.
  • Requires high-grade cables to avoid signal distortion.
96
Q

What are the advantages of HDMI?

A
  • Supports modern digital systems with fast data transfer.
  • Improved security against piracy.
  • Current standard for televisions and monitors.
97
Q

What are the disadvantages of HDMI?

A
  • Fragile connections that can break easily.
  • Limited cable length for maintaining signal quality.
  • Five different cable/connection standards exist.
98
Q

What is the fetch-execute cycle in a processor?

A

It is the process where the CPU fetches, decodes, and executes instructions from memory.

99
Q

Describe the fetch phase of the fetch-execute cycle.

A
  1. The PC provides the address of the next instruction.
  2. The address is copied to the Memory Address Register (MAR) via the address bus.
  3. The instruction at the MAR address is copied to the Memory Data Register (MDR).
  4. The MDR content is transferred to the Current Instruction Register (CIR).
  5. The PC increments by 1 to point to the next instruction.
100
Q

Describe the execute phase of the fetch-execute cycle.

A
  1. The decoded instruction in the CIR generates control signals.
  2. Signals are sent via the control bus to the appropriate system components.
  3. The instruction is executed in its logical sequence.
101
Q

What happens after an instruction is executed in the fetch-execute cycle?

A

The system checks for any interrupts. If none are present, the cycle restarts. If an interrupt is detected, it is serviced before restarting the cycle.

102
Q

How does the fetch-execute cycle use system buses?

A

Address Bus: Transfers the memory address from the PC to the MAR.
Data Bus: Transfers data and instructions to and from memory.
Control Bus: Sends signals to components for instruction execution.

103
Q

Fetch-decode-execute cycle in Register Transfer Notation RTN:

A
MAR ← [PC]        contents of PC copied into MAR
PC ← [PC] + 1        PC is incremented by 1
MDR ← [[MAR]]         data stored at address shown in MAR is copied into MDR
CIR ←[MDR]        contents of MDR copied into CIR
104
Q

Why are double brackets used in MDR ← [[MAR]] in RTN?

A

Double brackets indicate that the data stored at the address shown in MAR (not the MAR contents itself) is being copied into MDR.

105
Q

What does the RTN instruction MAR ← [PC] mean?

A

The contents of the Program Counter (PC) are copied into the Memory Address Register (MAR).

106
Q

What does the RTN instruction PC ← [PC] + 1 mean?

A

The Program Counter (PC) is incremented by 1.

107
Q

What does the RTN instruction MDR ← [[MAR]] mean?

A

The data stored at the address shown in the Memory Address Register (MAR) is copied into the Memory Data Register (MDR).

108
Q

What does the RTN instruction CIR ← [MDR] mean?

A

The contents of the Memory Data Register (MDR) are copied into the Current Instruction Register (CIR).

109
Q

What is the difference between abstract and concrete RTN?

A
  • Abstract RTN is a generic notation that applies to any system.
  • Concrete RTN is specific to a particular machine, such as a RISC computer.
110
Q

What is an example of concrete RTN for a RISC computer?

A

instruction_interpretation := (¬Run/Start → Run ← 1; instruction _interpretation): Run → (CIR ← M[PC]:PC ← PC + 4; instruction _ execution)

111
Q

What is the function of the interrupt register in the fetch-execute cycle?

A

The interrupt register detects and records interrupts by changing one of its bits.

112
Q

How does the CPU check for interrupts during the fetch-execute cycle?

A

The CPU checks the interrupt register bit by bit at the next fetch-execute cycle.

113
Q

What happens if the CPU detects an interrupt in the interrupt register?

A
  • The CPU decides whether to service or ignore the interrupt based on its priority.
  • If serviced, the CPU stops its current task and stores the contents of its registers.
114
Q

What is an Interrupt Service Routine (ISR)?

A

The ISR is a program that handles interrupts by executing appropriate actions when an interrupt occurs.

115
Q

What happens after an interrupt is fully serviced?

A
  • The interrupt register is reset.
  • The contents of the registers are restored.
  • The CPU resumes its previous task.
116
Q

What is an interrupt in computing?

A

An interrupt is a signal sent from a device or software to the processor, causing it to temporarily stop its current task and service the interrupt.

117
Q

What are five common causes of interrupts?

A
  • A timing signal
  • Input/output processes (e.g., disk drive ready for data)
  • A hardware fault (e.g., printer paper jam)
  • User interaction (e.g., pressing <CTRL><ALT><BREAK>)</BREAK></ALT></CTRL>
  • A software error (e.g., missing .exe file or division by zero)
118
Q

How does a processor respond when it receives an interrupt?

A

The processor either continues its current task or stops to service the device/program that generated the interrupt, depending on the interrupt’s priority.

119
Q

What is the importance of interrupt priority?

A

The computer must identify the interrupt type and establish its priority to determine whether it should be serviced immediately or deferred.

120
Q

How do interrupts allow multitasking?

A

Interrupts enable computers to handle multiple tasks simultaneously, such as downloading a file while playing music.

121
Q

What happens to the current task when an interrupt occurs?

A

The current task’s status, including the contents of the program counter and registers, is saved before servicing the interrupt.

122
Q

What is an Interrupt Service Routine (ISR)?

A

The ISR is the process executed to handle an interrupt by loading the start address into the program counter and executing necessary actions.

123
Q

What happens after an interrupt has been serviced?

A

The processor reinstates the saved status of the interrupted task by retrieving the saved register contents, allowing it to resume execution from where it left off.