GOOD Cache

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/55

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:33 PM on 4/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

56 Terms

1
New cards

What type of RAM is used for cache memory and is faster and more expensive?

SRAM

2
New cards
3
New cards

What type of RAM is used for main memory and is slower and less expensive?

DRAM

4
New cards
5
New cards

How many transistors make up an SRAM cell?

6 transistors

6
New cards
7
New cards

What component stores each bit in DRAM?

A capacitor and one transistor

8
New cards
9
New cards

Does SRAM need to be refreshed while powered?

No - it holds its value without refreshing

10
New cards
11
New cards

Is DRAM sensitive to voltage disturbances?

Yes - very sensitive and cannot recover if power is lost

12
New cards
13
New cards

What does RAS stand for and what does it do?

Row Access Strobe - selects the row in DRAM

14
New cards
15
New cards

What does CAS stand for and what does it do?

Column Access Strobe - selects the column from the row buffered by RAS

16
New cards
17
New cards

What trick does DDR DRAM use to increase speed?

It uses both edges of the clock signal to transfer data

18
New cards
19
New cards

How many bits does DDR5 transfer per cycle?

16 bits

20
New cards
21
New cards

What is the difference between volatile and nonvolatile memory?

Volatile memory loses data when powered off; nonvolatile memory retains data without power

22
New cards
23
New cards

How many times can a PROM be written?

Exactly once

24
New cards
25
New cards

How many times can an EPROM be reprogrammed?

About 1000 times - requires a special programmer device

26
New cards
27
New cards

How many times can an EEPROM be reprogrammed?

About 100000 times - no special programmer needed

28
New cards
29
New cards

What type of memory are SSDs and flash drives based on?

EEPROM

30
New cards
31
New cards

What is firmware?

Programs stored on ROM that run at power-up such as BIOS and bootloaders

32
New cards
33
New cards

What is the unit of reading and writing in an SSD?

Pages

34
New cards
35
New cards

What must happen before a page can be written in an SSD?

The entire block containing that page must be erased first

36
New cards
37
New cards

What is wear leveling in SSDs?

Distributing writes evenly across blocks to extend the SSD's lifespan

38
New cards
39
New cards

What is temporal locality?

A recently accessed memory location is likely to be accessed again soon

40
New cards
41
New cards

What is spatial locality?

A recently accessed memory location means nearby addresses will likely be accessed soon

42
New cards
43
New cards

What is a stride-1 reference pattern?

Accessing every consecutive element in memory - best possible spatial locality

44
New cards
45
New cards

What happens to spatial locality as stride length increases?

Spatial locality decreases

46
New cards
47
New cards

How does C store 2D arrays in memory?

In row-major order - row by row

48
New cards
49
New cards

For a 2D array a[M][N] which loop order gives better locality and why?

Looping a[i][j] row by row gives stride-1 and better spatial locality; looping a[j][i] column by column gives stride-N and poor spatial locality

50
New cards
51
New cards

In the sumvec function what kind of locality does the variable sum have?

Good temporal locality - it is reused every iteration

52
New cards
53
New cards

In the sumvec function what kind of locality does the array v have?

Good spatial locality - elements are accessed sequentially in memory

54
New cards
55
New cards

Why does good locality improve program performance?

Data with good locality is more likely to be stored higher in the memory hierarchy in cache which has faster access times

56
New cards