1.1.1 Structure and Function of the Processor Flashcards

1
Q

What does the ALU do?

A
The ALU (Arithmetic and Logic Unit) completes all of the arithmetical and logical
operations.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the arithmetic operations?

A

Arithmetical operations include all mathematical operations such as addition
and subtraction on fixed or floating point numbers

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

What are the logical operations?

A

Logical operations include boolean logic operations such as AND, OR, NOT, and XOR.

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

What does the Control Unit do?

A

It directs the operations of the CPU.

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

Give 5 roles of the CU

A
  • Controlling and coordinating the activities of the CPU
  • Managing the flow of data between the CPU and other devices
  • Accepting the next instruction
  • Decoding instructions
  • Storing the resulting data back in memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are registers?

A

Registers are small memory cells that operate at a very high speed. They are used to temporarily store data.

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

What happens in registers?

A

All arithmetic, logical and shift operations

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

What the PC do?

A

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

What does the ACC do?

A

Stores the results from calculations.

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

What does the MAR do?

A

Holds the address of a location that is to be

read from or written to.

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

What does the MDR do?

A

Temporarily stores data that has been read

or data that needs to be written.

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

What does the CIR do?

A

Holds the current instruction being
executed, divided up into operand and
opcode

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

What are buses?

A

Buses are a set of parallel wires which connect two or more components inside the CPU

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

What buses do the CPU have? - What are they collectively called.

A

data bus, control bus, and address bus. These buses

collectively are called the system bus.

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

What is the width of a bus?

A

The number of parallel wires the bus has. The width of the bus is directly proportional to the number of bits that can be transferred simultaneously at any given time. Buses are typically 8, 16, 32 or 64 wires wide.

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

What is the data bus?

A

This is a bi-directional bus, used for transporting data and instructions between components.

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

What is the address bus?

A

This is the bus used to transmit the memory addresses specifying where data is to be sent
to or retrieved from.

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

What is the width of the address bus?

A

It is proportional to the number of

addressable memory locations.

19
Q

What is the control bus?

A

This is a bi-directional bus used to transmit control signals between internal and external
components. The control bus coordinates the use of the address and data buses and
provides status information between system components.

20
Q

What are the 6 control signals?

A

Bus request, bus grant, memory write, memory read, interrupt request, clock.

21
Q

How does assembly code represent instructions?

A

Assembly code uses mnemonics to represent instructions,
for example ADD represents addition. This is a simplified
way of representing machine code.

22
Q

What is an instruction made of?

A

The operand, which contains the data or the address of the data upon which the operation is to be performed.
The opcode, which specifies the type of instruction to
be executed.

23
Q

What is pipelining?

A

Pipelining is the process of completing the fetch, decode, and execute cycles of three
separate instructions simultaneously, holding appropriate data in a buffer in close proximity
to the CPU until it’s required. While one instruction is being executed, another can be
decoded and another fetched.

24
Q

What does pipelining aim to do?

A

Pipelining is aimed to reduce the amount of the CPU which is kept idle

25
Q

What is instruction pipelining?

A

Separating out the

instruction into fetching, decoding, and executing

26
Q

What is arithmetic pipelining?

A

Arithmetic pipelining is breaking down

the arithmetic operations and overlapping them as they are performed.

27
Q

What happens in the Fetch phase?

A
  • Address from the PC is copied to the MAR
  • Instruction held at that address is copied to MDR by the data bus
  • Simultaneously, the contents of the PC are increased by 1
  • The value held in the MDR is copied to the CIR
28
Q

What happens in the Decode phase?

A
  • The contents of CIR are split into operand and opcode
29
Q

What happens in the Execute phase?

A
  • The decoded instruction is executed
30
Q

What is the system clock?

A

This is an electronic device which
generates signals, switching between 0 and 1. All processor activities begin on a clock
pulse, and each CPU operation starts as the clock changes from 0 to 1.

31
Q

What is the clock speed?

A

The clock speed is

the time taken for one clock cycle to complete

32
Q

What is a core?

A

A core is an independent processor that is able to run its own fetch-execute cycle

33
Q

Explain the concept of multiple cores?

A

A computer with multiple cores can complete more than one fetch-execute cycle at any given
time. A computer with dual cores can theoretically complete tasks twice as fast as a computer with a single core. However, not all programs have been designed to utilise multiple cores.

34
Q

What is cache memory?

A

Cache memory is the CPU’s onboard memory. Instructions fetched from main memory are copied to the cache so if they are required again they can be accessed quicker.
As cache fills up, unused instructions are replaced.

35
Q

What is L1 cache?

A

Very fast memory cells with a small

capacity. (2-64KB)

36
Q

What is L2 cache?

A

Relatively fast memory cell, with a medium

sized capacity. (256KB-2MB)

37
Q

What is L3 cache?

A

Much larger and slower memory cell.

38
Q

What are the basic components of the computer and processor?

A

Single control unit
ALU
Registers
Memory units

39
Q

What is the Von Neumann architecture?

A

This architecture includes the basic components, as well as a shared memory and shared data bus for data and instructions.

40
Q

What is the Harvard architecture?

A

This architecture has separate memories for instructions and data, commonly used with embedded processors.

41
Q

When is Harvard architecture useful?

A

When memories have different characteristics, like read-only instructions and read-write data. Used in embedded systems and microcontrollers.

42
Q

Why is Von Neumann better?

A

Cheaper to develop as the control unit is easier to design.

Programs can be optimised in size.

43
Q

Why is Harvard better?

A

Quicker execution as data and instructions can be fetched in parallel.
Memories can be different sizes, making more efficient use of space.

44
Q

What do contemporary processors use?

A

Von Neumann when working with data and instructions in main memory, but Harvard to divide the cache into instruction cache and data cache.