CONNECTION: SECURE // NODE: GUEST_PROTOCOL

ThisOldScot Technical Archive

EST_2024

Programmable Logic (GAL/PAL to CPLD Migration)

INITIAL_RELEASE: 27.Jan.2026

3 MIN_READ

Overview // Wiki_Guide

Benchmark_Data:

COMPLEXITY: MODERATE

TIME_EST

30 MINS

Instruments:

Standard loadout.

Materials:

Consumables only.

Document ID: TOS-LOG-REF-003 Revision: 1.0 Author: ThisOldScot

Section_1: Overview#

In many 90s consoles and arcade boards (Capcom CPS1/2, Neo-Geo), “Custom Glue Logic” was handled by PAL (Programmable Array Logic) or GAL (Generic Array Logic) chips. These chips are the precursor to FPGAs. Because they are programmed with proprietary equations, a failed GAL often results in a “Dead” board that cannot be fixed with standard off-the-shelf parts.

In the Highlands Lab, we utilize CPLD (Complex Programmable Logic Devices) to replicate these failed chips, ensuring the longevity of high-value arcade and console hardware.

Section_2: Logic Families in Transition#

Device TypeVoltageRe-programmable?Status
PAL16R8 / 20R85VNo (One-time)Legacy (Common failure point).
GAL16V8 / 22V105VYesDirect replacement for PALs.
XC9500 (CPLD)5V/3.3VYes (Flash)The modern standard for replication.
EPM7000 (CPLD)5VYesHigh-speed, high-density logic.

Section_3: The Extraction & Reverse Engineering Protocol#

If the equations for a proprietary chip are not archived, we must “Sniff” the logic.

STAGE_3: 01 // Logic State Mapping#

Attach a Logic Analyzer (TOS-DIAG-003) to every pin of a known-working chip. Record the inputs and the resulting outputs during a full boot cycle.

STAGE_3: 02 // Boolean Synthesis#

Use the captured data to derive the Boolean Equations (e.g., Output = (A AND B) OR NOT C).

STAGE_3: 03 // Compiling the JEDEC File#

Input the equations into a compiler (like WinCUPL for GALs or Quartus for Altera CPLDs) to generate the binary “fuse map.”

Section_4: Programming & Installation#

  1. Hardware Handshake: Connect the CPLD to the JTAG Programmer (Xilinx Platform Cable or Altera USB-Blaster).
  2. Verification: Perform a “Blank Check” before flashing the new logic map.
  3. The Socket Rule: Never solder a CPLD directly to a vintage board during R&D. Always use a high-quality Machined Pin Socket to allow for easy logic updates if bugs are found.

Section_5: Technical Warning#

Safety_Warning

SECURITY BIT ALERT: Many original arcade PALs have a “Security Bit” set at the factory. This prevents the chip from being read by a programmer. If the security bit is active, the only way to replicate the chip is through the Logic Sniffing Protocol described in Section 3. Attempting to “Force Read” a secured chip can result in internal logic corruption.

Section_6: Practical Application: Neo-Geo Custom IC Failure#

The Neo-Geo MVS uses several custom “PRO-XXX” chips for address decoding. When these fail:

  1. We desolder the failed ASIC.
  2. We install a custom PCB interposer containing a Xilinx XC9572 CPLD.
  3. We flash the “PRO-Decoding” equations to the CPLD.
  4. The Result: A perfectly functional Neo-Geo restored with modern, reliable logic.

Verified_Technician_Credential

Gareth

Trained as an Electronics technician, 30+ years of electronics and electrical experience.

Exp_Audit: 2026Standard: IPC-A-610