
24g2usb rp2350zero
joypad-ai/joypad-os
Universal controller firmware for building adapters, dongles, and custom controllers.

Yet Another GAL-based C64 PLA replacement
Yac64pla is an open-source printed circuit board by lkundrak, from the lkundrak/yac64pla repository on GitHub. It is a 2-layer board of 18.8 × 37.3 mm with 4 parts on 40 nets, routed with 266 tracks and 48 vias.
TLDR: This is a derivative of c64pla_, the C64 PLA replacement project that
utilizes dual GAL chips. This one uses PLCC28 packages instead of DIL32
and that's basically it.
For as long as C64 PLA chips like to fail, clever people have been finding ways to replace them.
In my opinion, the cheapest and most elegant approach was taken by Daniël Mantione: replace the original, difficult to obtain, logic array with a pair of slightly smaller GAL programmable logic chips. Cheap, simple and reliable.
Now stop reading and read the documentation of Daniël's c64pla_ first.
.. _c64pla: https://www.freepascal.org/~daniel/c64pla/
Really. This document assumes you've read the above. From this point on, it only deals with what's different in my version.
The only problem I saw with the original project is that it's not pretty. The pair of long, thin and noodly DIL24 packages obscenely extends to the sides, angering the gods and completely ruining the feng-shui of the general area.
I set out to it fix and ended up replace the DIL 24 parts with much tinier PLCC 28 footprints, so that the board will not be larger than an usunal DIL part.
That's it. If you don't care about the looks, or like the dual-DIL looks of the original, use the original project. This one is not objectively better.
.. image:: yac64pla-brd.jpeg :width: 640px
.. image:: yac64pla-render.png :width: 640px
.. image:: yac64pla-sch.svg :width: 1280px
GAL (and compatible ATF) family devices that use PLCC-28 can be used. In particular, that's GAL20V8, GAL22V10, ATF20V8 or ATF22V10.
Order the PCB. With the KiCAD's PCBway and JLC plugis (perhaps others), it's really little more than one click away.
Program the JED files on to the PLDs. I use the TL866-II programmer with
the minipro_ tool. You'll also need the PLCC-28 to DIL-24 adapter.
The repository contains the pre-built JED files for individual chips of supported device families:
yac64pla-top-20V8.jed Top chip programming for GAL20V8 or ATF20V8 devices.
yac64pla-bot-20V8.jed Bottom chip programming for GAL20V8 or ATF20V8 devices.
yac64pla-top-22V10.jed Top chip programming for GAL22V10 or ATF22V10 devices.
yac64pla-bot-22V10.jed Bottom chip programming for GAL22V10 or ATF22V10 devices.
Solder it. Even though there are SMD parts, they're large enough for them not to be difficult to hand-solder.
.. _minipro: https://gitlab.com/DavidGriffith/minipro
Should you need any help, find out if there's a Hackerspace in your area. You're certain to find someone who's going to help you acquire the skills you need.
You may try dropping me a message. I'd be happy to help but note I haven't figured out how not to suck at e-mail yet.
The c64pla is programmed with WinCUPL. Thus sucks, because while it's
feature rich, it's pretty terrible, aged and proprietary tool. Also, I don't
really know how to use it. I redid it in GALasm format, which can be
compiled by galette_, a modern free software tool. It's much simpler, but
perfectly appropriate for the job.
.. _galette: https://github.com/simon-frankau/galette
Apart from a rewrite in GALasm, I created a Perl script that can regenerate the GALasm files for different pin layout and move the logic equations across the chips. It also updates the KiCAD schematic, ensuring the PCB stays up to date. This is probably not too useful now, but it enabled me to shuffle pins around when choosing a good enough pin layout for the tight routing on the small PCB.
Given how ignorant am I about legal aspect of the project, and how unlikely are the lawyers to knock on my door and take everything that's dear to me, I decided to not give a shit.
I'm placing the parts of the project I've done into the Public Domain.
Love, Lubo
| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | C64_PLA | Package_DIP:DIP-28_W15.24mm_Socket_LongPads | U3 |
| 1 | LOGO | PL3:mos_logo | G*** |
| 1 | PLD_BOTTOM | Package_LCC:PLCC-28 | U2 |
| 1 | PLD_TOP | Package_LCC:PLCC-28 | U1 |

joypad-ai/joypad-os
Universal controller firmware for building adapters, dongles, and custom controllers.


hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

tardate/LittleArduinoProjects
a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

drandyhaas/KiCadRoutingTools
A set of Python/Rust tools to aid routing in KiCad

osy/XG_Mobile_Station
Open source eGPU dock for ROG Ally and ROG Flow

Luos-io/luos_engine
Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

NVNTLabs/switch2-SDEX2M2
Micro SD Express to M.2 NVME Adapter for Nintendo Switch 2
It measures 18.8 × 37.3 mm and has 2 copper layers, 1.6 mm thick.
4 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the lkundrak/yac64pla repository on GitHub, at the commit this page was made from: the board is yac64pla.kicad_pcb and its schematic yac64pla-tmpl.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask lkundrak before reusing the design.