Following Ben Eater's 8-bit computer assembly, my program counter, which is built out of 74LS161s, does not count correctly. In trying to figure out the issue, I have completely isolated the circuit down to just the 161 chip itself:
As it is, it seems that the chip is counting randomly; I thought it might be a bad chip, but multiple 74LS161's from multiple different manufacturers are all doing the same. I even tried building these from 74LS109s (JK filp-flops), but those don't seem to toggle either.
As previously mentioned, the circuit is now completely isolated to the chip itself: aside from the power/ground rails, the wires on board are not connected to anything else. Pins 7 and 10, ENT and ENP, are tied together and tied to high.
I have browsed through almost all the related posts on the web, but nothing helped. I have tried putting the capacitor between GND and Vcc, and I have everything hooked to a Raspberry Pi output at 5V. Any ideas?
UPDATE AM SUN 6/2/24:
Thank you all for your suggestions! I modified the circuit accordingly, changed it to an actual 74LS161 (instead of the 74F161), but it's still not counting correctly:
I shortened the wires and tied all the unused pins. I also used a 74LS04 (on the left; chip of OR gates) to double negate the input "clock" signal. The loose brown jumper is the "clock": I manually connect and disconnect it from ground to simulate the clock. The thought was to try to isolate the circuit from everything, including the actual clock module, to debug the problem.
I'm not sure if that's the correct way to place the bypass capacitors. I tried directly connecting the capacitor to the Vcc (without the jumper), and somehow nothing would turn on as a result, so I put the jumper in there. I also tried directly connecting Vcc to GND with the capacitor, but then the Raspberry Pi complains that there is a short circuit. These are all 0.1uF capacitors.
Something else I noticed was that when I tied pin 15, which is the ripple carry output, to low, the counter starts behaving even more eccentrically: it would "count" (i.e. change randomly) even when there is no clock pulse. I don't know if that is diagnostically helpful or not, though...
Let me know your thoughts, and thanks again in advance!