/BitsLevelMask

Convert a word-level mask to bits-level mask.

Primary LanguageVerilog

Convert Word Mask to Bits Mask

Some ram libraries may have modules accepting bit-level mask while systems usually use word-level mask (it's compact).

Usage

module SomeRamWrapper ( word_level_mask, wdata );
  `BitMaskHelper(word_level_mask, $size(word_level_mask), $size(wdata));

  SomeRam u_ram (
    .bits_level_mask ( word_level_mask_bits_ver ),
  );
endmodule