* TinkerDifferent *
Retro Computing Community
Home | Forums | What's New | Search | Settings
Reverse PAL / GAL Truth Tables

Forums > The Lab > Hardware

Stephen
BetterBit
San Francisco
--------
Joined: Sep 5, 2021
Posts: 215
Likes: 264
Dec 4, 2021 - #1
A few of members are already familiar with truth tables and reversing PAL / GAL chips. If you're among the less familiar, these are chips with several inputs and several outputs. The output is dependent on the combination of input signals to individual pins -- all of which can be customized. This customization is known as truth-tables. These chips were popular on early compact Apple computers because they could replace many chips into a single easy to prototype / customize chip.

I am not among those who are familiar but I hope more experienced members would share their input -- I'm interested in making an Arduino-based platform to simplify the interface with chips. I see ReGAL has a tool to probe and generate truth tables but I don't really understand how the probing portion is connected to an Arduino.

What I'm describing would probably use shift registers to add a significant amount of IO ports. Pins could be labelled and configured arbitrarily in order to identify all permutable input / output combinations. The physical hardware would predominately be a PCB to house the required chips and a ZIF socket to conveniently interface with chips.

Liked by usefi5961andElemenoh

Bolle
Tinkerer
--------
Joined: Nov 1, 2021
Posts: 55
Likes: 95
Dec 4, 2021 - #2
This does already exist:

DuPAL - PAL Reversing Tools

Collection of tools I use to reverse engineer PAL devices. These tools are meant to satisfy my needs. I'm sharing them here in case someone finds them useful. - DuPAL - PAL Reversing Tools
[Image: github.com] github.com

Despite the "Dumper" in its name it does not dump anything. If you've just got a PAL and no idea where it was used and don't know what it did in a circuit you'll be having a hard time (that goes for all of the existing PAL "dumping" methods)
The tools contained in the github will assist you by doing a blackbox analysis on an unknown PAL. The result (if there is a result - asynchronous feedbacks and some nasty tricks that were possible with PALs will oftentimes let the analysis fail) will assist you with rewriting equations for that PAL.

The only "fast" way to dump PALs is to decap them and put them under a microscope. The "easier" but most of the time way more time consuming way is going to be careful observation of the behavior of a PAL and rewriting of equations to match it.
Attachments:
github.com [View]
github.com [View]

Liked by demik

usefi5961
New Tinkerer
--------
Joined: Aug 7, 2025
Posts: 3
Likes: 0
Aug 8, 2025 - #3
>> Stephen said:
A few of members are already familiar with truth tables and reversing PAL / GAL chips. If you're among the less familiar, these are chips with several inputs and several outputs. The output is dependent on the combination of input signals to individual pins -- all of which can be customized. This customization is known as truth-tables. These chips were popular on early compact Apple computers because they could replace many chips into a single easy to prototype / customize chip. I am not among those who are familiar but I hope more experienced members would share their input -- I'm interested in making an Arduino-based platform to simplify the interface with chips. I see ReGAL has a tool to probe and generate truth tables but I don't really understand how the probing portion is connected to an Arduino. What I'm describing would probably use shift registers to add a significant amount of IO ports. Pins could be labelled and configured arbitrarily in order to identify all permutable input / output combinations. The physical hardware would predominately be a PCB to house the required chips and a ZIF socket to conveniently interface with chips. Click to expand...
Thanks,can you please share decryption pal16l8 with arduino project?

Trash80toG4
Active Tinkerer
Bermuda Triangle, NC USA
--------
Joined: Apr 1, 2022
Posts: 1,131
Likes: 329
Aug 13, 2025 - #4
Your double post is the perfect spot to drag things off tangentially!

Been trying to wrap my head around rotation of the Radius FPD/SE output for my cloning project.

@zigzagjoe made this suggestion:
That card appears to be completely discrete or programmable logic. It would be simpler to just reverse engineer and modify the counter logic responsible rather than try to adapt it. If a general purpose card outputting a more usable resolution is the goal. The pixel clock may be too high for a RGB2HDMI or similar.

Wondering if the tools you folks are talking about here would be what's needed to noodle out what's going on and set it up yo rotate the scan lines in programmable logic? Might the driver need to be hacked as well? ROM?

Rotation of Full Page Display output for use with conventional LCDs

Figuring a dedicated thread here might be the way to go. Hoping you Raspberry Pi boffins will join into the fray. ;) Subject's a spinoff from attempts at cloning Radius FPD Cards, but useful in supporting existing cards for which there is no acceptable method of displaying the output at...
[Image: 68kmla.org] 68kmla.org

[Image: FPD-SE-Component-00.JPG]
Attachments:
68kmla.org [View]
FPD-SE-Component-00.JPG [View]

Trash80toG4
Active Tinkerer
Bermuda Triangle, NC USA
--------
Joined: Apr 1, 2022
Posts: 1,131
Likes: 329
Aug 15, 2025 - #5
Sorry about the noob inquiries, but would appreciate a little input here, need a starting point for learning a bit about this stuff. ;)

Page 1 of 1

Home | Forums | What's New | Search | Bookmarks | RSS | Original | Settings
XenForo Retro Proxy by TinkerDifferent.com