computer architecture Flashcards

1
Q

What are the components of the three box model of a computer system?

A

The processor, main memory and I/O all connected by a bus

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

What is hardware?

A

Electrical circuits that a computer is assembled from, the platform on which software executes

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

What does the processor do?

A

Executes programs and supervises the function of other parts of the system
(essentially a very big finite state machine)

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

What is a microprocessor?

A

A processor on a single chip

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

What is a chip?

A

An integrated circuit (IC) encased in plastic

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

What is CPU?

A

Central processing unit, the processor as well as the main memory
However since microprocessors were invented it often refers to just a microprocessor

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

What is the main memory?

A

The memory directly addressable by the processor

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

What is another name for main memory?

A

Immediate access store (IAS)

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

What is the main memory used for?

A

Storing program instructions and data

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

How are values stored in main memory?

A

Each BYTE is stored in a separate MEMORY LOCATION

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

What is main memory made up of?

A

RAM chips

can also include one or more ROM chips

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

What is a memory location?

A

A separately addressable area of main memory

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

What does RAM stand for?

A

random access memory

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

What does random access mean?

A

Locations can be accessed in any order without having to cycle through each location from the start (ie not serial)

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

What is RAM?

A

volatile random access memory

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

What is volatile memory?

A

Data stored will be lost when power is turned off

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

What does ROM stand for?

A

read only memory

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

What is ROM?

A

non volatile main memory which cannot be written over once set up

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

What does EEPROM stand for?

A

electronically erasable programmable main memory

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

What is EEPROM?

A

Contents may be altered but writing is ~100x slower than reading

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

How are the main three components connected within a system?

A

Through the system/external bus

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

What does the system/external bus include?

A
  • data bus
  • address bus
  • control bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is a computer bus (generally and physically)?

A

A set of parallel wires that connect independent components of a computer system in order to pass signals between them

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

What is the data bus?

A

A bi-directional bus, typically with 32 wires, transports data between components

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

What is the address bus?

A

A uni-directional bus, typically with 32 wires, addresses memory and I/O locations

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

What is the control bus?

A

A bi-directional bus, typically with 8 wires, transports control signals between components

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

What does I/O stand for?

A

input/output

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

What kind of signals does the control bus carry?

A
  • clock signal for timing
  • reset signal for initialising components
  • Memory read for asserting that the memory loaction in use is being read
  • memory write
  • I/O used to show that processor wants to use an I/O not main memory (when they share memory addresses)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Which is the uni-directional bus?

A

Address bus

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

What are peripherals?

A

Any computer device not part of the CPU (processor and main memory)

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

How are peripherals connected to the processor?

A

The system bus is connected to an I/o controller and the I/O controller is connected to the device

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

What does I/O do?

A

Allows the CPU to communicate with peripherals

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

Give examples of peripherals

A
keyboard
visual display unit
magnetic disk
CD-R and DVD-R drives
network cards
speakers
etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

What does an I/O controller consist of?

A
  • Electronics to interface the device to the system bus
  • data, command and status registers
  • Electronics to send control signals to the device connected to the computer
35
Q

Why do peripherals have to be connected via control buses and not directly to the processor?

A

Each peripheral operates in a different way so a processor can’t be designed to be able to control so many types of peripheral. The processor doesn’t need to be redesigned each time there is a new peripheral

36
Q

What is an I/O port?

A

Part of an I/O controller where the processor exchanges data with the peripheral device (data, command and status registers)

37
Q

What is a register?

A

A storage location that can be read from and written to very fast
Inside the processor and I/O controllers

38
Q

What is an I/O device?

A

A hardware unit that sends, receives or stores data by communicating with the processor and main memory through an I/O controller

39
Q

What is an I/O controller?

A

An electronic circuit that connects a system bus to an I/O device, providing the correct voltages and currents for both

40
Q

Give examples of external peripherals

A

mouse, keyboard, printer, monitor, memory stick, scanner etc

41
Q

Give examples of an internal peripheral

A

CD-ROM drive

42
Q

What is secondary storage?

A

permanent storage memory not directly connected to the processor

43
Q

What is another name for secondary storage?

A

backing store

44
Q

Give examples secondary storage

A

magnetic hard disk (not removable if internal)
CD-R, CD-ROM, CD-RW
DVD-R, DVD-ROM, DVD-RW
memory stick

45
Q

What is the von Neumann bottleneck?

A

A large amount of the data transferred between processor and main memory is not useful, it is just the addresses of the data needed

46
Q

What is a main memory address?

A

A unique numeric code given to each location in memory so it can be identified

47
Q

What is the stored program concept?

A

A program must be resident in main memory to be executed
Machine code instructions are fetched one by one in sequence from the main memory and executed in the processor one by one

48
Q

What are the two different types of stored program computer?

A

von neumann and harvard

49
Q

What is von neumann architecture?

A

A single main memory is used for instructions and data, which travel along a shared bus

50
Q

What is harvard architecture?

A

Separate instruction and data memories with their own buses

51
Q

Which form of stored program architecture has a faster overall processing speed?

A

Harvard

The instructions and data can be transferred in parallel and are not competing for resources.

52
Q

What is a microcontroller?

A

A complete computer (processor, memory, I/O) on one chip, usually used as embedded computer systems in other devices such as mp3 players, designed to form only a few functions

53
Q

Which stored program architecture do microcontrollers normally use?

A

Harvard

54
Q

What does the processor contain?

A
  • program control unit
  • arithmetic and logic unit
  • registers
  • internal clock
  • internal buses
  • logic gates
55
Q

In a processor, what does the program control unit do?

A

Fetches program instructions from memory, decodes them and executes them

56
Q

In a processor, what does the program control unit consist of?

A
  • instruction decoder
  • current instruction register
  • program counter
  • control circuits connecting to the system clock
57
Q

What does the program counter register store?

A

the address of the next instruction to be fetched and executed

58
Q

In a processor, what does the arithmetic and logic unit (ALU) do?

A

performs arithmetic and logical operations such as addition and subtraction and boolean logic.
Consists of circuitry

59
Q

In a processor, what are logic gates used for?

A

flow of control

60
Q

What is a general purpose register?

A

A register not assigned a specific role by the designer
Accessed with load, store, add etc
All may be used by programmers

61
Q

What is a dedicated register?

A

A register assigned a specific role by the processor designer
Programmers can use some but not all

62
Q

What does the stack pointer register do?

A

points to a stack holding return addresses, procedure/function parameters and local variables
accessed when procedure or function is called or an interrupt is serviced

63
Q

What does the status register do?

A

Holds one bit ‘flags’ with condition codes to indicate the outcome of operations (eg. whether there is an overflow in an arithmetic operation). Also status information such as whether interrupts are enabled or disabled. Lots of instructions check values in the status register, involved in the flow of control

64
Q

What does the accumulator register do?

A

Holds the result of the current set of calculations

65
Q

What does the current instruction register do?

A

Hols the current instruction to be executed whilst it is decoded and excuted

66
Q

What does the memory address register do?

A

Holds the address of the memory location currently being accessed

67
Q

What does the memory buffer register do?

A

Holds the data item being transferred to or from the memory location being accessed
i.e everything entering or leaving the processor goes through here

68
Q

What is clock speed of a processor?

A

The frequency in mega or gigahertz at which the processor executes instructions. One instruction will always be executed within a certain number of clock cycles (‘ticks’)

69
Q

What is the system clock?

A

Every computer has a quartz controlled oscillator that supplies timing at a fixed rate. Timing signals are derived from here and used to decide clock rate and synchronise the function of other components

70
Q

What is the internal clock?

A

Linked to the control unit, if a higher frequency than the normal clock rate is required then the system clock’s frequency can be raised inside the processor with frequency multiplying circuits

71
Q

What is word length?

A

The number of digits in a binary word

72
Q

What is bus width?

A

The number of signal wires or lines allocated to a bus

73
Q

In a processor what does performance mean?

A

How quickly a task can be completed

74
Q

How can performance of a processor be measured approximately?

A

Running standard programs on the processor and seeing how many machine operations are performed per unit time

75
Q

What units are used for processor performance?

A

giga-ops per second (GOPS) or mega-ops per second (MOPS)

76
Q

What effect does increasing the clock speed have on a processor?

A

The performance will be increased - more instructions for more ‘ticks’ can be carried out in the same amount of real time

77
Q

Why are there limits on clock speed?

A

Higher clock frequencies generate more heat and this cannot be removed fast enough (especially when there are lots of transistors on a single chip)

78
Q

What is a multicore processor?

A

Putting more than one processor on a single chip

processors = cores

79
Q

How do multicore processors avoid overheating?

A

The cores operate at a lower frequency than a normal processor would

80
Q

What are the advantages of multicore processors?

A

Multiple tasks can be run at the same time or the same task can be split across several processors
useful for improved multimedia work (moviemaker, photoshop)

81
Q

What effect does increasing word length of registers have on a processor?

A

Performance is improved

If a word is too big for a register extra processing has to be done to split and store it across more than one register

82
Q

What effect does increasing word length have on addressable memory?

A

Registers are used to store the binary codes for main memory addresses, being able to store a longer word means more addresses can be referenced by the registers, meaning that more of main memory can be used by the processor (is ‘addressable’)

83
Q

What are typical word lengths in a modern processor?

A

32 and 64 bit

84
Q

What effect does increasing bus width have on a processor?

A

performance is improved
The system bus acts as a bottleneck, if it is not wide enough to carry an instruction in one go it has to be sued multiple times, slowing performance
Increasing data bus width would also improve performance
increasing address bus width would lead to more addressable memory