

- #HOW TO PROGRAM A LATTICE CPLD PROGRAMMER INSTALL#
- #HOW TO PROGRAM A LATTICE CPLD PROGRAMMER SOFTWARE#
- #HOW TO PROGRAM A LATTICE CPLD PROGRAMMER CODE#
OKĭeclared file checksum: 0x12CF Calculated: 0x12D0. Warning! JED file doesn't match the selected device!ĭeclared fuse checksum: 0x87E2 Calculated: 0x87E2. Warning: Firmware is newer than expected.

$ minipro -p ATF22V10CQZ -w baseline/GAL22V10_combinatorial.jed As detailed in my earlier blog post, I’m using minipro, with a TL866II+ programmer, which could only program these devices after a firmware update. I then took one of the test outputs, and tried writing it to a device. diff -ru baseline/vcc.jed test_tmp/vcc.jed I found that this was simply the assembler version being different, plus a trailing number (maybe a checksum?). Next I tried running the tests, which did not pass $. Then to compile any Rust project is the same process: $ cargo build
#HOW TO PROGRAM A LATTICE CPLD PROGRAMMER INSTALL#
apt install curlĬurl -proto '=https' -tlsv1.2 -sSf | sh The instructions for setting up Rust are online here.
#HOW TO PROGRAM A LATTICE CPLD PROGRAMMER CODE#
Galette is written in Rust, and available only as source code at the time of writing. The open source tool galette can create JED files for the Lattice GAL22V10, so I decided to try to write its output to an ATF22V10 to see for myself. They are pin-to-pin and JEDEC fusemap compatible.” ( GAL22V10 replacement on the Microchip knowledgebase). This turned out to be incorrect.Ī few statements online made me look at this again “You can also write Lattice GAL maps to the Atmel ATF16V8 and 22V10 parts” ( Andrew B on ), and “The most suitable replacement for the GAL22V10 from Atmel is the ATF22V10C/CQ/CQZ. Some programming hardware works with one but not the other, and I had assumed that the fuse map (JED file) would be incompatible as well. There are some slight differences between the Atmel and Lattice devices.
#HOW TO PROGRAM A LATTICE CPLD PROGRAMMER SOFTWARE#
There is a lot more information and software available for Lattice GAL’s, which I assume had the mind-share back when these devices were relevant.

The Atmel ATF22V10 is pin-compatible with the Lattice GAL22V10, which was discontinued over 10 years ago. I recently found an opportinity to test-run an open-source alternative, galette, and this blog post is a few notes about how it went. The device I’m using is the ATF22V10, and programming it in involved running decades-old proprietary software called WinCUPL under WINE. A few weeks ago, I blogged about my setup for programming PLD’s from Linux, which are the simpler ancestors of modern FPGA’s.
