Comp arc chapt 2 lastmin

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

1/115

encourage image

There's no tags or description

Looks like no tags are added yet.

116 Terms

1
New cards

What is a memory hierarchy?

A set of memory levels that provide different speeds and storage capacities

2
New cards

Why is a memory hierarchy necessary?

Large memory is generally slower, while faster memory is more expensive

3
New cards

What are the main memory hierarchy trade-offs?

Storage size, access speed, cost, and power consumption

4
New cards

What is the fastest and smallest type of memory?

CPU registers

5
New cards

What is the order of the memory hierarchy from fastest to slowest?

Registers, cache, RAM, HDD/SSD

6
New cards

Which memory level has the largest storage capacity?

HDD/SSD storage

7
New cards

What is the inclusion property?

Higher memory levels contain data from lower memory levels, such as cache containing data from storage

8
New cards

How does the CPU request data from memory?

The CPU requests data in the form of a word, consisting of one or more bytes

9
New cards

What happens when requested data is not found in the nearest cache?

The data must be retrieved from lower memory levels, such as L2, L3, RAM, or storage

10
New cards

Why are multiple words retrieved when data is fetched from lower memory?

Because of spatial locality, multiple words are retrieved together as a block or line

11
New cards

What is a memory block or cache line?

A group of multiple words retrieved together from a lower memory level

12
New cards

What is the purpose of a cache tag?

It identifies which memory address a block corresponds to

13
New cards

What are the three main cache organisations?

Direct mapped, set associative, and fully associative

14
New cards

What is a direct-mapped cache?

Each memory block can only be stored in one specific cache location

15
New cards

What is the main advantage of a direct-mapped cache?

It is very easy and quick to find blocks

16
New cards

What is a set-associative cache?

A cache where each set can store multiple blocks, allowing some flexibility in block placement

17
New cards

What does n-way associative mean?

Each cache set can contain n blocks

18
New cards

How difficult is it to find blocks in a set-associative cache?

More difficult than in a direct-mapped cache

19
New cards

What is a fully associative cache?

A cache where a block can be stored anywhere in one large set

20
New cards

What is the main advantage of a fully associative cache?

Blocks can be placed anywhere, providing maximum flexibility

21
New cards

What is the main disadvantage of a fully associative cache?

Finding a block is more difficult

22
New cards

What is a write-through cache?

A cache that updates both the cache and main memory when data is changed

23
New cards

What is a write-back cache?

A cache that updates only the cache initially and updates memory when the block is replaced

24
New cards

What is the purpose of a write buffer?

It allows the cache to continue working while modified data is copied back to memory

25
New cards

What is a cache hit?

When the CPU requests a block and the block is found in the cache

26
New cards

What is a cache miss?

When the CPU requests a block and the block is not found in the cache

27
New cards

How do you calculate cache miss rate?

Miss rate = Number of misses / Number of requests

28
New cards

What is the relationship between cache hit and miss?

A hit means the requested block is found

29
New cards

a miss means it is not found

30
New cards

What is a compulsory miss?

A miss that occurs the first time a block is requested because it has not yet been loaded into cache

31
New cards

What is a capacity miss?

A miss caused by the cache being too small to hold all the required blocks

32
New cards

Why do capacity misses occur?

When more blocks are requested than the cache can hold, older blocks are removed to make space

33
New cards

What is a conflict miss?

A miss caused by multiple blocks mapping to the same cache set and competing for space

34
New cards

How can fully associative caches avoid conflict misses?

They allow blocks to be placed anywhere in the cache

35
New cards

What is a coherence miss?

A miss that occurs because multiple processors share a cache

36
New cards

What does AMAT stand for?

Average Memory Access Time

37
New cards

What is the AMAT formula?

AMAT = Hit time + (Miss rate × Miss penalty)

38
New cards

What is hit time?

The time required to find a block in the cache, assuming it is present

39
New cards

What is miss penalty?

The time required to retrieve a missing block from memory and store it in the cache

40
New cards

What is the effect of increasing cache block size?

It reduces miss rate but increases miss penalty

41
New cards

What is the effect of increasing cache size?

It reduces miss rate but increases hit time

42
New cards

What is the effect of increasing cache associativity?

It reduces miss rate but increases hit time

43
New cards

What is the purpose of multilevel caches?

To reduce miss penalty by providing additional cache levels

44
New cards

What are the disadvantages of multilevel caches?

Increased power consumption, cost, and complexity

45
New cards

Which memory technology is used for cache?

SRAM (Static Random-Access Memory)

46
New cards

Which memory technology is mainly used for RAM?

DRAM, including SDRAM and DDR SDRAM

47
New cards

Which memory technologies are used for storage?

Flash, magnetic, and optical memory

48
New cards

What are the characteristics of SRAM?

High speed and low capacity

49
New cards

What are the characteristics of DRAM?

Medium speed and medium capacity

50
New cards

What are the characteristics of flash memory?

Lower speed than SRAM but high storage capacity

51
New cards

What is memory access time?

The time between requesting a memory block and receiving it

52
New cards

What is memory cycle time?

The time between successive requests to memory

53
New cards

What is SRAM?

Static Random-Access Memory, commonly used for CPU cache

54
New cards

How many transistors can SRAM use per bit?

Approximately 4 to 10 transistors per bit

55
New cards

What does WL stand for in an SRAM cell?

Word Line

56
New cards

What is the function of the SRAM word line (WL)?

It controls access transistors M5 and M6 to connect the cell to the bit lines

57
New cards

What are BL and BL-bar in SRAM?

The two bit lines used to transfer data during read and write operations

58
New cards

Can individual SRAM cells be accessed?

Yes, individual cells can be accessed

59
New cards

What contributes to SRAM latency?

Access time and cycle time

60
New cards

Why does DRAM require refreshing?

Its capacitors leak charge, so stored data must be periodically rewritten

61
New cards

What happens to DRAM during refresh?

The memory is temporarily unavailable while its contents are refreshed

62
New cards

How is DRAM organised?

As a two-dimensional matrix containing rows, columns, and banks

63
New cards

What is a DRAM rank?

Several DRAM chips working together as one unit

64
New cards

What does RAS stand for?

Row Access Strobe

65
New cards

What does CAS stand for?

Column Access Strobe

66
New cards

Why are RAS and CAS signals sent in series?

Because the address lines are multiplexed

67
New cards

What happens during a DRAM row access?

An entire row is read before the required column is selected

68
New cards

What does ACT stand for in DRAM?

Activate

69
New cards

it selects a specific bank and row

70
New cards

Why is ACT used instead of RAS in multiple-bank DRAM?

ACT selects the specific bank and row that must be accessed

71
New cards

What does PRE stand for in DRAM?

Precharge

72
New cards

it prepares and rewrites a row so another row can be accessed

73
New cards

What is the general DRAM latency formula when the row is initially ready?

Latency = ACT + CAS

74
New cards

What is the DRAM latency formula when precharging is required?

Latency = PRE + ACT + CAS

75
New cards

What happens when another column from the same DRAM row is required?

No PRE is needed

76
New cards

the system waits for the data transfer time

77
New cards

What is a RAM bus or memory channel width?

The number of bits that can be transferred at once

78
New cards

What is the typical memory channel width per DIMM interface?

64 bits

79
New cards

What is burst rate?

The theoretical maximum memory transfer rate, also called bandwidth

80
New cards

What is the RAM bandwidth formula?

BW = Clock × Bus width in bytes × Transfers per clock

81
New cards

Why do GPUs use GDDR memory?

It provides wider memory buses and higher clock rates for GPU memory

82
New cards

How is GPU memory connected differently from CPU RAM?

GDDR memory connects directly to the GPU, while CPU RAM forms part of a larger expandable memory system

83
New cards

What is GDDR RAM based on according to the notes?

DDR2 RAM

84
New cards

What is flash memory increasingly replacing?

Magnetic disk storage, such as HDDs

85
New cards

What are the advantages of flash memory?

Faster operations, smaller size, lower power consumption, no moving parts, and less heat

86
New cards

What are the disadvantages of flash memory?

Higher cost per GB and a limited number of write operations

87
New cards

What type of memory is flash memory?

Non-volatile EEPROM

88
New cards

What is the most common type of flash memory?

NAND flash

89
New cards

How long does a 2 KB NAND flash transfer take according to the notes?

Approximately 75 microseconds (75 μs)

90
New cards

How long does a 2 KB DDR SDRAM transfer take according to the notes?

Approximately 500 nanoseconds (500 ns)

91
New cards

How long does a 2 KB magnetic disk transfer take according to the notes?

Approximately 30 milliseconds (30 ms)

92
New cards

Why does flash memory have a limited lifespan?

EEPROM memory cells can wear out after repeated write operations

93
New cards

Approximately how many writes to a block may cause flash memory failure?

Around 100,000 writes

94
New cards

What is write leveling?

A technique that distributes write operations evenly across flash memory blocks to maximise lifespan

95
New cards

What are the main components of an HDD?

Platters, spindle, read/write head, actuator arm, actuator axis, and actuator

96
New cards

What are the main components of an SSD?

Cache, controller, and NAND flash memory

97
New cards

What are the two main types of memory errors?

Soft errors (transient faults) and hard errors (permanent faults)

98
New cards

What is a soft memory error?

A temporary error where memory bits dynamically change state during operation

99
New cards

What is a hard memory error?

A permanent fault where a memory location is defective from fabrication

100
New cards

How can RAM and ROM handle defective rows?

They can use extra rows to replace defective rows, with substitution managed by software