Цитата Сообщение от heroy Посмотреть сообщение
always @ (negedge clock)
begin
if (!clock)

....
end
а разве так нельзя?

always @(posedge clock, res)
begin
if (res==0) begin
del<=00;
end
else if ((clock)==0) begin
del<=del+1;
end
end

ведь:

process(clock,res) - реагируем на событие
begin
if res='0' then
del <= "00";
elsif (clock'event and clock='0') then
del <= del + 1;
end if;
end process;