1.1.1 Structure and function of the processor Flashcards

1
Q

Purpose of the ALU?

A

● The ALU (Arithmetic and Logic Unit) completes the arithmetical and logicaloperations .

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

Purpose of the Control Unit?

A

● The Control Unit is the component of the processor which directs operations insidethe CPU . It has the following jobs:
○ 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 result back in memory

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

What are registers?

A

● Registers are small memory cells that operate at very high speeds,
● They are used to temporarily store data,
● All arithmetic, logical or shift operations occur in these registers

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

Purpose of the Program Counter?

A
  • Holds the address of the next instruction tobe executed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Purpose of Accumulator?

A
  • Stores the results from calculations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Purpose of Memory Address Register (MAR)?

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

Purpose of Memory Data Register (MDR)?

A
  • Temporarily stores data that has been reador data that needs to be written .
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Purpose of Current Instruction Register (CIR)?

A
  • Holds the current instruction being executed, divided up into operand andopcode .
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are Buses?

A

● Buses are a set of parallel wires which connect two or more components inside theCPU together
● The collection of the data bus, control bus, and address bus is called the systembus
● The width of the bus is the number of parallel wires the bus has.

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

What is the Data Bus?

A

● This is a bi-directional bus (meaning bits can be carried in both directions) used fortransporting data and instructions between components.

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

What is the Address Bus?

A

● Used to transmit the memory addresses specifying where data is to be sent to orretrieved from
● Adding a wire to the address bus doubles the number of addressable locations

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

What is a Control Bus?

A

● This is a bi-directional bus used to transmit control signals between internal andexternal components.

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

What are the control signals?

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 databus,
○ Interrupt request: shows that a device is requesting access to the CPU
○ Clock: used to synchronise operations

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

Explain the relationship of opcode with assembly language?

A

● Assembly code uses mnemonics to represent instructions.
● It is a simplified way of representing machine code .
● The instruction is divided up into operand and opcode
● Opcode is used to determine the type of instruction and what hardware to use to execute it.
● The operand is the address of where the operation is performed.

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

What is the fetch-decode-execute cycle?

A
  • The sequence of operations that are completed in order to execute an instruction.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
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, simultaneouslythe contents of the PC are increased by 1,
  • The value held in the MDR is copied to the CIR.
17
Q

What happens in the Decode Phase?

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

What happens in the execute Phase?

A
  • The opcode is executed on the operand.
19
Q

What are the factors affecting CPU performance?

A
  • Clock speed* Number of cores* Amount and type of Cache Memory
20
Q

How does Clock speed effect the CPU?

A

● Clock speed is determined by the system clock
● All processor activities begin on a clock pulse
● Each CPU operation starts as the clock changed from 0 to 1
● The clock speed is the number of clock cycles completed in a second.

21
Q

How do the number of cores effect the CPU?

A

● A core is an independent processor that is able to execute its own fetch-executecycle
● A computer with multiple cores can complete more than one fetch-execute cycle atany given time
● Some programs aren’t optimised for the use of more than one core.

22
Q

How does cache memory effect the CPU?

A

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

23
Q

What are the types of cache memory?

A

Level 1 Cache:Very fast memory cell, however it also has a small amount of capacity. (2-64KB)
Level 2 Cacher:Relatively fast memory cell, with medium sized capacity. (256KB-2MB)
Level 3 Cache:Much larger and slower memory cell.

24
Q

What is pipelining?

A

● Pipelining: The process of completing the fetch, decode, and execute cycles of three separate instructions simultaneously
● Data is held in a buffer in close proximity to the CPU until it’s required
● Pipelining is aimed to reduce the amount of the CPU which is kept idle .

25
Q

What is the Von Neumann Architecture?

A

● Von Neumann includes a single control unit , ALU , registers and memory units
● Shared memory and data bus used for both data and instructions.

26
Q

Describe the Harvard Architecture

A

● Physically separate memories for instructions and data
● More commonly used with embedded processors

27
Q

What are the advantages of Von Neumann Architecture

A
  • Cheaper to develop since the control unit is easier to design.
  • Programs can be optimised in size .
28
Q

What are the advantages of Harvard Architecture?

A
  • Quicker since data and instructions can be fetched in parallel.
  • Both memories can be different sizes ,
29
Q

What is contemperary processing?

A

● The combination of Harvard and Von Neumann architecture
● Uses Von Neumann when working with the data and instructions in main memory
● Uses Harvard when working with cache.
● There is an instruction cache and data cache.