Detect a low-to-high transition on capture. At that clock edge, store d in q; retain the captured value until the next event.
Detect a low-to-high transition on capture. At that clock edge, store d in q; retain the captured value until the next event.