Circuits/Sequential Logic
At each rising edge, store the value gate AND d. The register must hold its value between edges.
gate AND d