Altera_Forum
Honored Contributor
11 years agoAny difference between these processes ?
Is there any deep meaning behind the "standard" process declaration regarding "en" signal ? :
process (clk, rst)
begin
if (rst = '0') then
q1 <= '0';
elsif (rising_edge(clk)) then
if (en = '1') then
q1 <= D;
end if;
end if;
end process;
I tried to do this in the following way:
process (clk, rst)
begin
if (rst = '0') then
q2 <= '0';
elsif ((rising_edge(clk)) and (en = '1')) then
q2 <= D;
end if;
end process;
and don't see any difference at RTL or Technology Map view...