Altera_Forum
Honored Contributor
10 years agoClock gating with enable or not
Here is a n00b question from one which is rusty in VHDL:
The statement is not to gate the clock, but is the following considered clock gating? ena is a synchronous enable signal.
process (clk)
begin
if clk'event and clk='1' then
if ena='1' then
-- useful code
end if;
end if;
end process;
Is this above functionally the same as the line below? Syntax-wise it seems so, but it starts to feel awfully like gating.
if clk'event and clk='1' and ena='1' then