00:00:00.000 Compare the current sample with the previous one Store the previous sample. At the next rising clock edge, a high new sample and a low old sample produce a one-cycle pulse. 00:00:13.333 A sustained high produces one pulse Reset clears the saved sample. The first sample is high and raises the output. At the next edge, the input and its saved value are both high, so the output returns to zero. 00:00:30.208 Read the old history before updating The first assignment compares the input with stored history. The second saves the input for next time. Both assignments are nonblocking. 00:00:42.417 A pulse between samples can be missed The short pulse fits between the edges at thirty-five and forty-five nanoseconds. Both edges sample zero, so the detector misses the pulse.