Bitwise NOT circuit and tests