Request a Demo Start a Trial

Superfluous reset

Clocked processes in VHDL are primarily used to describe registers. However, it’s also possible to describe combinational logic in front of these registers. While it is beneficial to reset registers, there is no need to reset signals and variables that describe combinational logic. By default, Sigasi Visual HDL reports superfluous resets in RTL code only.

In the following example, the combinational variable nd is reset together with reg register:

inv : process(clk, rst) is
    variable d_reg, nd : std_logic;
begin
    if rst = '1' then
        reg := '0';
        nd  := '0';
    else
        if rising_edge(clk) then
            nd  := not d;
            reg := nd;
        end if;
    end if;
    q <= reg;
end process inv;

Rule Configuration

This rule can be disabled for your project, or its severity and parameters can be modified in the project linting settings. Alternatively, it can be manually configured with the following template:

258/severity/${path}={error|warning|info|ignore}