Originally shared on the public FactorioPrints / Factorio School archive (factorioprints.com · factorio.school). Authorship preserved from the public catalog.
This implements the equivalent of a real life D flipflop.
The D input is the data, which can be either 0 (logic LOW) or 1 (logic HIGH)