Concept Flow - Avoiding unintended latch inference
Start process
Check if all outputs assigned in all branches?
No
Latch inferred (holds previous value)
END
Start process
All outputs assigned in all branches?
Yes
No latch inferred, output updated
END
This flow shows that if outputs are not assigned in every branch of a process, VHDL infers a latch to hold the previous value. Assigning outputs in all branches avoids unintended latches.
