Good morning everyone.
Little problem with a decade counter.
I am using logic gates to simulate a 4 JK counters to count to decimal 9. The gist of the idea is, it counts numbers and when my DCD values reaches 1010 the AND2 gate on U32 resets all pins and starts counting from 0000.
This works fine as I am aware, the problem is when I start the simulation. It does not start with a binary 0000, but rather with a randomish number. And I am having troubles pinpointing the cause of that, the U32 gate and clock input all have effects on it, but what is the excact cause and best fix for it, ive tried forcing reset on the flipflops on the very start of simulation, but it still goes haywire.
Also it is ground referenced offscreen.
Thank you for reading.
Little problem with a decade counter.
I am using logic gates to simulate a 4 JK counters to count to decimal 9. The gist of the idea is, it counts numbers and when my DCD values reaches 1010 the AND2 gate on U32 resets all pins and starts counting from 0000.
This works fine as I am aware, the problem is when I start the simulation. It does not start with a binary 0000, but rather with a randomish number. And I am having troubles pinpointing the cause of that, the U32 gate and clock input all have effects on it, but what is the excact cause and best fix for it, ive tried forcing reset on the flipflops on the very start of simulation, but it still goes haywire.
Also it is ground referenced offscreen.
Thank you for reading.