Lecture 5: The Processor Flashcards

1
Q

The CPU is composed of…

A

A control unit, an arithmetic logic unit, special purpose registers and an on-chip cache.

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

The 3 main processor buses and their functions:

A

Data bus: transfers data to or from memory.
Address bus: for selecting specific memory location.
Control bus: for deciding where to read or write.

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

Name the processor’s registers:

A

1) Accumulator
2) Program Counter
3) Memory Access Register (MAR)
4) Memory Buffer Register (MBR)
5) Instruction Register (IR)
6) Condition Code Register
7) Stack Pointer

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

Name the two parts of an instruction code and what they each do.

A

Opcode - Instruction to execute.
Operand - Loction of data to execute on.

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

What is a collection of instruction codes?

A

Instruction set.

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

What is the “Fetch-Execute Cycle”? Explain the steps involved in a
Fetch-Execute cycle.

A
  1. Fetch the next instruction from memory into an Instruction Register (IR).
  2. Increment the Program Counter (PC) register to point to the next
    instruction.
  3. Determine the type of the instruction just fetched.
  4. If the instruction uses data stored in memory, fetch the data, into internal
    CPU registers.
  5. Execute the instruction.
  6. Store the result in the appropriate place.
  7. GOTO step 1.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a better register alternative to that of the simple accumulator architecture?

A

General Purpose Register (GPR).

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

Pros of General Purpose Registers.

A

Longer instructions, faster, more efficient for compilers and each register can be used as a separate accumulator.

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

Which special purpose register keeps track of where data will be accessed when pushing or popping?

A

Stack Pointer.

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

How does pipelining work?

A

Structuring instructions to be executed in parallel so as to increase efficiency.

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

Name the two interface types for I/O devices to communicate with CPU.

A

Memory-mapped and instruction-based.

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

Name the three ways a processor can control I/O device data. Explain them.

A

Programmed I/O, Interrupt-driven I/O & Direct Memory Access.

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