on-internet
← Community

How does "if (a)" return true with 4-bit registers?

Stack Overflow ·

a is declared as reg [3:0]. What values of a return true in: if (a) Which bits of the register a does the if check in the previous format? Does it return 0 only for a='b0000, or are there other values for a that make if (a) = 0?

Comments

Sign in or sign up to comment and upvote.

No comments yet.