EmbeddedRelated.com
Forums
Memfault State of IoT Report

PAL's and GAL's

Started by joza...@gmail.com March 30, 2006
jozamm@gmail.com wrote:
> > Thanks for all the information. The only interest is more academic as i > want to use them for demonsration purposes... > The reason wanting schematic entry is for my students to visualize what > is happening rather then the luxury of schematic entry for itself.
Well done for introducing your students to this. Far better than the sterile "implement the following requirements using 2 input NAND gates" that is still all too common. How about using one of the equation input packages, but giving the students the task of producing the equations from the schematic? Paul Burke
On 29 Mar 2006 22:02:06 -0800, "jozamm@gmail.com" <jozamm@gmail.com>
wrote:

>Hi ppl, > >I need to program sevetal PAL's and GAL's in an educational enviroment. >I will be using a hobbyist programmer to do the programming as i do not >need any large volumes. > >What software is available to enter the logic equations and compile to >the fuse file? Does any schematic entry software exist which one can >enter the schemtic and compule to the fuse map? > >Any sort of help on PAL's and GAL's would be greatly appeciated. > >Joseph Zammit >Malta
The ICT Place software is (I think) free http://www.ictpld.com/ftp/an7.pdf but you will need a programmer of some sort. I'm currently doing a PEEL 22CV10 design (blast from the past! There's nothing like having 10 macrocells to make you really reduce a design) and I'm using the older Dos-based APEEL software ("if you have a system with two floppy disks...") which is just simple PALASYM/ABEL syntax text entry of logic equations. There's probably some copies of PALASYM floating around (I must have one somewhere in the archives, I guess) for programming the genuine oldies, the PAL16L8's and such. John
<jozamm@gmail.com> wrote in message 
news:1143710640.205620.290380@z34g2000cwc.googlegroups.com...
> Thanks for all the information. The only interest is more academic as i > want to use them for demonsration purposes since i teach a vocational > engineering course i do not only need to explain the use but even to > show these devices working. I cant use VHDL or Verilog because the > level is pitched too high for my students.
I have a hard time believing that your students can be smart enough to correctly implement designs using schematic capture but not using Verilog or VHDL. Not to mention what's already been said about industry using HDLs, so there's questionable benefit to spending time teaching people obsolete technology.
> The reason wanting schematic entry is for my students to visualize what > is happening rather then the luxury of schematic entry for itself.
Unless you restrict your students to only using AND gates & OR gates, flip-flops and perhaps an inverter on the input & output, this isn't going to happen. All the old schematic packages already had most sophisticated functions such as counters, shift registers, etc. built up for you to use (in fact, some tools had complete libraries of almost all the 74xx logic ICs!). Some tools would let you "drill down" and see the "primitive" logic elements used to implement the functions, though. ---Joel
On 29 Mar 2006 22:02:06 -0800, "jozamm@gmail.com" <jozamm@gmail.com>
wrote:

><snip> >What software is available to enter the logic equations and compile to >the fuse file? Does any schematic entry software exist which one can >enter the schemtic and compule to the fuse map? ><snip>
I've looked over the responses and do not yet see a direct answer to the question of allowing a schematic entry of logic leading to a fuse map output, with a free tool. I would guess that if you could find a package that supports schematic entry (such as perhaps Altium Designer) and also supports GALs and PALs (don't know about Altium on this score), that you'd get there. But that's _very_ expensive to consider. What else might there be? Seems simple enough to do after the schematic entry graphical part of it is done -- and that itself can be kept relatively simple. An idea -- not sure if it would help. But it would be possible to use Linear Tech's LTSpice (SWCADIII) to do the schematic entry part of the job. It's free to anyone. It isn't difficult to create the symbols that would be used for teaching and the schematic is saved in ASCII form. I've already written the software to parse that ASCII source into an internal form that may be usable for generating the logic equations which could then be input to CUPL, I suppose. Would this fit the need? Jon
I have got a copy of CUPL (4.x? I think) I can send you if you are 
writing logic equations for 16x8 and 22v10 and such

> What software is available to enter the logic equations and compile to > the fuse file? Does any schematic entry software exist which one can > enter the schemtic and compule to the fuse map? > > Any sort of help on PAL's and GAL's would be greatly appeciated.
Jonathan Kirwan wrote:

> On 29 Mar 2006 22:02:06 -0800, "jozamm@gmail.com" <jozamm@gmail.com> > wrote: > > >><snip> >>What software is available to enter the logic equations and compile to >>the fuse file? Does any schematic entry software exist which one can >>enter the schemtic and compule to the fuse map? >><snip> > > > I've looked over the responses and do not yet see a direct answer to > the question of allowing a schematic entry of logic leading to a fuse > map output, with a free tool.
Another alternative is to use this : http://www.tech-chat.de/download.html That's a very nice piece of SW, by Andreas Weber, that allows ASCII type schematics to paste into any source file. So if we have a block that benefits from a drawing, we use this, and paste it into the source. Sure, it is not SCH -> 'PLD opcodes', but it is SCH augmenting PLD source.
> > I would guess that if you could find a package that supports schematic > entry (such as perhaps Altium Designer) and also supports GALs and > PALs (don't know about Altium on this score), that you'd get there.
Altium have CUPL as one of their flows.
> But that's _very_ expensive to consider. What else might there be? > Seems simple enough to do after the schematic entry graphical part of > it is done -- and that itself can be kept relatively simple. > > An idea -- not sure if it would help. But it would be possible to use > Linear Tech's LTSpice (SWCADIII) to do the schematic entry part of the > job. It's free to anyone. It isn't difficult to create the symbols > that would be used for teaching and the schematic is saved in ASCII > form. I've already written the software to parse that ASCII source > into an internal form that may be usable for generating the logic > equations which could then be input to CUPL, I suppose. Would this > fit the need?
ISTR cupl had a package called Liaison (?), and it did this SCH-EQN step [ mostly..:) ] - you need a special library suite, so the symbols can map onto PLD structures. We tried this, years ago now, and yes, it can be made to work. The problems we found are, the features you loose in a SCH flow. ** There are no conditional defines in a SCH package ** Adding notes on "this workes better than that", is cumbersome ** Paste of SIM and FIT output into the source, is also cumbersome ** CUPL has multiple flows, this only works on BOOLEAN EQN Entry ** TABLE form of code is not accessible ** SEQUENCE {} State engine code is also not accessible ** Creating of simulation files is not supported. ** Waveform style comments ? ** Editing is quite slow ** CUPL allows control of what collapses, and what does not. ** CUPL can export Fitter control, via PROPERTY statements. Not sure how a SCH flow would manage those - attributes (more work) ? Whilst with a good programmer's text editor ( we avoid CUPLs default 'vanilla' editor ), all of the above is very simple. -jg
"Joel Kolstad" <JKolstad71HatesSpam@yahoo.com> wrote:

><jozamm@gmail.com> wrote in message >news:1143698526.209430.15360@i40g2000cwc.googlegroups.com... >> What software is available to enter the logic equations and compile to >> the fuse file? Does any schematic entry software exist which one can >> enter the schemtic and compule to the fuse map? > >I suggest you visit www.latticesemi.com. They're one of the few programmable >logic vendors around who still makes GALs (aka "SPLDs," for "simple >programmable logic devices"); most other vendors (Altera, Xilinx, etc.) start >out with CPLDs (complex PLDs), which are just larger & fancier. All the PLD >vendors have a free version of their software which will work with their >smaller devices (and "smaller" is still millions of gates!)
Look for Palasm.
>Some of the software may still support schematic entry, but truth be told, >you're largely much wasting your time using it. PLD design these days is done >using hardware description languages such as Verilog and VHDL; your time is >much better spent learning them. (Somewhat ironically, though, most design >tools now support a graphical means of assigning schematic symbols to HDL >code, and the tool they generates the code that merely connects signals >between the various bits of code!)
Its good to use both schematics and VHDL in an FPGA design. Schematics show how the design structured and you can include small timing diagrams. In VHDL/Verilog code it is easier to describe complex logic functions (like a state machine) which are total spaghetti in a schematic. If you write everyting in VHDL/Verilog you'll need to make a separate picture which shows how everything is connected if you want someone to be able to alter your design. -- Reply to nico@nctdevpuntnl (punt=.) Bedrijven en winkels vindt U op www.adresboekje.nl
Hi Nico,

"Nico Coesel" <nico@puntnl.niks> wrote in message 
news:442c3708.1565328893@news.kpnplanet.nl...
> Its good to use both schematics and VHDL in an FPGA design.
Yes, I agree with you. The point I was trying to make -- pretty poorly given how I worded it -- was that these days a schematic symbol such as an AND gate gets mapped to some VHDL or Verilog code, which then gets synthesized down to primitives & placed/routed. Whereas historically the AND gate was, itself, a primitive.
On Fri, 31 Mar 2006 08:02:00 +1200, Jim Granville
<no.spam@designtools.co.nz> wrote:

>Jonathan Kirwan wrote: > >> On 29 Mar 2006 22:02:06 -0800, "jozamm@gmail.com" <jozamm@gmail.com> >> wrote: >> >> >>><snip> >>>What software is available to enter the logic equations and compile to >>>the fuse file? Does any schematic entry software exist which one can >>>enter the schemtic and compule to the fuse map? >>><snip> >> >> >> I've looked over the responses and do not yet see a direct answer to >> the question of allowing a schematic entry of logic leading to a fuse >> map output, with a free tool. > >Another alternative is to use this : >http://www.tech-chat.de/download.html > >That's a very nice piece of SW, by Andreas Weber, that allows >ASCII type schematics to paste into any source file. > >So if we have a block that benefits from a drawing, we >use this, and paste it into the source. > >Sure, it is not SCH -> 'PLD opcodes', but it is SCH >augmenting PLD source.
Actually, I think you missed understanding me. Maybe not, but the above looks to me like that. Probably my fault. The only reason I mentioned "ASCII" was technical, not visual. I am thinking about the possibility of using LTSpice as a free and graphical and supported schematic capture tool. No ASCII here. I mean, an easy to use tool for laying out the logic and editing it. The ASCII part is about the save files -- which aren't supposed to be read by humans even though they are ASCII. I was proposing the idea of reading those save files and automatically generating the input source to CUPL from that. None of this has anything at all to do with Weber's tool (or my tool which supplements his by using LTSpice for a similar purpose.)
>> I would guess that if you could find a package that supports schematic >> entry (such as perhaps Altium Designer) and also supports GALs and >> PALs (don't know about Altium on this score), that you'd get there. > >Altium have CUPL as one of their flows.
The point is that they aren't free... or cheap.
>> But that's _very_ expensive to consider. What else might there be? >> Seems simple enough to do after the schematic entry graphical part of >> it is done -- and that itself can be kept relatively simple. >> >> An idea -- not sure if it would help. But it would be possible to use >> Linear Tech's LTSpice (SWCADIII) to do the schematic entry part of the >> job. It's free to anyone. It isn't difficult to create the symbols >> that would be used for teaching and the schematic is saved in ASCII >> form. I've already written the software to parse that ASCII source >> into an internal form that may be usable for generating the logic >> equations which could then be input to CUPL, I suppose. Would this >> fit the need? > > ISTR cupl had a package called Liaison (?), and it did this SCH-EQN >step [ mostly..:) ] - you need a special library suite, so the symbols >can map onto PLD structures.
Which is what I'm imagining LTSpice for, if I gather you correctly.
> We tried this, years ago now, and yes, it can be made to work. > >The problems we found are, the features you loose in a SCH flow.
Now to the interesting part.
>** There are no conditional defines in a SCH package
Okay, this *could* be handled with specially annotated TEXT in LTSpice, I suppose. I'm no expert on this application space, so I'm ignorant about how this might work well in a schematic capture situation and I'm also ignorant about the teaching situation which may or may not need this feature. But I don't imagine it poses a serious problem, from my vague understanding of you.
>** Adding notes on "this workes better than that", is cumbersome
What do you mean by the above? I just don't follow, at all.
>** Paste of SIM and FIT output into the source, is also cumbersome
I'm ignorant of this. Can you help me or point me somewhere? (I suppose I can search -- and will -- but I wouldn't object to a pointer or comment from you about it.)
>** CUPL has multiple flows, this only works on BOOLEAN EQN Entry
I was mentioning CUPL only because I saw references. Could be PALASM or other tool input source, as well, I imagine. Whatever is needed by the teacher is all I'm thinking of.
>** TABLE form of code is not accessible
Might be okay for teaching. We aren't talking about a complete tool here, though I wouldn't be averse to suggestions about how schematic capture could be made to work smoothly with a variety of such compiler input source formats and features.
>** SEQUENCE {} State engine code is also not accessible
Same comment.
>** Creating of simulation files is not supported.
Did the teacher mention that? And why not point out which free tools might achieve that, too? If any. No reason why those input file formats couldn't be supported -- or is there?
>** Waveform style comments ?
Got me.
>** Editing is quite slow
In LTSpice? I'm fine with it.
>** CUPL allows control of what collapses, and what does not.
Again, I suppose I need to be smarter about CUPL. I'm not, right now. So my ignorance allows me to see this as "no problem, yet." The question is, can a schematic capture program like LTSpice, tethered together with a command line tool that knows how to read the save files and parse them correctly, be used in conjunction with other standard tools to make a completed and useful package for teaching? I'm still thinking so. But I'm ignorant. So I'll read with attention.
>** CUPL can export Fitter control, via PROPERTY statements. > Not sure how a SCH flow would manage those - attributes (more work) ? > > Whilst with a good programmer's text editor ( we avoid CUPLs default >'vanilla' editor ), all of the above is very simple.
I get you. So you are arguing hard against the use of any graphical schematic entry method for the students. But the instructor has already said this is desirable for his use. I'm willing to go with that assurance. Jon
"Jonathan Kirwan" <jkirwan@easystreet.com> wrote in message 
news:nceo229m3lj0qi99l96ahr52jj0oduh0a6@4ax.com...
> So [someone else is] arguing hard against the use of any graphical > schematic entry method for the students. But the instructor has > already said this is desirable for his use.
I'm willing to go with
> that assurance.

Memfault State of IoT Report