I have created a schematic, see the attached screenshot. Now I am trying to simulate how it works in a digital SPICE simulator (built-in DipTrace 5.0 beta).
In general, it works almost reasonably. But there are strange signal distortions on some outputs of U3 on each falling edge of the clock...