I want to count the number of pulses in a certain period of time, for eg. 1 Sec. If it s 1 pulse , I want to do certain actions and if it is 2 pulses then do another action. If is more than 2 do nothing.
Can you help with System Verilog code for this ?