CPU Component & FDE Cycle Flashcards

1
Q

what is a CPU ?

A
  1. Central processing unit.
  2. it has different components that allow it to carry out its tasks.
  3. it execute instructions.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the purpose of control unit?

A
  1. it is used to control and coordinates the activates of the CPU
  2. it is used to manage the flow of data between the CPU and other devices.
  3. it is used to accept the next instruction
  4. it decodes and executes the instruction
  5. it stores back the resulting data in the main memory or in registers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are buses?

A
  1. busses are a set of parallel wires that are used to connect tow or more components insides of the CPU.
  2. busses typically include 8,16,32 and 64 lines.
  3. the width of the bus is the number of parallel wires it has.
  4. the width of the bus is directly proportional to the number of bits it can transform.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is a control bus?

A
  1. it is a bi - directional bus that is used to send control signals in both directions.
  2. there are control lines that aim to reduce conflict between components and devices because the data and address busses are shared between them.
  3. it provides status information between system components.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what are the control signals?

A
  1. Bus request : it is when a device or a components is requesting the CPU to use the data bus
  2. Bus grant : it is when the CPU grant a device or a component to use the data bus.
  3. Memory write : data on the data bus to be written to the addressed location.
  4. Memory read : data from the address location to be put on the data bus.
  5. Interrupt request : it is when a device is requesting to access the CPU.
  6. Clock : it synchronise the CPU’s operations.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is the data bus ?

A
  1. it is a bi directional bus that is used to transfer data in both directions.
  2. it typically consist of 8,16,32 and 64 lines.
  3. it transfers data and also instructions. ( this means that it does not only transfer data)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is an address bus ?

A
  1. it is used to transmit memory addresses by specifying where data is to be sent or retrieved from.
  2. the width of the address is proportional to the number of addressable location it can have.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the ALU ?

A
  1. Arithmetic and Logical Unit
  2. it is used to carry out all the arithmetic and logical operations in the CPU.
  3. arithmetic operations like:
    ADD
    SUBTRACT
    MULTIPLY
    DEVIDE
  4. logical operations like:
    AND
    OR
    NOR
    XOR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what are registers ?

A
  1. small fast memory cells that is used to temporarily store data.
  2. all arithmetic , logical and shift operations occur in registers.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what are the names and functions of registers ?

A
  1. PC is used to hold the address of the next instruction to be executed.
  2. MAR is used to hold the address of the location in memory of the data that is to be read from or written to.
  3. MDR is used to temporarily store the data that has been read or data that needs to be written.
  4. CIR is used to hold the current instruction being executed, it is split into opcode and operand.
  5. ACC is used to store the results from calculations.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what is the FDE cycle ?

A

it is a sequence of operations that are used to execute an instruction.

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

What are the phases of the FDE cycle ?

A

Fetch phase :
1. the address from the pc is copied to the MAR

  1. the content of the PC is incremented by 1, so that it holds the address of the next instruction.
  2. the data from that addressed location in memory is then transferred to the MDR by using the data bus.
  3. the content of the MDR is then copied to the CIR

Decode phase :
5. the instruction is split into opcode and operand

Execute phase:
6. the instruction is then carried on the operand.

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

what is an opcode ?

A

an opcode is used to determine the type of instruction and what hardware to use to execute it.

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

what is an operand

A

an operand will hold either:

  1. the address of the data that is to be used, which is then copied to the MAR.
  2. the actual data to be operated on, which is then copied to the MDR.
  3. the data that is to passed to the ALU/ACC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly