Forum Discussion
Altera_Forum
Honored Contributor
13 years agoIn some situations a latch can involve safe behaviour, e..g. an address latch that is enabled by a single ALE signal. In your code, safe behaviour seems rather questionable, or in other words accidental. Because the individual enable conditions are a combination of bits, there's a high likelyhood that some output bits will flip into a different code due to delay skew of input signals.
Save behaviour may be possibly achieved if CMD_TYPE is acting as a global select, deasserted before any other input term is changing. The fact, that safe behaviour of similar latch constructs can't be easily determined and rarely proved is reason enough to get the said warnings in Quartus, I think. If you are sure about the behaviour of your latch, just ignore it.