first attempt at PAL equations in galette--umm--did not match the real thing at all. i'm swapping parts into the DuPAL to compare how they perform for the same inputs.
UNFORTUNATELY i've discovered that DuPAL cannot differentiate between a tri-stated output and a low output, even though the hardware is capable of doing that. 😩
@tubetime I don't have the device with me right now, so I can't test this change on real hardware.
But I have pushed a branch named "hiz_out" that you can checkout and try (add the '-hiz' parameter to the command line).
The limitation is that, for now, it checks for tri-stated outputs only on pins that are output-only for the particular device (like pin 12/19 on a 16L8), not on I/O pins.
Let me know how it goes.
you would think that by now someone would have written a CUPL clone, or ABEL etc.
Piffle.
PARC engineers wrote PROM state machines in BCPL
@bitsavers @tubetime ah yes, just a second while I compile the FORTRAN source code for that...
(seriously, please tell more)
@tubetime @bitsavers nextpnr is a poor fit for non LUT arches
re WinCupl, have you seen prjbureau?
@tubetime How can I make galette less awful? It's currently extremely galasm-like, but if there are things I can do to make it nicer to use, I'm all ears.
(The deficiencies are probably obvious, but I'm too used to galasm to notice.)
@sgf ah thanks, I really appreciate your openness! I guess there are a couple of things:
- better error messages. I had some underscores in term names and the error I got said "invalid character in line n" but didn't say what the invalid character actually was.
- better docs. it's always a pain to write this stuff but it's super helpful for folks.
- equation reduction is probably out of scope since palasm was meant to be a thin wrapper around the raw fuse map, but that would be cool. 😃
@tubetime I worked on some error messages last week, for unrelated reasons - PTAL at Github latest & I'll fix anything missing.
Docs: I love writing docs, but don't know what people need, so let me know.
Equation reduction is tempting. I was thinking of writing something like a cupl2pld stage so that the pld format remains WYSIWYG. It's lower priority than just making it more usable in its basic form, though.
Thanks for the feedback. If GitHub issues work better for you, that's also good.
@tubetime you know, there is a linux program called
galasm
@tubetime you're incredibly good at this
I could probably do this, but nowhere near as quickly