Direct Mapping | Direct Mapped Cache

Before you go through this article, make sure that you have gone through the previous article on Cache Mapping.

Different cache mapping techniques are-

  1. Direct Mapping
  2. Fully Associative Mapping
  3. K-way Set Associative Mapping

In this article, we will discuss about direct mapping in detail.

Direct Mapping-

In direct mapping,

Division of Physical Address-

In direct mapping, the physical address is divided as-

Direct Mapped Cache-

The following steps explain the working of direct mapped cache-

Implementation-

The following diagram shows the implementation of direct mapped cache-

(For simplicity, this diagram shows does not show all the lines of multiplexers)

The steps involved are as follows-

Step-01:

Step-02:

Step-03:

UNDERSTAND

Example-

Step-04:

Hit latency-

The time taken to find out whether the required word is present in the Cache Memory or not is called as hit latency.

For direct mapped cache,

Important Results-

Following are the few important results for direct mapped cache-

To gain better understanding about direct mapping,

Watch video lectures by visiting our YouTube channel LearnVidFun.

Direct Mapping | <a href=Direct Mapped Cache" width="" height="" />

Article Name Direct Mapping | Direct Mapped Cache Description

Direct mapped cache employs direct cache mapping technique. Direct mapping is a cache mapping technique that allows to map a block of main memory to only one particular cache line. Direct mapping implementation. Important results and formulas.