Rising edge detection fsm dating