answersLogoWhite

0

•Advantages

-Almost as simple to build as a

direct-mapped cache.

  • -Only n comparators are
  • needed for an n-way set
  • associative cache. For 2-way
  • set-associative, only 2
  • comparators are needed to
  • compare tags.

-Supports temporal locality by

having full associativity within

a set.

•Disadvantages -Not as good as fully-

associative cache in

supporting temporal locality.

-For LRU schemes, because of

small associativity, actually

possible to have 0% hit rate

for temporally local data.

-E.g. If our accesses are A1 A2

A3 A1 A2 A3, and if A1, A2

and A3 map to the same

2-way set, then hit rate is 0%

as subsequent accesses

replace previous accesses in

the LRU scheme.

User Avatar

Oma Aufderhar

Lvl 9
2y ago

What else can I help you with?

Related Questions

What are the difference among direct mapping associative mapping and set associative mapping?

The differences among direct mapping and set-associative mapping :Direct mapping : Each line in main memory maps onto a single cache line.Set-associative : Each line in main memory maps onto a small (collection) set of cache line.Direct mapping : A memory block is mapped into a unique cache line, depending on the memory address of the respective block.Set-associative : A memory block is mapped into any of the line of a set. The set is determined by the memory address, but the line inside the set can be any one.dont knowyet


What are the differences among direct mapping associative mapping and set associative mapping?

The differences among direct mapping and set-associative mapping :Direct mapping : Each line in main memory maps onto a single cache line.Set-associative : Each line in main memory maps onto a small (collection) set of cache line.Direct mapping : A memory block is mapped into a unique cache line, depending on the memory address of the respective block.Set-associative : A memory block is mapped into any of the line of a set. The set is determined by the memory address, but the line inside the set can be any one.dont knowyet


Three cache mapping techniques?

Three types of mapping procedures are there? (1) Associative Mapping-The fastest and most flexible cache organizations uses associative mapping. The associative memory stores both the address and content of memory word. This permits any location in catche to store word in main memory. (2) Direct Mapping-Associative memories are expesive compared to RAM's because of added logic associated with each cell. (3) Set Associative Mapping-It is a more general method that includes pure associative and direct mapping as special case. It is an improvement over the direct mapping organization in that each word of cache can store two or more words of memory under the same index address. Each data word is stored together with its tag and the number of tag data items in one word of cache is said to form a set. With Regards Veer Thakur Chandigarh


Mapping function between cache lines and main memory block?

I didn't quite understand your question but I'll answer you anyways :P.. It's known that the main memory is much larger that the cache memory , and we need to transfer a block of instructions to the cache memory to be frequently used by the processor to improve performance and reduce time spent in fetching instructions or data ( dealing with cache memory is much faster than RAM ). for example lets say that a main memory has a 128 data blocks and you need to place them in the cache memory which consists of 32 data blocks? then you have to have sort of technique to place them or MAPPING FUNCTION. And there are plenty of 'em (four mapping techniques as far as i know) i will just mention them without getting into details: Direct mapping , fully-associative, set-associative and n-way set associative. if you need more details just ask. greetings Can you please provide some help over Direct mapping , fully-associative, set-associative and n-way set associative Thanx


What are the 3 fields in direct mapped cache memory?

1. Word field2. Block field3. Tag fieldTag, Index, and Offset.


Diagram to show the address mapping of RAM and Cache?

consider a RAM of 64 words with a size of 16 bits.Assume that this memory have a cache memory of 8 Blocks with block size of 32 bits.Draw a diagram to show the address mapping of RAM and Cache, if 4-way set associative memory scheme is used.


What the difference among direct mapping associative mapping and autoassociative mapping?

Direct mappingA given Main Memory block can be mapped to one and only one Cache Memory line.It is Simple, Inexpensive, fastIt lacks mapping flexibilityAssociative mappingA block in the Main Memory can be mapped to any line in the Cache Memory available (not already occupied)It is slow, expensiveIt has mapping flexibility


Changing the grouping of a set of numbers does not change the sum?

associative property


What is the mapping between a set of input and a set of output?

It is simply a mapping. It could be a function but there are several conditions that need to be met before the mapping can become a function and there is no basis for assuming that those conditions are met.


What is mapping between a set of inputs and a set of outputs?

It is simply a mapping. It could be a function but there are several conditions that need to be met before the mapping can become a function and there is no basis for assuming that those conditions are met.


What is the mapping between a set of inputs and a set out outputs?

It is simply a mapping. It could be a function but there are several conditions that need to be met before the mapping can become a function and there is no basis for assuming that those conditions are met.


What is The mapping between a set of inputs and a set of outputs?

It is simply a mapping. It could be a function but there are several conditions that need to be met before the mapping can become a function and there is no basis for assuming that those conditions are met.