00:00:00.000 The job ends after four accepted samples The collector needs four accepted samples. Some clock cycles contain work and others are idle. At each rising edge, check the sample event. An accepted sample increases the completion count by one. An idle cycle leaves the count where it was. 00:00:22.000 Trace six rising edges from zero Reset clears the count. The first edge accepts a sample and increments to one. The second edge is idle. The third contributes the second sample. The fourth edge is idle again. The final two edges accept one each, so the sixth edge completes the job. 00:00:43.375 Counting every cycle announces completion early Replay the same clock and events in both counters. The cycle counter adds one even when the second edge is idle. At the fourth edge it already displays four, while the work log shows only two samples. The trace exposes the premature completion. 00:01:05.792 An index and a count cover different ranges The four sample indices are zero through three, so two bits are enough for an index. The completion count ranges from zero through four and needs three bits. With a target of one it needs one bit. With a target of three it needs two. 00:01:26.083 Use the count before the fourth event At the sixth edge, the old count is three and a fresh sample is accepted. That edge completes the job. The count becomes four after the nonblocking update. A test that waits to read four from the old count would report completion too late. 00:01:48.125 Hold the count at its limit Once the count reaches four, another sample event leaves the count at four. The receiver can keep reading the completed count. A different interface could wrap or block input at its limit. Each choice needs its own expected results. 00:02:08.667 Give timeout its own edge rule Timeout measures elapsed edges separately. Arm it at the starting edge and count the following rising edge as tick one. Set its limit to six ticks. In this example, completion and expiration coincide. Give completion priority and signal timeout only if the work is still incomplete. 00:02:34.583 Reconcile the count against the work log Replay the same event sequence and mark the accepted samples. The count should increase at those marks, and the completion flag should identify the final one. The next lesson uses that precise event to move the collector into its reporting stage.