A minimalistic digital logic simulator · By Sebastian Lague
When setting the clock speed really high (1 step per clock tick) it becomes unstable.
just don't set the speed that high lol