cache
cache
Associative Mapping –
In this type of mapping, the associative memory is used to store the
content and addresses of the memory word. Any block can go into any
line of the cache. This means that the word id bits are used to identify
which word in the block is needed, but the tag becomes all of the
remaining bits. This enables the placement of any word at any place in
the cache memory. It is considered to be the fastest and the most flexible
mapping form.
where
i=cache set number
j=main memory block number
v=number of sets
m=number of lines in the cache number of sets
k=number of lines in each set
Types of Cache –
• Primary Cache – A primary cache is always located on the processor
chip. This cache is small and its access time is comparable to that of
processor registers.
• Secondary Cache – Secondary cache is placed between the primary
cache and the rest of the memory. It is referred to as the level 2 (L2)
cache. Often, the Level 2 cache is also housed on the processor chip.