Class TagPatternBase


  • public class TagPatternBase
    extends java.lang.Object
    Tag Pattern Information for Filtering. If bit i in the mask (TagMask) is zero, then bit i of the target tag (MemoryBankData) is a don’t care (X); if bit i in the mask is one, then bit i of the target tag is bit i of the tag pattern. For example, all tags is specified using a mask length of zero.
    • Constructor Summary

      Constructors 
      Constructor Description
      TagPatternBase()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBitOffset()
      The address of the first (msb) bit against which to apply the Tag Mask and compare with the value.
      MEMORY_BANK getMemoryBank()
      Memory Bank to be considered for filtering.
      java.lang.String getStringTagMask()
      The pattern against which to compare for tag-filtering.
      java.lang.String getStringTagPattern()
      The pattern against which to compare for tag-filtering.
      byte[] getTagMask()
      Bit Pattern to be matched.
      int getTagMaskBitCount()
      Number of bits in TagMask to be taken for comparison.
      byte[] getTagPattern()
      Memory Bank Data which is to be used for comparison.
      int getTagPatternBitCount()
      Number of bits in TagData to be taken for comparison.
      void setBitOffset​(int bitOffset)
      The address of the first (msb) bit against which to apply the Tag Mask and compare with the value.
      void setMemoryBank​(MEMORY_BANK memoryBank)
      Memory Bank to be considered for filtering.
      void setTagMask​(byte[] tagMask)
      Bit Pattern to be matched.
      void setTagMask​(java.lang.String tagMask)
      function to set the tag pattern when it is passed as String
      void setTagMaskBitCount​(int tagMaskBitCount)
      Number of bits in TagMask to be taken for comparison.
      void setTagPattern​(byte[] tagPattern)
      Memory Bank Data which is to be used for comparison.
      void setTagPattern​(java.lang.String tagPattern)
      Memory Bank Data which is to be used for comparison.
      void setTagPatternBitCount​(int tagPatternBitCount)
      Number of bits in TagData to be taken for comparison.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TagPatternBase

        public TagPatternBase()
        Constructor
    • Method Detail

      • getMemoryBank

        public MEMORY_BANK getMemoryBank()
        Memory Bank to be considered for filtering.
      • setMemoryBank

        public void setMemoryBank​(MEMORY_BANK memoryBank)
        Memory Bank to be considered for filtering.
      • getTagPattern

        public byte[] getTagPattern()
        Memory Bank Data which is to be used for comparison. The application should allocate a short array and assign to this field. The Memory Bank Data to be used for comparison should be filled in the array.
      • setTagPattern

        public void setTagPattern​(byte[] tagPattern)
        Memory Bank Data which is to be used for comparison. The application should allocate a short array and assign to this field. The Memory Bank Data to be used for comparison should be filled in the array.
      • setTagPattern

        public void setTagPattern​(java.lang.String tagPattern)
        Memory Bank Data which is to be used for comparison. String format
        Parameters:
        tagPattern -
      • getStringTagPattern

        public java.lang.String getStringTagPattern()
        The pattern against which to compare for tag-filtering. This returns the tag pattern in string format
      • getTagPatternBitCount

        public int getTagPatternBitCount()
        Number of bits in TagData to be taken for comparison.
      • setTagPatternBitCount

        public void setTagPatternBitCount​(int tagPatternBitCount)
        Number of bits in TagData to be taken for comparison.
      • getTagMask

        public byte[] getTagMask()
        Bit Pattern to be matched. The application should allocate a short array and assign it to this field. The Tag Mask to be used for bit-wise comparison should be filled in the array.
      • setTagMask

        public void setTagMask​(byte[] tagMask)
        Bit Pattern to be matched. The application should allocate a short array and assign it to this field. The Tag Mask to be used for bit-wise comparison should be filled in the array.
      • setTagMask

        public void setTagMask​(java.lang.String tagMask)
        function to set the tag pattern when it is passed as String
        Parameters:
        tagMask -
      • getStringTagMask

        public java.lang.String getStringTagMask()
        The pattern against which to compare for tag-filtering. This returns the tag mask in string format
      • getTagMaskBitCount

        public int getTagMaskBitCount()
        Number of bits in TagMask to be taken for comparison.
      • setTagMaskBitCount

        public void setTagMaskBitCount​(int tagMaskBitCount)
        Number of bits in TagMask to be taken for comparison.
      • getBitOffset

        public int getBitOffset()
        The address of the first (msb) bit against which to apply the Tag Mask and compare with the value.
      • setBitOffset

        public void setBitOffset​(int bitOffset)
        The address of the first (msb) bit against which to apply the Tag Mask and compare with the value.