CPU Flashcards

1
Q

What’s the purpose of the CPU

A

Runs the instructions from a program

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

What is Von Neumann architecture

A

Both program instructions and the data the programs are using are both stored in the same places

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

What are the 2 major components of the CPU

A

-Control unit
-Arithmetic-logic unit (ALU)

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

What are registers and what are they used for

A

A very fast memory location in the CPU itself that are used to carry out operations

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

Name the 4 registers in the CPU

A

-Program counter (PC)
-Memory address register (MAR)
-Memory data register (MDR)
-Accumulator

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

What does the program counter do

A

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
7
Q

What does the memory address register do

A

Holds the memory address of the current instruction, andthen the data that it uses, so that these can be fetched from memory

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

What does the memory data register do

A

Holds the actual instruction, and then the data that has been fetched from memory

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

What does the accumulator do

A

Holds the result of an instruction before it is transferred to memory

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

What does he control unit do

A

It coordinates and controls all of the activities taking place within the CPU
-It decodes instructions and executes them
-it receives signals from the system clock
-It directs the timing and control of other parts of the CPU

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

What does the arithmetic logic unit do

A

Where the actual arithmetic operations are done. Also carries out logical operations

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

What is the fetch-decode-execute cycle

A

The CPU operates by repeating three operations
-FETCH: causes the next instruction and any data involved to be fetched from main memory
-DECODE: decodes the instruction
-EXECUT: the instruction is executed
This process is then repeated…

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

What does the program counter do

A

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
14
Q

What does the accumulator do

A

Where the arithmetic and logic results are temporarily stored

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

What’s the order

A

1) The control unit decodes the instruction and decides if the data needs to be fetched
2) If so the MAR is then used to hold the address of the data to be used in the instruction
3) The data is fetched and copied to the MDR

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

What effect the CPU peformance

A

-Clock speed
-Processor cores
-Cache

17
Q

What is the clock speed

A

The amount of cycles per second measured in hertz (Hz). Therefore the faster the clock speed the faster the instructions are processed

18
Q

What’s a dual-core

A

Has two processors in the same integrated circuit, linked together

19
Q

What do dual-core processors have the potential to do

A

Perform twice as many instructions, however it doesn’t always perform to the rate as software may not be able to take advantage of both cores

20
Q

What is cache memory

A

A small amount of very fast, expensive memory in the CPU

21
Q

How does cache effect speed

A

RAM is a relativley slow memory to access and it’s further away from the processor that cache

22
Q

What is cache used for

A

Program instructions and data that are fetched are stored in cache in case they are needed again soon

23
Q

What are the benefits of cache

A

The data used most often by the CPU is available extremely quickly

24
Q

What are embedded systems

A

A single microprocessor that includes RAM. ROM and a CPU.

25
Q

What are the 2 types of primary storage

A

-RAM (Random access memory)
-ROM (Read only memory)

26
Q

What can RAM do

A

Can be read from and written to

27
Q

What does the RAM usually store

A

-The operating system (or part currently in use)
-The software currently in use
-The data which the software is using

28
Q

What does volatile mean

A

It loses the data if the power is off

29
Q

Is RAM volatile or non-volatile

A

Volatile

30
Q

What’s usually put on RAM first

A

The operating system

31
Q

What happens if you run out of space on RAM

A

Virtual memory in the hard disk is used as an extension

32
Q

What are the advantages of virtual memory

A

-Uses cheap secondary storage on the hard drive
-Prevents error messages saying ‘out of memory’ – the programs and files will still open

33
Q

What are the disadvantages of virtual memory

A

-Accessing virtual memory is very slow
-To access data, the existing data in RAM needs to be copied to the virtual memory, then data in virtual memory needs to be copied to RAM

34
Q

What can be done on ROM

A

Can be read from but not written to

35
Q

Is ROM volatile or non-volatile

A

Non-volatile

36
Q

What does ROM store

A

-The initial program that is run when the computer is turned on (bootstrap)
-The basic input/output system (BIOS)

37
Q

What does the bootstrap do

A

It tells the computer where it will find the operating system on the hard drive

38
Q

What does the BIOS do

A

It controls basic technical configuration of the computer such as the processor speed and system time