VHDL1046: Enable signals should not be reused in non-enable way

Summary

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
HIGH--Intentionality | Logical20minsynthesis, bug-finder, enable, linty-ultra

Description

Enable signals should not be reused in a non-enable way.

Noncompliant code example

process(clk) is
begin
  if rising_edge(clk) then
    if enable = '1' then
      o1 <= i1;
      o2 <= enable; -- Noncompliant: 'enable' enable signal is reused in a non-enable way
    end if;
  end if;
end process;

Compliant solution

process(clk) is
begin
  if rising_edge(clk) then
    if enable = '1' then
      o1 <= i1;
    end if;
  end if;
end process;

Parameters

No parameters.