Is the period consistent for all pulses?
If so you can simply use a Triangular Wave Generator with a “Duty cycle” of 1 (creating a saw-tooth waveform with positive slope) and a comparator block (comparing the Triangular Wave Generator output with your desired period).