By Sebastian Lague
this would be helpful to build registers
You can build edge detection for the clock using logic gates; in fact I'm pretty sure Sebastian did this in his one of his videos, and I've got a screenshot of how I did it in my modified clock in a previous post