1 - Processor Components Flashcards

1
Q

What does CPU do

A

executes instructions and processes data by following fetch-decode-execute cycle

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

3 functions of CU (Control Unit)

A
  • Controls and coordinates the activities of CPU
  • Directs the flow of data between the CPU and other devices
  • Decodes instructions in FDE cycle
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a bus

A

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

What is system bus made up of

A

address bus, data bus and control bus

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

What does system bus do

A

Connect CPU to main memory

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

Address bus

A
  • sends memory address that processor needs to access from CPU to RAM
  • Unidirectional: CPU -> RAM
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

control bus

A

sends control signals from the control unit to coordinate use of address and data bus, ensuring it doesn’t lead to conflict
- Bi-directional

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

Data bus

A
  • Carries data and instructions between processor and memory

- Bi-directional

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

ALU

A

performs arithmetic (e.g add/subtract) and logical (e.g AND, OR, NOT) operations

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

Accumulator

A

a register that temporarily stores intermediate results from ALU until they’re written to memory

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

Registers

A

Registers are small, very fast memory cells within the processor that temporarily store data

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

PC

A

holds memory address of the next instruction to be executed

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

CIR

A

holds current instruction being executed, divided into operand and opcode

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

MAR

A

holds memory address of the instruction or data to be accessed

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

MDR

A

holds the instruction or data that has been accessed from memory

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

Fetch stage of FDE cycle

A

1) Memory address of next instruction is copied from PC to MAR via the address bus
2) Address in MAR is sent along address bus to RAM
3) Contents of the address (either a data or instruction) is sent along the data bus from RAM to MDR
4) Contents of MDR is copied into CIR
5) Address in PC is incremented to point to next instruction

17
Q

Decode stage of FDE cycle

A

1) Instruction in CIR is sent to control unit

2) Control unit interprets the instruction and splits it into opcode and operand.

18
Q

What is opcode

A

aka operation code – the command

19
Q

What is operand

A

the address or the data for the opcode to use

20
Q

What happens at end of each FDE cycle

A

Check for presenceof interrupts

21
Q

What is opcode represented as in assembly language

A

a mnemonic such as ADD or SUB