Section 5 - Computer organisation and architecture Flashcards

1
Q

What are some examples of internal components?

A
  • Processor
  • Main memory
  • Address bus, control bus, data bus
  • I/O controllers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are internal components?

A

Components inside the CPU

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

What is the role of the CPU?

A

It responds to and processes the instructions that drive the computer

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

What does the CPU contain?

A

The control unit, the arithmetic logic unit (ALU) and the registers

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

What is the role of the control unit?

A

It coordinates and controls the activities of the CPU, directing the flow of data. It accepts the next instruction, breaks down its processing into several sequential steps, manages its execution and stores the resulting data back in registers or memory

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

What is the role of the ALU?

A

It performs arithmetic and logical operations on data.

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

What are examples of arithmetic operations?

A

Addition, subtraction, multiplication and division

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

What are examples of logical operations?

A

Comparing data, shifts, AND/OR

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

What is the role of the system clock?

A

It generates a series of signals used to synchronize CPU operations. Some operations take multiple clock cycles

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

What are general-purpose registers?

A

Up to 16 special memory cells that operate at a very high speed in the CPU.

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

What is an accumulator?

A

Another word for a general purpose register, usually used when there is just 1 register in which to store the result of each calculation or logical expression

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

What are the different types of dedicated registers?

A
  • Program counter
  • Current instruction register
  • Memory address register
  • Memory buffer register
  • Status register
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the role of the program counter?

A

It 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
14
Q

What is the role of the current instruction register?

A

It holds the current instruction being executed

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

What is the role of the memory address register?

A

It holds the address of the memory location from which some data or an instruction is about to be fetched from, or to which the data is to be written

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

What is the role of the memory buffer register?

A

It is used to temporarily store the data read from or written to memory

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

What is the memory data register?

A

Another name for the memory buffer register

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

What is the role of the status register?

A

It contains the bits that are set or cleared depending on the result of an instruction

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

Where do all arithmetic and logical operations take place?

A

Within registers

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

What is a bus?

A

A set of parallel wires connecting 2 or more components to a computer

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

How is the processor connected to the main memory?

A

By 3 separate buses (the address bus, the data bus and the control bus)

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

What is the role of the address and data buses?

A

When the CPU wants to access a particular main memory location it sends the address to memory on the address bus. The data is then returned to the CPU via the data bus.

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

What is the role of the control bus?

A

To transmit command, timing and specific status information between system components

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

What are some examples of control lines?

A
  • Memory write
  • Memory read
  • Interrupt request
  • Bus request
  • Bus grant
  • Clock
  • Reset
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is the function of the memory write control line?

A

Causes data on the data bus to be written into the addressed location

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

What is the system bus?

A

The collective name for the address, data and control buses.

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

How does the system bus work?

A

Each bus is a shared transmission medium so only 1 device can transmit along a bus at one time

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

What direction do signals across the address bus travel?

A

Only 1 way (from the CPU to main memory)

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

What direction do signals across the data bus travel?

A

Both ways

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

What direction do signals across the control bus travel?

A

Both ways

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

What is the function of the memory read control line?

A

Causes data from the addressed location to be placed on the data bus

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

What is the function of the interrupt request control line?

A

Indicates that a device is requesting access to the CPU

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

What is the function of the bus grant control line?

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
34
Q

What is the function of the bus request control line?

A

Indicates that a device is requesting the use of a data bus

35
Q

What is the function of the clock control line?

A

Used to synchronise operations

36
Q

What is the function of the reset control line?

A

Initialises all components

37
Q

Why is the control bus important?

A

It needs to ensure that access to, and use of, the data and address buses by the different components of the system does not lead to conflict

38
Q

How does the data bus determine system performance?

A

The width of the data bus is the determining factor of how much data can be transferred at once

39
Q

What is a word?

A

A fixed group of digits which is handled as a unit by the processor (different processors have different word sizes). Each word has it’s own specific address

40
Q

How is memory divided up internally?

A

Into words

41
Q

How does the address bus affect memory capabilities of the system?

A

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

42
Q

What happens during I/O operations?

A

The address bus is used to address I/O ports

43
Q

What is an I/O controller?

A

A device which interfaces between an input or output device, and the processor. Each device has a seperate controller, each connected to the control bus.

44
Q

How does an I/O controller work?

A

They receive input input and output requests from the processor, before sending device-specific control signals to the device that they control. They also manage the data flow to and from the device

45
Q

What does an I/O controller consist of?

A

It is an electronic circuit board consisting of 3 parts:
- an interface that allows the connection of the controller to the system or I/O bus
- A set of data, command and status registers
- An interface that enables the connection of the controller to the cable connecting the device to the computer

46
Q

What is an interface?

A

A standardized form of connection that defines things like signals, number of connecting pins/sockets and voltage levels. E.g, USB connection

47
Q

What does von Neumann architecture specify?

A

The basic components of the computer and the process in which a shared memory and bus is used for both data and instructions

48
Q

What is the stored program concept?

A

Machine code instructions are fetched and executed serially by a processor that performs logical and arithmetic operations

49
Q

How does the stored data concept work?

A
  • A program must be resident in main memory to be executed
  • The machine code instructions are fetched from memory one at a time, decoded and executed in the processor
50
Q

How does Harvard architecture work?

A

There are physically separate memories for instructions and data. These can have different characteristics, e.g the instructions are held in read only memory but the data is held in read-write memory

51
Q

Where is Harvard architecture used?

A

In embedded Digital Signal Processing systems

52
Q

What is the advantage of Harvard architecture?

A

It can be faster than von Neumann architecture because data and instructions can be fetched in parallel instead of competing for the same bus

53
Q

What is the fetch-execute cycle?

A

The sequence of operations involved in executing an instruction. The 3 phases are fetch, decode and execute

54
Q

What happens in the fetch phase?

A
  • The address of the next instruction is copied from the program counter to the memory address register. The address is sent via the address bus to main memory
  • The instruction held at that address is returned along the data bus to the memory buffer register. Simultaneously, the content of the program counter is incremented so it holds the address of the next instruction
  • The contents of the memory buffer register is copied to the current instruction register
55
Q

What happens in the decode phase?

A

The instruction held in the CIR is decoded. The instruction is split into the opcode and operand, with the opcode being used to determine the type of instruction and what hardware to use to execute it. Additional data is fetched if necessary, and passed to the registers

56
Q

What happens in the execute phase?

A

The instruction is executed and results are stored in the accumulator, general purpose registers or memory

57
Q

What are the factors that affect processor performance?

A
  • The number of cores
  • The amount and type of cache memory
  • The clock speed
  • The word length
  • The address bus width
  • The data bus width
58
Q

How does the number of cores affect processor performance?

A

Each core is theoretically able to process a different instruction at the same time. However, the software may not be able to take advantage of multiple cores.

59
Q

What is cache memory?

A

Expensive, very fast memory inside or very near the CPU

60
Q

How does cache memory work?

A

When an instruction is fetched from main memory it is copied into the cache so if it is needed again soon after it can be fetched from the cache (which is much quicker than the main memory). As the cache is filled up, unused data or instructions are replaced with more recent ones

61
Q

How does the amount and type of cache memory affect processor performance?

A

Depending on the level of cache memory, some CPUs have more cache memory but it is slower (or vice verca)

62
Q

How does clock speed affect processor performance?

A

All processor activities begin on a clock pulse. Therefore, the greater the clock speed, the faster instructions can be executed

63
Q

What is the word size of a computer?

A

The number of bits that the CPU can process simultaneously

64
Q

How does word length affect processor performance?

A

The higher the word length the better the processor performance as more bits can be processed simultaneously

65
Q

How does address bus width affect processor performance?

A

If the bus width is lower the address, the address needs to be sent in 2 groups and therefore the processor is slowed down

66
Q

How does data bus width affect processor performance?

A

The greater the data bus width, the more bits that can be transferred simultaneously

67
Q

What is an interrupt?

A

A signal sent by a software program or hardware device to the CPU

68
Q

Why might a software interrupt occur?

A

When an application program terminates or requests certain services from the operating system

69
Q

Why might a hardware interrupt occur?

A

When an I/O operation is complete or an error occurs

70
Q

What happens when the CPU receives an interrupt signal?

A

It suspends the execution of the running program/process and puts the value of each register onto the system stack. whilst an Interrupt Service Routine is called to deal with the interrupt.

71
Q

What happens once an interrupt has been serviced?

A

The original values of the registers are retrieved from the stack and the fetch-execute cycle resumes

72
Q

What is the processor instruction set?

A

It is the set of all instructions that are supported by its hardware. Each type of processor has it’s own instruction set

73
Q

What is the instruction set of a typical computer?

A
  • Data transfer
  • Arithmetic operations
  • Comparison operations
  • Logical operations
  • Branching
  • Logic shifts
  • Halt
74
Q

What is the format of a machine code instruction?

A

It has an operation code, consisting of 2 bits defining the addressing mode and the basic machine operation. It also has an operand.

75
Q

How many bits are there in the operand and opcode?

A

The number of bits allocated to each will vary according to the architecture and the word size of the particular processor

76
Q

What is the opcode?

A

A set of binary digits representing the basic operation, and a 2-digit code representing the addressing mode

77
Q

What is immediate addressing?

A

Where the operand is the actual value to be operated on

78
Q

What is direct addressing?

A

Where the operand holds the memory address of the value to be operated on

79
Q

What was the first language used to enter programs?

A

Machine code

80
Q

What is assembly code?

A

A programming language using short mnemonics instead of binary codes. Each assembly language instruction translates into 1 machine code instruction

81
Q

What is a parallel bus?

A

A set of parallel wires, with each wire carrying a single bit at a time

82
Q

What is a serial bus?

A

A wire carrying data in a serial-bit form

83
Q

What is an advantage of von Neumann architecture?

A

When a program is downloaded from a remote location it can be treated as data

84
Q

What is a disadvantage of von Neumann architecture?

A

Computer viruses get treated as data while being downloaded but are programs and the CPU is tricked into executing them