Develop assertions to identify numbers that are powers of 2.

Free for the first 3 answer contributors

Interview question asked to Design Verification Engineers interviewing at NETGEAR, Teradyne, Lenovo and others: Develop assertions to identify numbers that are powers of 2..