Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- But is it allowed to write a code in which I compare a signal to '0' or '1' to detect an 'Z' and suspend the operation? --- Quote End --- Allowed, yes. Meaningful, no. reg_0(0) = '0' or reg_0(0) = '1' simply compiles to TRUE Consider how 'Z' state would be detected in hardware and you'll hopefully understand why the code can't work.