Structure And Function Of The Processor Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the ALU?

A

It completes all the arithmetic and logical operations. (Arithmetic and Logic Unit)

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

What does the arithmetic operations include?

A

It includes all mathematical operations such as addition and subtraction on fixes or floating point numbers.

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

What do Logical operations include?

A

It includes Boolean logic operations such as And, Or, Not, Xor.

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

What is a Control Unit?

A

It is the component of the processor which directs the operations of the CPU.

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

What jobs does the The Control Unit have?

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 the 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.

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

What are registers used for?

A

They are used to temporarily store data and all arithmetic, logical and shift operations in these registers.

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

Purpose of a Program counter, PC (register)?

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

Purpose of the accumulator, ACC (register)?

A

It stores the results from the calculations

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

Purpose of the Memory Address Register, MAR (register)?

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

Purpose of the Memory Data Register, MDR (register)

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

Purpose of the Memory Data Register, MDR (register)

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

Purpose of the Current Instruction Register, CIR (register)

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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
15
Q

What are the 3 buses and what are they called collectively?

A

Data bus, control bus, address bus and collectively they are called the system bus.

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

What is the width of the bus?

A

It is the number of parallel wires the bus has. It is directly proportional to the number of buts that can be transferred simultaneously at any time.

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

Typical bus width?

A

8, 16, 32, 64 wires wide

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

What is a data bus?

A

It is a bi-directional bus (bits can be carried both ways)

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

What is a data bus used for?

A

It is used for transporting data and instructions between components.

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

What is the address bus?

A

It is 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
21
Q

What is the width of the address bus?

A

The width is proportional to the number of addressable memory locations.

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

What is a control bus?

A

It is a bi-directional bus used to transmit the control signals between internal and external components.

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

What does the bus control bus do?

A

It coordinates the use of the address and data buses and provides status information between system components.

24
Q

The control signal includes:

A
  • Bus request : shows that a device is requesting the use of the data bus
  • Bus grant : shows that the CPU has granted access to the data bus
  • Memory write : data is written into the addressed location using this bus
  • Memory read : data is read from a specific location to be placed onto the data bus
  • Interrupt request : shows that a device is requesting access to the CPU
  • Clock : used to synchronise operations
25
Q

What does Assembly language use + example ?

A

It used mnemonics to represent instructions, for example ADD represents addition.

26
Q

What is assembly code a simplified way of saying?

A

Machine code

27
Q

What does the assembly language do?

A

The instructions are divided into operand and opcode in the Current Instruction Register. The operand contains the data or the address of the data upon which the operation is to be performed. The opcode specifies the type of instruction to be executed.

28
Q

What is pipelining?

A

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

29
Q

What is pipelining aiming for?

A

To reduce the amount of the CPU which is kept idle. It is separated into instruction pipelining(IP) and arithmetic pipelining(AP). IP is separating out the instruction into fetching, decoding and executing. AP is breaking down the arithmetic operations and overlapping them as they are performed.

30
Q

What is fetch-code-execute

A

It is the sequence of operations that are completed in order to execute an instruction.

31
Q

What is the fetch phase in FDE (Fetch-Decode-Execute)?

A

-Address from the PC is copied to the MAR
-Instructions held at that address are 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

32
Q

What is the decode phase is FDE (Fetch-Decode-Execute)?

A

-The contents of CIR are split into operand and opcode

33
Q

What is the execute phase in FDE (Fetch-Decode-Execute)?

A

-The decoded instruction is executed

34
Q

The 3 factors that affect CPU performance:

A

Clock speed, Number of cores, the amount and type of cache memory

35
Q

What is clock speed?

A

The clock speed is the time taken for one click cycle to be completed.

36
Q

What does the clock speed do?

A

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

37
Q

What is the clock speed determined by?

A

The system clock

38
Q

What is the Number Of Cores?

A

A core is an independent processor that is able to run its own Fetch-Decode-Execute cycle.

39
Q

What can a computer with multiple cores do?

A

It can complete more than one Fetch-Decode-Execute cycle at any time.

40
Q

What can a computer with dual cores do?

A

It can complete tasks twice as fast as a computer with 1 core.

41
Q

Why cannot all programs utilise multiple cores efficiently?

A

As they have not been designed to.

42
Q

What is cache memory?

A

It is the CPU’s onboard memory.

43
Q

How is cache memory made + replaced?

A

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

44
Q

Cache Type - Level 1 cache Properies

A

Very fast memory cells with a small capacity (2-64KB)

45
Q

Cache Type - Level 2 cache Properies

A

Relatively fast memory cells, with medium size capacity. (256KB-2MB)

46
Q

Cache Type - Level 3 cache Properies

A

Much larger and slower memory cell

47
Q

What is Von Neumann’s Architecture?

A

This includes the basic components of the computer and processor (single control unit, ALU, registers and memory units) in which a shared memory and shared data bus is used for both data and instructions.

48
Q

What is Von Neumann’s Architecture built on?

A

It is built on the stored program concept.

49
Q

What is Harvard Architecture?

A

It has physically separate memories for instructions and data, more commonly used with embedded processors.

50
Q

Why is Harvard Architecture useful?

A

It is useful when memories have different characteristics (e.g. instructions may be read only, while data may be read-write).

51
Q

What/how does the Harvard Architecture allow you to optimise?

A

It allows you to optimise the size of individual memory cells and their buses depending on your needs (e.g. the instructions memory can be designed to be larger so a larger word size can be used for instructions)

52
Q

Advantages of Von Neumann’s Architecture :

A

-Cheaper to develop as the control unit is easier to design.
-Programs can be optimised in size.

53
Q

Advantages of Harvard Architecture :

A

-Quicker as data instructions can be fetched in parallel.
-Memories can be different sizes, which can make more efficient use of space.

54
Q

What does Contemporary Processing use?

A

It uses a combination of Harvard and Von Neumann’s Architecture.

55
Q

When is Harvard and Von Neumann’s Architecture used in Contemporary Processing?

A

-Von Neumann is used when working with data and instructions in the main memory
-Harvard is used to divide the cache into instruction cache and data cache