V
valentin tihomirov
Guest
REG: process (CLK)
begin
if ASYNC_RESET and RESET = '1' then
REGs <= SEED;
elsif Rising_Edge(Clk) then
if ENABLE = '1' then
if RESET = '1' then
REGs <= SEED;
else
REGs <= REG_NEXT;
end if;
end if; -- enable
end if; -- clk
end process;
ASYNC_RESET woulsd allow to configure sync/async reset by generic.
begin
if ASYNC_RESET and RESET = '1' then
REGs <= SEED;
elsif Rising_Edge(Clk) then
if ENABLE = '1' then
if RESET = '1' then
REGs <= SEED;
else
REGs <= REG_NEXT;
end if;
end if; -- enable
end if; -- clk
end process;
ASYNC_RESET woulsd allow to configure sync/async reset by generic.