[email=always@(negedge]always@(negedge[/email] RESET negedge CLK2M)
if(RESET==0)
begin
CNT1<=0;
else if (V_GENIN == 11)
CNT1<=0;
if (V_GENIN == 01)
CNT1<=CNT1^1;
else
CNT1<=0;
end
[email=always@(negedge]always@(negedge[/email] RESET negedge CLK2M)
if(RESET==0)
begin
CNT1<=0;
else if (V_GENIN == 11)
CNT1<=0;
else if (V_GENIN == 01)
CNT1<=CNT1^1;
else
CNT1<=0;
end
or
[email=always@(negedge]always@(negedge[/email] RESET or negedge CLK2M)
begin
if(RESET==0)
CNT1<=0;
else if (V_GENIN == 11)
CNT1<=0;
else if (V_GENIN == 01)
CNT1<=CNT1^1;
else
CNT1<=0;
end