Lecture 4 Flashcards

1
Q

What are the main levels of memory hierarchy and their characteristics?

A

Primary Memory: Fastest, smallest, most expensive (e.g., cache memory).
Secondary Memory: Larger, slower, less expensive (e.g., RAM).
Tertiary Memory: Largest and slowest (e.g., hard drives, tapes).

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

What is the purpose of cache memory?

A

To bridge the speed gap between the CPU and main memory by storing frequently accessed data.

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

What are cache hits and misses?

A

Cache Hit: Data found in cache.
Cache Miss: Data not found in cache, must be fetched from main memory.

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

Explain spatial and temporal locality in the context of cache memory.

A

Spatial Locality: Nearby data is likely to be accessed soon.
Temporal Locality: Recently accessed data is likely to be accessed again.

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

Describe the three main cache mapping techniques.

A

Direct Mapping: Each main memory block maps to one specific cache block.
Fully Associative Mapping: Any block can be placed in any cache block.
Set-Associative Mapping: Compromise between the two, with cache divided into sets, and each block mapping to a set.

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

What are the fields used in set-associative mapping?

A

Tag: Identifies a block within a set.
Set: Identifies the specific set.
Word: Identifies the element within the block.

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

What are common cache replacement techniques?

A

Random Replacement: Replace a random block.
FIFO: Replace the oldest block.
LRU: Replace the least recently used block.
LFU: Replace the block with the fewest accesses.

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

How does the CPU interface with main memory?

A

Using the Memory Address Register (MAR) and Memory Data Register (MDR).
MAR: Holds the address of the data.
MDR: Holds the data to be written or read.

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

Describe the internal structure of main memory.

A

Organized in rows and columns of memory cells, each storing one bit. Rows form memory words, with address decoder activating one row at a time.

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

What is the design of a memory cell in static CMOS technology?

A

Each cell consists of six transistors, forming two back-to-back inverters, capable of existing in two stable states.

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