Why is this an issue?

Clock signals should not be reused in a non-clock way. This rule raises an issue each time a clock signal is used in a way that is different from defining a flip-flop.

How to fix it

Code examples

Noncompliant code example

process(clk, rst) is
begin
  if rst = '1' then
    clk <= '0'; -- Noncompliant: 'clk' clock signal is reused in a non-clock way
  elsif rising_edge(clk) then -- Compliant: Defining a flip-flop
    s <= '0';
  end if;
end process;