First post, by douglar
- Rank
- l33t
This was pretty interesting-- Using AI to replace failed PAL & GAL chips--
https://www.youtube.com/watch?v=C-dF4B84ZXs
Makes me glad I kept a bunch of failed controllers that maybe I can fix this way.
Although sometimes if you read a PAL chip and it's all 1's, couldn't it be copy protected?
Now, let me read what's on this chip ..... All 1's .... There's nothing on this chip. I guess it's too old.
Which means now I have to trace all the different signals from this chip because we have some inputs—pins 1 through 9, plus pin 11, while pin 10 is ground—and we have outputs. I know that some of them are jumpers to configure this chip, and they will be used inside the logic of this GAL chip to enable and disable other chips. An enable signal, for instance, could go to the IDE connector, or it could go anywhere. So I have to figure out where these signals go, and based on this map, hopefully Claude can recreate the logic programming of that chip.
With a multimeter, I went through every single pin of this chip that we removed from U5. This is definitely a GAL chip, and I tried to figure out where every pin connects to. This is the pin map of my work right now, so you can see where every single pin connects. There were a few unknowns—for instance, pin 8 goes to the Acer chip on pin 18, and there's also a 4.7 kiloohm pull-up resistor whose function is unknown—but everything else is completed.
So Claude wrote the GAL equations. I don't want to show the equations just yet because I don't know if they work, but they're based on this pinout that you see here. Now, let's program it. I have a GAL16V8B here that I pulled off another board. Okay, let's program this chip. Hopefully, this works. That looks good—programming successful. Very nice.
Okay, cool. I already put the socket on this card. Now we can place our programmed GAL chip in the socket, and hopefully, this card now detects the IDE drive. Okay, this is the moment of truth. I have no idea what is going to happen, so let's find out together. Will we see the flash card? I can already see it: Compact Flash 256! It figured it out—it's working! I can't believe this. Claude was able to reconstruct the logic for this GAL chip on the first try.