✅1.1.1 Structure and function of the processor Flashcards

1
Q

What does the control unit do?

A
  1. Coordinates all activities of the CPU
  2. Directs the flow of data between the CPU and other devices
  3. Accepts the next instruction, decodes it, handles its execution, and stores the resulting data back in memory or registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the Accumulator do?

A
  1. A register in the processor that stores data and control information
  2. The results of calculations carried out by the ALU can be temporarily stored here
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the Program Counter do?

A

A register in the processor that 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
4
Q

What does the Arithmetic Logic Unit do?

A
  1. Performs arithmetic and logical operations on data
  2. It can perform ADD, SUBTRACT, MULTIPLY, DIVIDE on fixed and floating point numbers
  3. Performs shift operations, shifting bits to the left or right within a register
  4. Carries out Boolean logic operations, comparing two values and using operators such as AND, OR, NOT, XOR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the Memory Address Register do?

A
  1. Holds the address of the memory location from which data or an instruction is to be fetched or to which the data is to be written
  2. Sends these address to memory down the address bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the Memory Data Register do?

A
  1. Used to temporarily store the data which us read from or written to memory.
  2. Gateway to the processor
  3. All data to and from memory must travel down the data bus and pass through the MDR.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the Current Instruction Register do?

A
  1. Holds the current instruction being executed
  2. The contents of the MDR are copied to the CIR if it is an instruction.
  3. Contains the opcode and operand(s) of the current instruction.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What happens during the fetch stage of the FDE cycle?

A
  1. The address of the next instruction is copied from the program counter (PC) to the memory address register (MAR).
  2. The instruction held at that address is copied to the memory data register (MDR). Simultaneously, the content of the PC is incremented so that it holds the address of the next instruction.
  3. The contents of the MDR are copied to the current instruction register (CIR).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What happens during the decode stage of the FDE cycle?

A

The instruction held in the CIR is decoded. The instruction is split into opcode and operand and the opcode is used to determine the type of instruction and what hardware to use to execute it. The operand holds either:
- the address of the data to be used with the operation, which is then copied to the MAR, or
- the actual data to be operated on, which will be copied to the MDR
- the data to be operated on may be passed to the ALU/accumulator

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

What happens during the execute stage of the FDE cycle?

A

The appropriate instruction/opcode is carried out on the operand

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

What does the data bus do?

A

Stores data being sent to and from the CPU and RAM

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

What does the address bus do?

A

Stores the address of data being sent to and from the CPU and RAM

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

What does the control bus do?

A

Sends signals to determine whether the other buses are in read or write mode

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

What are registers?

A

Small memory cells that operate at high speeds.
They are used to temporarily store data and all arithmetic, logical and shift operations occur in these registers.

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

What is a bus?

A

A set of parallel wires connecting two or more components together

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

What is a system bus?

A

The collection of the data bus, address bus, and control bus is called the system bus.

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

What is the width of a bus?

A

The number of parallel wires it has

18
Q

What does adding a wire to the address bus do to the number of addressable locations ?

A

It doubles the number of addressable locations

19
Q

What does Bus Request indicate?

A

Indicates a device is requesting access to the data bus

20
Q

What does Bus Grant indicate?

A

Indicates the CPU has granted access to the data bus

21
Q

What does memory write do?

A

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

22
Q

What does memory read do?

A

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

23
Q

What does the interrupt request control signal indicate?

A

Indicates that a device is requesting access to the CPU

24
Q

What is the clock control signal used for?

A

It is used to synchronise instructions

25
What is Assembly Language?
Assembly Language is a programming language where mnemonics are used to represent instructions
26
What is opcode?
Opcode is used to determine the type of instruction and what hardware to use to execute it
27
What is operand?
The operand is the address of where the operation is performed
28
What is clock speed?
The number of clock cycles completed per second
29
What is cache memory?
Temporary storage of data and instructions being read from and written to the main memory, used for quick access
30
What are 4 features of Harvard architecture?
1. Instructions and data stored in separate memory units 2. Each has its own bus 3. Reading and writing data can be done at the same time as fetching an instruction 4. Used by RISC processors
31
What are 5 features of Von Neumann architecture?
1. Shared memory space for instructions and data. 2. Instructions and data are stored in the same format. 3. A single control unit or processor follows a linear fetch, decode, execute cycle. 4. One instruction processed at a time 5. Registers are used for fast access to instructions and data
32
What is contemporary processing?
Processing in which Von Neumann architecture is used for main memory. Cache uses Harvard architecture, divided into instruction cache and data cache
33
What are 2 advantages of a monitoring system for patients' vital signs having its operating system stored in ROM? (2 Marks)
1. ROM is quick to start up so the system can be started up quickly (in an emergency). 2. ROM cannot be altered so there is no chance of the OS being accidentally or maliciously changed (on what is a safety critical system).
34
What happens to the contents of RAM and ROM when power to a monitoring system for patients' vital signs is removed? (2 Marks)
The contents of RAM are lost, whereas the contents of ROM remain the same.
35
Explain why flash storage would be more appropriate than a magnetic hard drive for a device which estimates the calories burnt by a user. (3 Marks)
1) The device is likely to be small so Flash memory would be best as it has no moving parts, requiring much less space than hard drives which require enough space for their moving parts. OR 2) The device is likely to undergo lots of sudden movements which hard drives can be susceptible to damage if moved quickly due to the head coming in contact with the platter. Whereas flash memory has no moving parts so is not affected.
36
Explain why a GPU is more suitable than a CPU for a new video games console in which the console will use a modified version of an operating system called Linux. (3 Marks)
CPUs are general purpose processors whereas GPUs are specifically for graphics so are likely to have built in circuitry for common graphics operations.
37
A company releases a utility called utility software. The utility creates a virtual storage drive from an area of the computers RAM. Give one advantage of using RAM as storage in this way. (1 Mark)
Faster read/write speed than secondary storage media.
38
Why is it necessary for a a utility to periodically copy information in the RAM to secondary storage, such as a hard disk? (2 Marks)
RAM is volatile meaning it loses its information when power is lost so must be copied to secondary storage in case of unexpected power failure.
39
How many wires wide are buses usually?
8, 16, 32, or 64 wires wide
40
What are the properties of Level 1 cash?
Very fast memory cells with a small capacity. (2-64KB)
41
What are the properties of Level 2 cache?
Relatively fast memory cell, with a medium sized capacity. (256KB-2MB)
42
What are the properties of Level 3 cache?
Much larger and slower memory cell.