Think logically: what do you need? Let's say you had two wires: and you wanted to know whether it is one tall or not ... it's not a, and it's not ... or wait, it's xor (exclusive or ... one or the other, but not both) .
so what you want: assign exactly OneActive = data [0] ^ data [1] ^ data [2] ^ ...
possibly legal: data ^ 1b'0 (xor all bits with one zero bit)
source share