Allows UInts to be used where a BitPat is expected, useful for when an interface is defined with BitPats but not all cases need the partial matching capability.
the UInt must be a literal
Creates a BitPat literal from a string.
the literal value as a string, in binary, prefixed with 'b'
legal characters are '0', '1', and '?', as well as '_' and white space (which are ignored)
Allows BitPats to be used where a UInt is expected.
the BitPat must not have don't care bits (will error out otherwise)
Creates a BitPat of all don't cares of the specified bitwidth.
val myDontCare = BitPat.dontCare(4) // equivalent to BitPat("b????")