Interface Matcher<E extends Struct<?>,​A extends Address<?>>

  • Type Parameters:
    E - the entry type.
    A - the address type.

    public interface Matcher<E extends Struct<?>,​A extends Address<?>>
    Matcher is a generic interface of a cache line matcher (hit checker).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean areMatching​(E entry, A address)
      Checks whether the given entry and the given address are matching each other.
      E assignTag​(E entry, A address)
      Extracts the tag from the given address and assigns it to the given entry.
    • Method Detail

      • areMatching

        boolean areMatching​(E entry,
                            A address)
        Checks whether the given entry and the given address are matching each other.
        Parameters:
        entry - the entry.
        address - the address.
        Returns:
        true iff the data and address are matching each other.
      • assignTag

        E assignTag​(E entry,
                    A address)
        Extracts the tag from the given address and assigns it to the given entry.
        Parameters:
        entry - the entry.
        address - the address.
        Returns:
        the input data w/ the assigned tag.