VHDL1047: Multi-signal enables should not be used
Summary
| Reliability | Security | Maintainability | Code attribute | Effort to fix | Tags |
|---|---|---|---|---|---|
| MEDIUM | - | - | Intentionality | Logical | 30min | synthesis, bug-finder, enable, linty-ultra |
Description
Noncompliant code example
process (clk, rst) is
begin
if rst = '1' then
o1 <= '0';
elsif rising_edge(clk) then
if enable1 = '1' and enable2 = '1' then -- Noncompliant: Two-signal enable (enable1 and enable2)
o1 <= i1;
end if;
end if;
end process;
Multi-signal enables should not be used.
Parameters
No parameters.