• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
        • Warnings
        • Primitives
        • Use-set
        • Syntax
        • Getting-started
        • Utilities
        • Loader
        • Transforms
        • Lint
        • Mlib
          • Scopestack
          • Filtering-by-name
          • Vl-namefactory
          • Substitution
          • Allexprs
          • Hid-tools
          • Vl-consteval
          • Range-tools
          • Lvalexprs
          • Hierarchy
          • Finding-by-name
          • Expr-tools
          • Expr-slicing
          • Stripping-functions
          • Stmt-tools
          • Modnamespace
          • Vl-parse-expr-from-str
          • Welltyped
          • Reordering-by-name
          • Flat-warnings
          • Genblob
          • Expr-building
          • Datatype-tools
          • Syscalls
          • Relocate
          • Expr-cleaning
          • Namemangle
          • Caremask
            • Vl-msb-bits-to-care-mask
            • Vl-msb-bits-zap-dontcares
            • Vl-msb-bits-to-intliteral
            • Vl-intliteral-msb-bits
          • Port-tools
          • Lvalues
        • Server
        • Kit
        • Printer
        • Esim-vl
        • Well-formedness
      • Sv
      • Fgl
      • Vwsim
      • Vl
      • X86isa
      • Svl
      • Rtl
    • Software-verification
    • Math
    • Testing-utilities
  • Mlib

Caremask

Functions for computing bitmasks for, e.g., casez/casezx statements and wildcard equality operators.

Subtopics

Vl-msb-bits-to-care-mask
Construct a bit-mask that captures the non-wild bits from a casex pattern or the right-hand side of a ==? or !=? expression.
Vl-msb-bits-zap-dontcares
Zero out the don't-care bits from the right-hand side of a ==? or !=? expression.
Vl-msb-bits-to-intliteral
Puts a list of bits into a constint or weirdint atom, as appropriate. Assumes the finalwidth should be the length of the bitlist.
Vl-intliteral-msb-bits
Try to explode a match-expression into a vl-bitlist-p.