The CPU Flashcards

1
Q

What does a CPU do?

A

It acts as the brain of the computer system, it processes all the data and instructions that make the system workl

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

How is the speed and power of a CPU determined?

A

It depends on the clock speed, amount of cores and cache size

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

What types of structure of CPU are the most common?

A

Von Neumann and Harvard architechtures

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

What are the three main parts of a CPU?

A

The control unit (CU), arithmetic logic unit (ALU), and the cache

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

What is the Control Unit?

A

It has overall control of the CPU. It starts program instructions by following the fetch-decode-execute cycle. It controls data flow inside and outside CPU

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

What is the ALU?

A

It completes all the calculations. Can do addition, subtraction, compare size or numbers. Contains an accumulator part. Performs basic logic operations such as AND, OR and NOT

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

What is the cache?

A

It is very fast memory, faster than RAM but slower than the registers (MDR and MAR). Stores regularly used commands by the CPU. They are expensive and have a low capacity. Different levels level 1 is the fastest bu lowest capacity and level 3 is the largest but alos the slowest

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

What is in Von Neumans CPU architecture?

A

Program counter, accumulator, memory adress register, memory data register

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

What does the program counter (PC) do?

A

Holds the memory address of the instruction for each cycle (counts the stage of each line)

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

What does the accumulator do?

A

Stores intermidiate results of calculations in the ALU

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

What does the memory adress register do?

A

Holds any memory adress about to be used by the CPU, could point to a price of data or an CPU instruction

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

What does the memory data register do?

A

Holds actual data or instruction. Data Could have been taken in by the RAM or other memory sources

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

What cycle do CPUs follow?

A

The Fetch-Decode-Execute cycle

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

What is the fetch part of the cycle?

A

Copy the memory adress from the program counter to the MAR, then the instruction gets copied to the MDR, the program counter increments to point to the memory adress of the next instruction ready for the next cycle

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

What happens in the decode part of the cycle?

A

The instruction in the MDR is decoded by the CU, then th CU prepares for the next step and loads the values into the MAR or MDR

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

What happens in the execute cycle?

A

The instruction is performed, if a calculation it will be done in the ALU if you change the adress that’ll be done in the PC or it may be to halt the program