STRUCTURE OF THE PROCESSOR Flashcards

1
Q

What is the function of the control unit?

A
  • coordinates all activities of CPU
  • directs flow of data between CPU and other devices
  • accepts next instruction, decodes it, handles its execution and stores resulting data back in memory/registers
  • sends memory read and write requests to main memory on control bus as well as other commands and control signals (eg: bus requests, bus grants, etc.)
  • coordinates and communicates with all parts of CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the function of the program counter (PC)?

A

holds address of next instruction to be executed (could be next instruction in a sequence of instructions/address to jump to if current instruction is a command to jump/branch

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

What is the function of the memory address register (MAR)?

A
  • holds address of memory location from which data is to be fetched/to which data is to be written
  • sends address to memory down address bus
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the function of the memory data register (MDR)?

A
  • used to temporarily store data which is read from/written to memory
  • all data to and from memory must travel down data bus and pass through MDR
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the function of the current instruction register (CIR)?

A
  • holds current instruction being executed
  • contents of MDR copied into CIR if its an instruction
  • contains opcode and operand(s) of current instruction to be executed
  • instruction = opcode + operand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the function of the arithmetic logic unit (ALU)?

A
  • performs arithmetic (+) and logical (boolean) operations on data
  • bitwise shift operators left and right ( x and ÷)
  • often uses general purpose registers to temporarily hold results of calculations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the function of the accumulator (ACC)?

A
  • general purpose register (CPU may have many for storing temporary data while instructions/calculations are being carried out. typically, the more general purpose registers in a CPU the faster it operates)
  • often stores data/control info
  • temporarily stores results of calculations carried out by ALU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the function of the address bus?

A

carries memory addresses that identify where data is being read from/written to

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

What is the function of the data bus?

A

carries binary 1s and 0s that make up actual info being transmitted around CPU/computer

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

What is the function of the control bus?

A

carries command and control signals to and from every other component of the CPU/computer

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