peterzieba / 5Vpld

A collection of scripts and tools for Atmel ATF150x and GAL Programmable logic devices, some of the only standing active 5V programmable logic parts still available.
78 stars 9 forks source link

Docker? #3

Open vcifello opened 1 month ago

vcifello commented 1 month ago

Great project!

Would it be possible to Dockerize?

Would love to use on Mac silicon.

Thanks

peterzieba commented 1 month ago

It sounds like Wine will run on Mac Silicon (or can be made to with some convincing?), and so in theory everything else should work all the same once Wine is set up. Using something like Quartus would require a hypervisor to run Windows, but also very likely not a problem for Mac Silicon.

I would be interested in nudging the shell script to behave identically on a Mac if it turned out that there were issues there, but I don't own one and so that makes things a little tricky.

As for Docker, It's a cool idea and I definitely appreciate that many things can be a chore to get things up and running, but it's not clear to me that it would be the right solution to the problem and I'm not sure I would have the bandwidth to maintain a release if it were. I would however be more than happy to include it in the list of potential approaches if one were successfully created and found to be beneficial.

Much of what I emphasize here in this repository is that there are very many potential approaches to getting something to work that depend highly upon what one is already familiar with or what one wants out of the experience.

For me, I really wanted to use CUPL and documenting the esoteric bits about it, the device libraries and the subtle things that would cause it to break was probably the most important bit, so I wrote some shell scripts that would check some basic things to catch common problems. My hope is that the scripts are simple, legible and well commented enough that people can repurpose them to their liking.

To make things even easier, perhaps the other approach might be to simply run something like this in a web browser and be able to drag and drop a .PLD file and get back a .JED. I would love to make something like that happen at some point.

Also worth considering is Github CI workflows, which has been demonstrated here: https://github.com/Manawyrm/PAL-GAL-CI

My suggestion would be to try setting up Wine if you are interested in using an approach that uses CUPL and see what happens.

Cheers