4-bit Synchronous JK flip flop Counter Erratic
See attached image. Built a simple 4-bit synchronous counter in Quartus Prime using 7473 chips.
This works erratically on DE10-Lite board with standard MAX 10 FPGA.
Expect synchronous counting, but it sometimes counts 1-2-3 and then either won't increment further even with additional clock pulses or else it does some seemingly random counting.
No better with single-chip JK FFs in Quartus.
Slightly better with output current adjusted down to 8 mA and slew rate set to minimum setting of arbitrary "0".
Works FINE with 7490 counter chip instead of JKs.
Am I missing something simple like propagation delay?
It's very important to learn how to create timing constraints for an FPGA design. Start with this online training:
https://www.intel.com/content/www/us/en/programmable/support/training/course/odsw1115.html
For simulation, this should help:
https://www.intel.com/content/www/us/en/programmable/support/training/course/ouwsdbug.html
#iwork4intel