Skip to the content
2 layers18.8 × 37.3 mmYac64pla, the printed circuit board in 3D

Yet Another GAL-based C64 PLA replacement

Size
18.8 × 37.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
4
Nets
40
Pads
84
Tracks, vias
266, 48
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
8 Jan 2023
Updated
10 Apr 2024

Overview

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.

README

README.rst

yac64pla -- Yet Another PLD-based C64 PLA replacement

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.

PLA replacements and the original c64pla

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.

Why this project exists

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.

The board

.. image:: yac64pla-brd.jpeg :width: 640px

.. image:: yac64pla-render.png :width: 640px

Schematic

.. image:: yac64pla-sch.svg :width: 1280px

Parts

GAL (and compatible ATF) family devices that use PLCC-28 can be used. In particular, that's GAL20V8, GAL22V10, ATF20V8 or ATF22V10.

Building it

  1. Order the PCB. With the KiCAD's PCBway and JLC plugis (perhaps others), it's really little more than one click away.

  2. 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.

  3. 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.

PLD programming

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.

Licensing

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

Parts

4
QtyValueFootprintReferences
1C64_PLAPackage_DIP:DIP-28_W15.24mm_Socket_LongPadsU3
1LOGOPL3:mos_logoG***
1PLD_BOTTOMPackage_LCC:PLCC-28U2
1PLD_TOPPackage_LCC:PLCC-28U1

Similar boards

  • 2 layers18.5 × 26 mm24g2usb rp2350zero, the printed circuit board in 3D

    24g2usb rp2350zero

    joypad-ai/joypad-os

    Universal controller firmware for building adapters, dongles, and custom controllers.

    4 parts1.7kApache-2.0
  • 2 layers116 × 33 mm966595-1 and 963356-1, the printed circuit board in 3D

    966595-1 and 963356-1

    rusefi/rusefi

    rusefi - GPL internal combustion engine control unit

    4 parts1.2k
  • 2 layers19 × 18 mmDaughter board, the printed circuit board in 3D

    Daughter board

    hackclub/OnBoard

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

    4 parts915
  • 2 layers24.8 × 24.8 mmNrf24 breakout, the printed circuit board in 3D

    Nrf24 breakout

    tardate/LittleArduinoProjects

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

    4 parts803MIT
  • 2 layers26 × 20 mmCap chain, the printed circuit board in 3D

    Cap chain

    drandyhaas/KiCadRoutingTools

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

    4 parts744MIT
  • 2 layers34.7 × 20 mmXG Station Power MSI, the printed circuit board in 3D

    XG Station Power MSI

    osy/XG_Mobile_Station

    Open source eGPU dock for ROG Ally and ROG Flow

    4 parts712CC-BY-4.0
  • 2 layers20.3 × 24.5 mmJack power input, the printed circuit board in 3D

    Jack power input

    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.

    4 parts546MIT

Questions

How big is the Yac64pla PCB?

It measures 18.8 × 37.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Yac64pla use?

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.

Where can I download the Yac64pla KiCad files?

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.

Can I use the Yac64pla design in my own project?

Its repository states no licence, so its author keeps all rights: ask lkundrak before reusing the design.