Bitwise Complement Operator (~)

The bitwise complement (or NOT) operator produces the bitwise complement of its operand, i.e. it inverts each bit. The resulting value will be the same width as the operand.

Example

INT a WIDTH 6;
INT b;

a := 0b1100;
b := ~a;       // b is 0b110011 since a's width is 6