Learning CPLD and testing GALs

Blogs & guides and tales of woo by forum members.
tzok
Posts: 338
Joined: Sat Dec 30, 2017 2:27 pm

Re: Learning CPLD and testing GALs

Post by tzok »

PhilC wrote: Thu May 21, 2020 9:29 pmSo I've got WinCPLD loaded up on my Windoze laptop and am going to learn CPLD programming.
If you've meant WinCUPL, then throw it away. It is horrible. If you want to use more modern CPLDs, then go for Quartus, if you need GALs, then I recommend you to use Opal Jr. It is DOS based, but runs fine under DOS-Box, and is much more stable and reliable than WinCUPL. In WinCUPL you can never know if you've got a faulty chip, made a mistake in code, or is it just some memory leak in the WinCUPL... you could write a code, compile it, then close WinCUPL, reopen it, compile again, and you will end up with two different JEDEC files.
User avatar
JezC
Posts: 2118
Joined: Mon Aug 28, 2017 11:44 pm

Re: Learning CPLD and testing GALs

Post by JezC »

exxos wrote: Thu May 21, 2020 11:01 pm I cannot remember if it was tested, but any drive should work on the H4 without needing to change the jumper...
Ok, great - if it's not already tested then I will check it as soon as I can finish off the first H4. That will probably only be in DD mode rather than HD mode... :roll:
User avatar
PhilC
Moderator
Moderator
Posts: 6039
Joined: Fri Mar 23, 2018 8:22 pm

Re: Learning CPLD and testing GALs

Post by PhilC »

tzok wrote: Thu May 21, 2020 11:58 pm
PhilC wrote: Thu May 21, 2020 9:29 pmSo I've got WinCPLD loaded up on my Windoze laptop and am going to learn CPLD programming.
If you've meant WinCUPL, then throw it away. It is horrible. If you want to use more modern CPLDs, then go for Quartus, if you need GALs, then I recommend you to use Opal Jr. It is DOS based, but runs fine under DOS-Box, and is much more stable and reliable than WinCUPL. In WinCUPL you can never know if you've got a faulty chip, made a mistake in code, or is it just some memory leak in the WinCUPL... you could write a code, compile it, then close WinCUPL, reopen it, compile again, and you will end up with two different JEDEC files.
Lol, yes thats what I meant. I'll have a look at the Opal program over the weekend.

Thanks
If it ain't broke, test it to Destruction.
User avatar
exxos
Site Admin
Site Admin
Posts: 23786
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Learning CPLD and testing GALs

Post by exxos »

You don't need to open and close CUPL to get different jed files, every recompile you will get a different JED because of the time stamp in the file..

Capture.JPG
Capture.JPG (241.7 KiB) Viewed 3160 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
czietz
Posts: 550
Joined: Sun Jan 14, 2018 1:02 pm

Re: Learning CPLD and testing GALs

Post by czietz »

BTW: It seems like the most modern software to still support GALs (Lattice ispLEVER Classic) has paid-for licenses (590 USD per year) only. Didn't this use to be free-of-charge? Does Lattice want to "milk" the customers stuck on legacy devices? This also makes their 5V-tolerant CPLDs (mach 4A) very unattractive.

EDIT: The Internet Archive shows that I did not remember it wrong: Until at least end of 2019, the license for ispLEVER Classic was free. Now the link to request a free license has vanished from the Lattice website and has been replaced by a link to their online store.
tzok
Posts: 338
Joined: Sat Dec 30, 2017 2:27 pm

Re: Learning CPLD and testing GALs

Post by tzok »

I didn't mean the time stamps, but completely different fuse map. If you mess too much with the code in editor, and compile just after editing, it is likely, that compiler will output garbage.

Another advantage of Opal Jr is, that it allows to convert JED back to EQN (decompile).
User avatar
exxos
Site Admin
Site Admin
Posts: 23786
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Learning CPLD and testing GALs

Post by exxos »

I've not really had any issues with it. Just it doesn't create a jed (and gives no warnings) if you do not set a clock on a flipflop for example. If you move code about it will create a different fuse map as well.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “MEMBER BLOGS”