6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri May 10, 2024 8:26 am

All times are UTC




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: GAL compiler
PostPosted: Tue Mar 24, 2015 12:10 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8433
Location: Southern California
banedon wrote:
I notice that most CPLD don't come in a DIP package. How do you deal with PLCC when wire wrapping? I haven't seen any ww PLCC sockets...

See approximately the middle of this page of the 6502 primer: http://wilsonminesco.com/6502primer/MoreOnPCB.html . PLCC WW sockets are rare and expensive, but they do exist. See also the sticky topic "Techniques for reliable high-speed digital circuits" at viewtopic.php?f=4&t=2029 . Someone was suggesting another way, using thru-hole PLCC sockets along with low-profile strips of WW screw-machine-type single-row sockets. Hopefully he will speak up, whoever it was.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: GAL compiler
PostPosted: Tue Mar 24, 2015 4:55 am 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3354
Location: Ontario, Canada
GARTHWILSON wrote:
Someone was suggesting another way [...] Hopefully he will speak up, whoever it was.

That'll be me. And I've just posted my suggestions here. :)

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
 Post subject: Re: GAL compiler
PostPosted: Fri Mar 27, 2015 7:54 am 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
Thanks - I'll give that a go as I want to start experimenting with PLCC stuff, but have always been put off by how you wire/solder them in (i.e. not quite sure how to).


Top
 Profile  
Reply with quote  
 Post subject: Re: GAL compiler
PostPosted: Sat Mar 28, 2015 2:47 pm 
Offline
User avatar

Joined: Sun Oct 13, 2013 2:58 pm
Posts: 485
Location: Switzerland
Hi banedon,

just saw this thread. Therefor I want to share my expierence with the G540 and GALs.

I have as well a Genius G540 programmer and as you said the manual is rather ridiculous and the GUI has some tweaks. However it does it's job. As you already found out you need to disable the ENCRYPTION step when programming GALs. This encryption step does not what it should. It was meant to write the security fuse but it does it the wrong way. So this option is unusable and for hobbyists not even necessary.

Another pitfall is that the G540 effectively does only the D-Type Lattice GALs. Other GALs should work according to the handbook, but he does not set the correct programming voltage, which especially for the older non-typed GALs of Lattice and other vendors and as well for some A and B type GALs is required. If set wrong they will not be programmed or even erased. NS Type-none/A/B and Lattice type-A definitively don't work. Only reading works for all types as this has been standardized to use a VEE voltage of 12.5V. I would suspect that half of your problem lies in the fact that you use a B-Type GAL. That's what is my experience YMMV. When my old PC that held my homebrew GAL programmer (built after a project form the german heise magazine from the early '90s) broke, I still had a lot of B-type GALs sitting around. After I found out about that issue I got a bunch of new D-Type GALs in PDIP from China/ebay etc. and threw away my stock of old none/A/B-type GALs. At a price around 2USD per piece this was no big investment. That was last november and every since I have my working environment and programmed quite some GALs for my projects.

As a GAL assembler I use a modified version of galasm from Alessandro Zummo which is available as source

https://github.com/daveho/GALasm

The reason I had to modify the source was because I wanted to compile it on my Mac. Also there is a flaw with filenames I had to fix. So nothing that cannot be done with a decent knowledge of C (my knowledge of C-language is extremely basic and I still managed to do so). In any case, the syntax for the input files of galasm is simple and it comes with enough examples to cover all topics. It does not have any macros, so you have to write all terms in full length (sometimes you often use the same term for multiple outputs, this is where macros are very handy). "galasm" is a command line tool and works on Linux, MacOSX and Windows once you have compiled it. If you have a MAC I can support you. I successfully programmed simple and complex designs for the GAL16V8, GAL20V8 and GAL22V10 and also some registered designs for the GAL22V10.

So in other words my workflow looks as follows

    I mostly use vi, TextEdit or TextWrangler on my Mac or sometimes TextPad on my virtual windows to create the source file for galasm
    I use "galsm" to convert the source to the .jed output file
    Then I switch to my Virtual Windows XP where I have installed the software for the G540 and programm the GALs using the Jedec file created in the previous step

I never had problems with the ZIF socket of the G540, in fact I think the quality of the ZIF socket is comparable to the ZIF socket of the ALL-01 programmer, I had access to long time ago. You need to place your ICs carefully. If you're in a hurry or under stress it will not work. That was the same when using the ALL-01.

A word about ATMEL CPLDs. All cheap programmers, and the Genuis G540 belongs to this category as well most Chinese programmers from TOP and GENIUS, do not support the ATMEL CPLDs. If they claim they do this is an utter lie. So to be able to program ATMEL CPLDs you need a proper officially supported environment. The officially supported programmers are listed in the following PDF

http://www.atmel.com/Images/doc0433.pdf

Some of them can be found in the bay, but the cheap ones require a parallel port.

Regards

Peter


Top
 Profile  
Reply with quote  
 Post subject: Re: GAL compiler
PostPosted: Sat Mar 28, 2015 9:58 pm 
Offline
User avatar

Joined: Sun Sep 08, 2013 10:24 am
Posts: 740
Location: A missile silo somewhere under southern England
Hi Peter

Thanks for the information and advice.

I did eventually manage to program a Lattice 22V10B, but it was quite a struggle which I was putting down to the ZIF socket.
Given what you say, I might try and order some 22V10D's in and see how that goes.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron