Forum Discussion
Altera_Forum
Honored Contributor
15 years agoVHDL:
d_proc : process(clk, reset)
begin
if reset = '1' then --async reset
q <= '0';
elsif rising_edge(clk) then
q <= d;
end if;
end process;
AHDL:
reg : dff;
reg.reset = reset;
reg.clk = clk;
reg.d = input;
reg.q = output;