VHDL1046: Enable signals should not be reused in non-enable way
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| HIGH | - | - | Intentionality | Logical | 20min | synthesis, 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.