The CPU Flashcards

(23 cards)

1
Q

What does CPU stand for?

A

Central Processing Unit

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

What is the main function of the CPU?

A

It processes all of the data and instructions that make the system work.

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

Name three characteristics that affect the processing power of a CPU.

A
  • Clock speed
  • Number of cores
  • Cache size
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does CPU architecture describe?

A

The main components of the CPU and how they interact with each other and with other parts of the computer system.

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

What is the role of the Control Unit (CU) in a CPU?

A

It is in overall control of the CPU and executes program instructions.

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

What is the fetch-decode-execute cycle?

A

The process followed by the Control Unit to execute program instructions.

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

What does the Arithmetic Logic Unit (ALU) do?

A

It performs calculations and logic operations.

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

List two types of operations performed by the ALU.

A
  • Arithmetic operations (addition, subtraction)
  • Logic operations (AND, OR, NOT)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of the cache in the CPU?

A

To store regularly used data for quick access.

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

How does the CPU prioritize data retrieval between cache and RAM?

A

The CPU checks the cache first; if the data is not there, it fetches it from RAM.

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

Fill in the blank: The CPU contains various _______ which temporarily hold tiny bits of data needed by the CPU.

A

registers

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

True or False: The cache has a higher capacity compared to RAM.

A

False

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

What is the main job of the Control Unit?

A

To control the flow of data inside and outside the CPU.

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

What is the function of the program counter?

A

To hold the address of the next instruction to be executed.

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

What is the Memory Address Register (MAR) used for?

A

To hold the address of the memory location to be accessed.

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

What does the Memory Data Register (MDR) hold?

A

The data inside the address that is being fetched from memory or written to memory

17
Q

What are the steps of the Fetch Decode Execute cycle?

A

1.) PC is copied to the MAR
2.) The data inside the address that the MAR is pointing to is copied to the MDR
3.PC is incremented by 1
4.) CU decodes the instruction
5.) CU executes the decoded instruction

18
Q

What does the Von Neumann architecture describe?

A

A system where the CPU runs programs stored in memory

This architecture was proposed by John Von Neumann in 1945 and is foundational to most modern computers.

19
Q

What are the main components of the CPU in the Von Neumann architecture?

A
  • Central Processing Unit (CPU) – The brain of the computer, responsible for executing instructions. It consists of:
    Control Unit (CU) – Directs operations by fetching, decoding, and executing instructions.
    Arithmetic Logic Unit (ALU) – Performs mathematical and logical operations.
  • Memory Unit – Stores both instructions and data in the same addressable memory space. This is typically RAM.
  • Input/Output (I/O) Devices – Allow communication between the computer and the outside world, handling input (keyboard, mouse) and output (monitor, printer).
  • Registers – Small, fast storage locations in the CPU that temporarily hold data and instructions.

These components work together to fetch, decode, and execute instructions.

20
Q

What is the purpose of the accumulator?

A

Stores intermediate results of calculations in the ALU

The accumulator is essential for performing arithmetic and logic operations.

21
Q

What are the steps involved in the Fetch part of the Fetch-Decode-Execute cycle?

A
  • Copy memory address from PC to MAR
  • Copy instruction from MAR to MDR
  • Increment the PC

These steps prepare the CPU to execute the next instruction.

22
Q

What occurs during the Execute Instruction phase?

A

The instruction is performed, which could include:
* Load data from memory
* Write data to memory
* Do a calculation or logic operation
* Change the address in the PC
* Halt the program

This phase is where the actual work dictated by the instruction is carried out.

23
Q

What does the Control Unit (CU) do during the Decode Instruction phase?

A

Decodes the instruction in the MDR and prepares for the next step

The CU plays a crucial role in interpreting what the instruction means and what actions to take next.