the CPU Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is the CPU?

A

The CPU is the central processing unit. It processes all of the data and instructions that make the system work. It is made up of three main parts- the control unit, the arithmetic logic unit and the cache.

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

What is the control unit and what is its function?(CU)

A

The control unit is in overall control of the CPU. Its main job is to execute program instructions by following the fetch-decode-execute cycle.
It controls the flow of data inside the CPU to outside the CPU.

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

What is the arithmetic logic unit and whats is its function?(ALU)

A

The ALU does all the calculations. It completes simple addition and subtraction, compares the size of numbers and can do multiplications and divisions.
It performs logic operations and binary shifts.
It contains the accumulator register.

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

What is the Cache and what is its function?

A

The cache is very fast memory in the CPU. It slower than the registers but faster than RAM.
It stores regularly used data so that the CPU can access it quickly the next time its needed. When the CPU requests data, it checks the cache first to see if the data is there. If not it will fetch it from the RAM.

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

Do caches have a lower or higher capacity than RAM and secondary storage?

A

Has very low capacity

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

Are caches expensive compared to RAM and secondary storage?

A

They are expensive

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

What are the different levels of cache memory?

A

L1, L2 and L3

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

What are the features of L1?

A

It is the quickest but has the lowest capacity.

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

What are the features of L2?

A

L2 is slower than L1 but can hold more.

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

What are the features of L3?

A

L3 is the slowest out of L1 and L2 but can hold the most.

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

What is a register?

A

A register is a temporary data store in the CPU. They are super quick to read/write to, quicker than any other form of memory.

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

What are examples of registers?

A

Program counter, MAR, MDR and accumulator.

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

What is the Von Neumann architecture?

A

It describes a system where the CPU runs programs stored in memory.

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

What are programs?

A

Programs consist of instructions and data which are stored in memory addresses.

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

What is a feature of the Von Neumann architecture?

A

It only uses one memory for both the data and the instructions.

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

What is the program counter?

A

The program counter(PC) holds the memory address of the instruction for each cycle.

17
Q

What is the accumulator?

A

The accumulator stores intermediate results of the calculations in the ALU.

18
Q

What is MAR?

A

The memory address register(MAR) holds any memory address about to be used by the CPU. The address might point to data or a CPU instruction.

19
Q

What is MDR?

A

The memory data register(MDR) holds the actual data or instruction. This may have been fetched from memory or be waiting to be written to memory.

20
Q

What does the memory hold?

A

The memory holds the program instructions and the program data.

21
Q

How does the CPU actually work, what cycle does it follow?

A

fetch-decode- execute cycle

22
Q

What does the fetch instruction do?

A

1) Copy memory address from the program counter
2) Copy the instruction stored in the MAR address to the MDR.
3) Increase the program counter to point to the address of the next instruction, ready for the next cycle.

23
Q

What does the decode instruction do?

A

The instrcution in the MDR is decoded by the CU. The CU may then prepare for the next step e.g by loading values into the MAR or MDR.

24
Q

What does the execute instruction do?

A

The instruction is performed. This could be:

Load data from memory, write data to memory, do a calculation or logic operatio, change the address or halt the program.

25
Q

What does CPU performance depend on?

A

Clock speed, cores and cache. CPUs with higher clock speeds, more cores or larger caches will have better performance, but will also be more expensive.

26
Q

What is clock speed?

A

Clock speed is the number of instructions a single processor core can carry out per second. For most computers it will be around 3.5GHz.

27
Q

How does clock speed affect CPU performance?

A

The higher the clock speed, the greater the number of instructions that can be carried out per second.

28
Q

What are the dangers of having a high clock speed?

A

Some CPUs can be overclocked to make them run at a higher clock speed than the factory set rate. But it is risky if not done properly as it can make CPUs overheat, causing crashes or permanent damage to the system.

29
Q

What can help a overheated CPU with a high clock speed?

A

High performance cooling systems

30
Q

How do the number of cores affect the performance of the CPU?

A

Each core in a CPU can process data independently of the rest. The more cores a CPU has, the more instructions it can carry out at once, so the faster it can process a batch of data. Most smartphones have 4 or more cores.

31
Q

What is a core?

A

A processing unit found inside the CPU

32
Q

What is cache?

A

Cache is data storage inside the CPU that’s much faster than RAM.

33
Q

How does cache affect CPU performance?

A

A larger cache gives the CPU faster access to more data it needs to process.