# VHDL140: Concurrent assignments should be complete to avoid undesired latch inference ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
MEDIUM--Intentionality | Logical5minsynthesis, do254, vscode, do254-ss6, simulation, linter, cnes, cnes-std-05500, latch
``` ## Description ```{raw} html

Noncompliant code example

f <= a when a = '1'; -- Noncompliant: No "else"

with a select g <= '0' when '0'; -- Noncompliant: No "when others"

Compliant solution

f <= a when a = '1' else b;

with a select g <= '0' when '0', '1' when others;

Concurrent assignments (assignments outside of processes) should be complete to avoid undesired latch inference. All select assignments should end with a when others clause and conditional assignments with an else clause.

``` ## Parameters No parameters. ```{raw} html ```