The following snippet gives an inferred latch and "en" not in sensitivity list warning:
process(iCLK)
begin
if rising_edge(iCLK) and en = '1' then
d <= q;
end if;
end process;
It should be equivalent to the following, which lints fine:
process(iCLK)
begin
if rising_edge(iCLK) then
if en = '1' then
d <= q;
end if;
end if;
end process;
The following snippet gives an inferred latch and "en" not in sensitivity list warning:
process(iCLK)
begin
if rising_edge(iCLK) and en = '1' then
d <= q;
end if;
end process;
It should be equivalent to the following, which lints fine:
process(iCLK)
begin
if rising_edge(iCLK) then
if en = '1' then
d <= q;
end if;
end if;
end process;
The following snippet gives an inferred latch and "en" not in sensitivity list warning:
It should be equivalent to the following, which lints fine:
Will be fixed in the 0.4 release.