šŸ‘¾ The CPU Flashcards

You may prefer our related Brainscape-certified flashcards:
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

ie. why is it important?

define the purpose of the CPU in a computer

A
  • it is responsible for all of a computerā€™s processing (like a brain)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

all connect to the CPUā€¦

What are the main components of a computer (there are 4)?

A
  1. Main memory
  2. input devices
  3. secondary storage
  4. output devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is the Von Neumann architecture?

A

A computer architecture model proposed by John von Neumann in the mid-20th century, which forms the basis for most modern computers.

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

what are the components of the Von Neumann architecture (there are 5)?

A
  1. CPU
  2. memory unit
  3. control unit
  4. ALU
  5. input/output devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what are the registers in the CPU (there are 4)?

A
  1. program counter
  2. ALU
  3. Control unit
  4. General Purpose Registers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

explain a program counter

A

A special purpose register that holds the address of the next instruction to be executed

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

explain the general purpose registers

A
  • they hold data, such as numbers during arithmetic calculations
  • Some architectures have just a single register called the Accumulator
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

where is the program counter located?

A

in the control unit

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

How does the program counter work?

A
  1. The Program Counter points
    to the next instruction that
    needs to be executed
  2. The Program Counter is
    incremented after fetching
    an instruction
  3. This moves it on to point to
    the next instruction to be
    executed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Explain the accumulator

A
  • The accumulator is where
    arithmetic and logic results are
    temporarily stored much like the
    M+ function on a calculator
  • Speeds up the storage and retrieval of calculations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why is the accumulator important?

A

Without the accumulator, it would
be necessary to write the result of
each calculation to main memory (aka. Would take much longer and is a waste of time, so the accumulator does this long, boring job for us instead!)

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

What does ALU stand for?

A

Arithmetic Logic Unit

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

Explain the ALU (has 3 functions)

A

It performs:
1. Logical operations
2. Shift operations
3. Arithmetic operations

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

what are the two memory registers to implement the von Neumann architecture?

A

MAR and MDR

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

what does MAR stand for?

A

Memory Address Register

17
Q

what are the (3 main) functions of the MAR?

A
  1. Holds the address of the current instruction being done
  2. knows the location of data that needs to be accessed
  3. keeps track of where data is located
18
Q

what does MDR stand for?

A

Memory Data Register

19
Q

what are the (2 main) functions of the MDR?

A
  1. Holds the actual data being stored in RAM
  2. acts as a buffer and holds data thatā€™s copied from RAM, ready for CPU to process it
20
Q

How does the MDR and the MAR work together?

A

The MAR knows where to look for data in RAM, and the MDR keeps hold of that data until itā€™s ready to be used by CPU

21
Q

explain the control unit

A

it coordinates all the activities taking place

like a comductor of an orchestra

22
Q

what are the main parts of a processor register (6 of them)?

A
  1. accumulator
  2. MDR
  3. CIR
  4. PC
  5. MAR
  6. Main Memory
23
Q

in a processor registerā€¦

what does the PC do?

A

points to the next instruction

24
Q

in a processor registerā€¦

what does CIR stand for?

A

Current Instruction Register

25
Q

in a processor registerā€¦

What is the CIRā€™s function?

A

Holds the current instruction to be excecuted

26
Q

how does the CPU operate (hint: it repeats three operations)?

A

FETCH - DECODE - EXCECUTE

27
Q

FETCH - DECODE - EXECUTE

explain the FETCH operation

A

causes the next instruction and any data involved to be fetched from the main memory

28
Q

FETCH - DECODE - EXECUTE

explain the DECODE operation

A

decodes the instruction from FETCH

29
Q

FETCH - DECODE - EXECUTE

explain the EXECUTE operation

A

carries out the instruction from DECODE

30
Q

what are the three most common factors which affect the CPUā€™s performance?

A
  1. Clock Speed
  2. Processor Cores
  3. Type and size of memory
31
Q

explain what clock/ processor speed is

A

cycles per second measured in hertz (How much instructions is carried out in a second)

1 Kilojerz (KHz) = 1000 cycles

eg. 1 Hertz (Hz) = 1 instruction per sec. 1 kilohertz (KHZ) = 1000 cycle

cycles is the same as instructions

32
Q

How does the amount of processor cores one has affects the performance of the CPU?

A

Modern CPUs often have multiple processing cores, allowing them to execute multiple tasks simultaneously. More cores generally lead to better multitasking performance and increased throughput. However, sometimes the computerā€™s donā€™t utilise these extra cores, and ends up being a waste

33
Q

what is another name for type and size memory?

A

Cache size/memory

34
Q

define cache memory

A
  • Itā€™s a small amount of very fast, expensive memory in the CPU
  • Can be accessed faster than the RAM
  • reduces the time required to access frequently used data and instructions, improving overall system performance
35
Q

how does the size of cache memory affect the CPUā€™s performance?

A

A larger cache, particularly the level 1 (L1) and level 2 (L2) caches, can reduce the time spent accessing data from main memory

ie. can make the computer run smoother and faster

36
Q

what is the role of cache memory?

A

serves as a buffer between the CPU and main memory (RAM), storing frequently accessed data and instructions for quick access by the CPU