Skip to content
A CPLD implementation of the classic 82S100/82S101 as used in for example C64
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
82S100replacement.GBL CAD and prouduction files. Dec 1, 2016
82S100replacement.GBO CAD and prouduction files. Dec 1, 2016
82S100replacement.GKO CAD and prouduction files. Dec 1, 2016
82S100replacement.GTL CAD and prouduction files. Dec 1, 2016
C64.PLD Updated link Apr 18, 2018


A CPLD implementation of the classic 82S100/82S101 as used in for example C64

82S100 replacement

The WinCUPL code is taken directly from the VHDL made by Thomas 'skoe' Giesel and simply translated into WinCUPL. Skoe made an excellent description on the C64 PLA which is very well worth reading.

The small board is available as a shared project at OSHPark. Anyone is welcome to use the production files, Diptrace files and WinCUPL the way they like. But don't blame me if you get problems (or destroy your computer or someone else's computer...). It works fine for me and your mileage may vary.

Yes. I am aware that I did a small mistake in that the JTAG connector doesn't have 0.1" pitch.

In C64

Compared with other C64 PLA replacements this one is more generic 82S100 or 82S101 replacement since the #OE signal is provided at pin 19 and there is no special buffering on the outputs so they can be either tristate or open collector as the designer of the WinCUPL file wishes.

The CPLD used is an Atmel ATF1502ASL-25AU44. The good thing with this Atmel part is that it is 5V. Not just 5V tolerant. The L variant is also Low power and the slowest part which is good when emulating old parts. Mouser order# 556-AF1502ASL25AU44. The decoupling capacitor is a 0.22uF ceramic. Mouser order# 80-C0805C224K5R. The cheapest way to get the connecting pins is to order them from Aliexpress. Search for "Gold Plated 2.54mm Male 40 Pin Single Row Straight Round Pin Header Strip"

Since EPM7032S is pin compatible it can be used as well as far as I can see. However the vendor has discontinued their 5V line. Although devices can probably be found from surplus sellers.

To program the part you need to download the WinCUPL software fomr Atmel site. It is free and runs under Windows. Then to download your design to the chip you need a JTAG ISP cable, ATDH1150USB-K.

jamarju contributed with information on a cheaper way to program the Atmel devices:

As an alternative, if you have an old computer with LPT1, you can build this cable:

Atmel CPLD LPT programmer

I used a cut out USB cable to get the 5V for VREF and tied the DB-25 and USB GNDs together. Also pin 13 out of the DB-25 is not needed, so the only components needed are 1x 33 ohm and 1x DB-25 male connector.

DIY byteblaster

Use the older XP/2000 ATMISP v6.7 version and choose "ByteBlasterMV" as programmer:

ATMISP setup

You can’t perform that action at this time.