00:00:00.000 The modulus sets where the count wraps This three-bit counter cycles through six values, zero through five. Once it reaches five, the next accepted event takes it back to zero. 00:00:13.208 An idle cycle holds the count at five The fifth event brings the count to five. Edge six has no event, so five holds. Edge seven accepts another event, wraps to zero, and sets the wrap flag. 00:00:28.917 An event can increment or wrap the count With no event, keep the old count. On an event at five, write zero. On earlier values, increment. The wrap flag reports the edge when wrapping occurs. 00:00:43.875 One more event separates wrapping from saturation Bring both designs to the limit, then send one more event. Wrapping starts a new cycle. Saturation holds the maximum.