G
googler
Guest
Given the VHDL code below (an edge-triggered flip flop), isn't the
check (in first if statement) on event attribute redundant? (because,
the sensitivity list already has CLK signal which ensures the process
is entered only when there's an event on CLK).
process(CLK)
begin
if (CLK'event and CLK = '1') then
if (ENA = '1') then
Q <= D;
end if;
end if;
end process;
Pls comment, since this is what I see in most textbooks and examples.
Secondly, are the loops (for, while etc) synthesizable in VHDL? where
can I get a list of all VHDL syntax elements that are synthesizable
(and the ones that are not)?
Thank you.
check (in first if statement) on event attribute redundant? (because,
the sensitivity list already has CLK signal which ensures the process
is entered only when there's an event on CLK).
process(CLK)
begin
if (CLK'event and CLK = '1') then
if (ENA = '1') then
Q <= D;
end if;
end if;
end process;
Pls comment, since this is what I see in most textbooks and examples.
Secondly, are the loops (for, while etc) synthesizable in VHDL? where
can I get a list of all VHDL syntax elements that are synthesizable
(and the ones that are not)?
Thank you.