Assertion to check Clock pattern

Your question is very similar to this other question at