7.3 Structure and role of the processor and its components Flashcards

1
Q

What are the 3 main things do processors contain?

A

Arithmetic logic unit (ALU), Control unit, Registers

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

What is the role of the ALU?

A

To perform arithmetic and logic operations. Arithmetic operations are mathematical operations and logic operations include AND, OR and XOR.

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

What is the role of the control unit?

A

It is responsible for controlling the carious components of the processor. It also controls the fetch-decode-execute cycle.

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

What is the role of the registers?

A

They are small storage locations used to hold data temporarily. They have high read and write speeds.

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

What is the difference between general purpose and specific purpose registers?

A

General purpose registers can be used as storage for any data that is required by instructions during execution. Special purpose registers are assigned to the storage of specific information.

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

What is the role of the Program counter (PC)?

A

Used to hold the memory address of the next instructions to be executed in the fetch-execute cycle

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

What is the role of the Current instruction register (CIR)?

A

Holds the instructions that is currently being executed by the processor

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

What is the role of the Memory address register (MAR)?

A

Stores the memory address of a memory location that is to be read or written from.

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

What is the role of the Memory buffer register (MBR) or Memory data register (MDR)?

A

Holds the contents of a memory location that has been read from or data that is to be stored.

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

what is the role of the status register (SR)?

A

Contains a number of bits, the values of which can change to indicate the occurrence of an interrupt.

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

What is the role of the clock?

A

A device that generates a timing signal which changes at a regular frequency. This signal is used to synchronise communication between the components of the processor and the rest of the computer system.

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

What is the fetch-execute cycle?

A

It is a continuous cycle performed by the processor. It consists of 3 stages: fetch, decode and execute.

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

Describe the Fetch process in the Fetch-execute cycle?

A

the next instructions to execute is retrieved from main memory.
1. The content of the Program counter (PC) is copied to the Memory address register (MAR).
2. The content of the Memory address register (MAR) is transferred to main memory by the address bus
3. The instruction is sent from the main memory to the Memory buffer register (MBR) by the data bus
4. The program counter is incremented by 1
5. The content of the Memory Buffer register (MBR) is copied to the Current Instruction register (CIR)

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

Describe the Decode process in the Fetch-execute cycle?

A

the fetched instruction is decoded
1. The content of the Current instruction register (CIR) is decoded by the control unit
2. The decoded instruction is split into 2 parts: opcode and operands

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

Describe the Execute process in the Fetch-execute cycle?

A

The instruction is carried out
1. Any data required by the instruction that isn’t present in registers is fetched
2. The instruction is carried out
3. Results of any calculation are stored in general purpose registers or main memory

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

Explain how the computer checks for interrupts?

A

Between each execute stage and fetch stage of the Fetch-execute cycle the content of the status register is checked for changes that could signify the occurrence of an interrupt.

17
Q

What is a processor’s instruction set and its compatibility?

A

The group of instructions that a processor can carry out. Each type of processor has its own instruction set, so instructions for one processor may not be compatible with other processors.

18
Q

How are you instructions usually stored within a computer system?

A

they are usually stored in machine code and consist of 2 primary parts: opcode and operands

19
Q

What does Opcode do?

A

It specifies the type of operation that is to be carried out

20
Q

What do Operands do?

A

they are the pieces of data on which the operation is performed.

21
Q

What are addressing modes?

A

One bit in a machine code instructions. There are 2 types immediate and direct.

22
Q

How does immediate addressing work?

A

the value specified in the operand is to be treated as the actual value.

23
Q

How does direct addressing work?

A

The value specified by an operand signifies a memory address.

24
Q

What is Logic shifting?

A

It is an operation that can be performed on binary numbers which involved shifting all the bits in a number (doubling or halving the number) a specified number of positions to the left or right.

25
Q

Define Interrupts?

A

A signal sent to the processor by another part of the computer requesting the attention of the processor. software can send interrupts which may result in unexpected errors like division by 0 or stack overflow.

26
Q

How are Interrupts handled?

A

Using the vectored interrupt method. 1.When they occur the processor stops executing the current program and places the content of its registers into the system stack. This is referred to as saving volatile environment.
2. The processor then loads the appropriate interrupt service routine: a series of instructions for handling the interrupt that is specific to the type of interrupt.
3. Once the processor finishes executing the interrupt service routine, it restores the volatile environment from the system stack and resumes execution of any programs that were running before the interrupt.

27
Q

What are the 6 factors that can affect a processor’s performance?

A

Number of cores, Cache memory, Clock speed, Word length, Address bus width and Data bus width

28
Q

How does the number of cores affect a processors performance?

A

Each core can perform its own fetch-execute cycle independently of others, so different applications can be allocated different cores.

29
Q

How does the Cache memory affect a processors performance?

A

Cache is a small portion of very fast memory. It has read write speeds far higher than hard disk drives and SSDs. Cache is used to store frequently used information and reduces time wasted in fetching the same information from main memory over again. The more cache a processor has the more information it can store and the more time it can save fetching information from main memory.

30
Q

How does the clock speed affect a processors performance?

A

It related to the frequency of the pulses generated by the system clock. The higher the frequency the more cycles of the fetch execute cycle can be completed in the same period of time. However if the speed Is increased too far it can cause errors

31
Q

How does the Word length affect a processors performance?

A

A word is a group of bits that is treated as a single unit by a processor. Words can be used for representing both instructions and data. The length of a word is the number of bits that are assigned to it, with higher word lengths allowing for more bits to be transferred and manipulated as a single unit.

32
Q

How does the Address bus width affect a processors performance?

A

the width of a bus related to the number of parallel wires that make up the bus. Increasing the width of the address bus increases the range of addresses that it can specify, hence increasing the computer’s amount of addressable memory. Adding a single wire doubles the number of addressable memory locations.

33
Q

How does the Data bus width affect a processors performance?

A

Increasing the width of the data bus increases the volume of data that can be transferred over the bus at any one time. A wider data bus allows the processor to fetch more data from main memory in one cycle of the fetch-execute cycle, reducing the number of cycles required to fetch large volumes of data.