40 lines
700 B
ReStructuredText
40 lines
700 B
ReStructuredText
After Rules
|
|
-----------
|
|
|
|
after_001
|
|
#########
|
|
|
|
This rule checks for **after x** in signal assignments in clock processes.
|
|
|
|
**Violation**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
CLK_PROC : process(clock, reset) is
|
|
begin
|
|
if (reset = '1') then
|
|
a <= '0';
|
|
b <= '1';
|
|
elsif (clock'event and clock = '1') then
|
|
a <= d;
|
|
b <= c;
|
|
end if;
|
|
end process CLK_PROC;
|
|
|
|
**Fix**
|
|
|
|
.. code-block:: vhdl
|
|
|
|
CLK_PROC : process(clock, reset) is
|
|
begin
|
|
if (reset = '1') then
|
|
a <= '0';
|
|
b <= '1';
|
|
elsif (clock'event and clock = '1') then
|
|
a <= d after 1 ns;
|
|
b <= c after 1 ns;
|
|
end if;
|
|
end process CLK_PROC;
|
|
|
|
.. NOTE:: This is disabled by default.
|