In reply to Vishwasu Deshpande:
Do you have a faster reference clock to count the width, or are you just trying to measure realtime?
When you find an irregular pulse, does that become the first of N pulses to check?
Does this need to be coded as an assertion (very difficult) or can any kind of checking code be used?