Altera_Forum
Honored Contributor
13 years agoWarning: Latch has unsafe behavior
I keep getting this warning when compiling my design in Quartus. I first get a warning that says
"Verilog HDL Always Construct warning at (line# ): inferring latch(es) for variable (my variable name) which holds its previous value in one or more paths through the always construct"
then I get the message about unsafe behavior. Expanding the warning message tells me
"Ports D and ENA on the latch are fed by the same signal..."
I have tried many things to get it to like my code but no success. What am I missing here? Do I need to create a state machine or something?