CPU performance, power, safety, and security Flashcards

1
Q

What are the four stages in a CPU cycle? Which of these stages are performed by RAM?

A

Fetch, decode, execute, store (no storing stage in ARM7)

RAM does storing and fetching

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

What is a pipeline bubble?

A

A stage that isn’t performing useful work due to a lack of data from a early stage

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

What is latency and throughput? Which is increased by pipelining?

A

Latency: time for an instruction to get through the pipeline
Throughput: number of instructions executed in a time period
Throughput increased by pipelining

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

What is the cache for?

A

Immediate access to data

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

How does a bigger cache impact the computer?

A

Better performance

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

What is a cache miss?

A

When data is not found in the cache and computer must search the database

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

What is a compulsory miss?

A

The location has not been referenced before or the data has never been in the cache

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

What is a conflict miss?

A

Two locations are fighting for the same block, so some data was pushed out

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

What is a capacity miss?

A

The cache was too small for all the data, so some data was pushed out

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

How can latency from cache misses be reduced?

A

Use a sample policy to remove data less likely to be used.

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

What are the four sample policies for cache management?

A
  1. First in first out
  2. Last in first out
  3. Least recently used
  4. Most recently used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What factors do energy and power consumption impact?

A

Energy consumption impacts battery life.
Power consumption impacts heat generation.

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

Explain dynamic voltage and frequency scaling (DVFS) as a power management strategy

A

Reduce supply voltage when performance can be lowered. Use for dynamic power management.

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

Explain race-to-dark as a power management strategy

A

If power consumption is dominated by static power, run as fast as possible, then remove power supply from logic

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

What is the difference between static and dynamic power management?

A

Dynamic depends on CPU, static does not

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