# VHDL1037: The sensitivity list of a process should be minimal ## Summary ```{raw} html

Count: 1

ReliabilitySecurityMaintainabilityCode attributeEffort to fixTags
MEDIUM--Intentionality | Complete5minsynthesis, bug-finder, do254, cnes-std-05000, cnes, cnes-std-05300, latch, cnes-std-05500, do254-cp8, linty-ultra
``` ## Description ```{raw} html

The sensitivity list of a process should be minimal to not slow down simulation:

To check for incomplete sensitivity list, activate The sensitivity list of a process should be complete

Noncompliant code example

-- Clocked process with asynchronous reset
process (clk) is -- Noncompliant: Missing 'rst'
begin
  if rst = '1' then
    q <= '0';
  elsif rising_edge(clk) then
    q <= d;
  end if;
end process;

-- Clocked process with synchronous reset
process (rst) is -- Noncompliant: Should be 'clk' instead of 'rst'
begin
  if rising_edge(clk) then
    if rst = '1' then
      q <= '0';
    else
      q <= d;
    end if;
  end if;
end process;

process (y, z, y) is -- Noncompliant: 'y' should be removed
begin
   q <= y or z;
end process;

Compliant solution

-- Clocked process with asynchronous reset
process(clk, rst) is
begin
  if rst = '1' then
    q <= '0';
  elsif rising_edge(clk) then
    q <= d;
  end if;
end process;

-- Clocked process with synchronous reset
process(clk) is
begin
  if rising_edge(clk) then
    if rst = '1' then
      q <= '0';
    else
      q <= d;
    end if;
  end if;
end process;

process (y, z) is
begin
   q <= y or z;
end process;
``` ## Parameters No parameters. ```{raw} html ```