I was provided with code for D-Flip-Flop with support.
process(clk, en)
begin
if rising_edge(clk) then
if en = โ1โ then
Q <= D;
end if;
end if;
end process;
- I was told that I should not use
if rising_edge(clk) and en = โ1โ then .... Why?
- Why is there no if for
en = '1'before if, if for hours, since the clock changes more often?
- And is it necessary to indicate what is
enin the process brackets process(clk, en)?
iuser source
share