• Structure Of The Processor ( 1 ) Flashcards

1
Q

What are the various components of the CPU?

A
  • Control Unit
  • Busses
  • Arithmetic Logic Unit
  • Dedicated Registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the control unit?

A

• Part of the processor which co-ordinates the activity of all other components.

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

What is the purpose of the control unit?

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

What is a bus?

A
  • Series of connectors that transfer signals between internal components.
  • Set of parallel wires connecting two or more components of a computer.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the system bus?

A
  • A set of three separate busses, that carry control signals, addresses and data.
  • This is also how the processor is connected to main memory.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the busses that make up the system bus?

A
  • Control Bus
  • Data bus
  • Address Bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of the control bus?

A

Transmit command, timing and specific status information between system components.

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

What directional bus is the control bus?

A

Bi-directional bus, this means signals can be carried in both directions.

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

Why are control lines needed?

A
  • Data and address busses are shared by all components of the system
  • Control lines must be provided to ensure that access to and use of the data and address busses by the different components of the system does not lead to conflict
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the various control signals?

A
  • Memory Read
  • Memory Write
  • Bus request
  • Bus grant
  • Clock
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does memory read do?

A

Causes data from the addressed location in RAM to be placed on the data bus

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

What does memory write do?

A

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

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

What does bus request do?

A

Indicates that a device is requesting use of the data bus

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

What does bus grant do?

A

Indicates that the CPU has granted access to the data bus

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

What does clock do?

A

Used to synchronise operations

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

What does the arithmetic logic unit do?

A

Arithmetic logic unit performs arithmetic, logical and shift operations on data

17
Q

What are some examples of arithmetic operations?

A
  • Add
  • Subtract
  • Multiply
  • Divide
18
Q

What are some examples of logical operations carried out by the ALU?

A
  • AND
  • OR
  • NOT
  • XOR
19
Q

What are some examples of shift operations carried out by the ALU?

A

Moving bits to the left or right within the register.

20
Q

What are registers?

A

Special memory cells that operate at very high speed.

21
Q

Where do the calculations of the ALU get stored?

A

Accumulator stores its data in a register called the accumulator.

22
Q

Why are registers needed?

A
  • Main memory is too slow for working data to be stored

* Processor will be then able to immediately access and re use these results in further calculations.

23
Q

What are the various dedicated registers?

A
  • Program Counter
  • Current Instruction Register
  • Memory address register
  • Memory data register
24
Q

What is the purpose of the program counter?

A

• Holds the memory address of the next instruction to be executed.

25
Q

What is the purpose of the current instruction register?

A

• Holds the current instruction being executed
• Split into:
- Opcode
- Operand

26
Q

What is the purpose of the memory address register?

A

• Holds the address of the memory location from which data is to be fetched, or to which data is to be written

27
Q

What is the purpose of the memory data register?

A
  • Temporarily store the data read from or written to memory.

* Temporarily holds data moving between the processor and main memory.

28
Q

What is the purpose of the accumulator?

A

• hold intermediate results of an instruction

29
Q

What is the purpose of the processor?

A

• Carry out out instructions from programs stored in memory.

30
Q

What are the steps of the fetch decode execute cycle?

A
  1. Address of the next construction is copied from the PC to the Memory Address Register ( MAR )
  2. Instruction held at that address is copied to the memory data register
  3. Simultaneously, the contents of the program counter ( PC ) are incremented
  4. Contents of the MDR are copied to the current instruction register ( CIR ).
31
Q

What are the steps of the decode stage?

A
  1. Instruction is held in the CIR, it is decoded.
  2. Split into operand, and opcode to determine the type of instruction, additional data where required is fetched from memory.
  3. Passed to the accumulator
32
Q

What is the execute stage?

A
  • Appropriate instruction/opcode is carried out on the operand
  • Result held in accumulator or stored in memory.
33
Q

What is the opcode?

A

Opcode is used to determine the type of instruction, and what hardware to use to execute it.

34
Q

What is the operand?

A

Holds either:
• Address of the of the data to be used with the operation, which is copied to the MAR.
or
• 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.

35
Q

What is the purpose of the data bus?

A

• Provides a bi directional path for moving data and instructions between system components.