74xx-liberty icon indicating copy to clipboard operation
74xx-liberty copied to clipboard

Support running from other locations

Open pepijndevos opened this issue 5 years ago • 2 comments

Today I was experimenting with using this project with the experimental GHDL Yosys plugin: https://github.com/tgingold/ghdlsynth-beta

I ran into issues because the synth script has hardcoded paths relative to the current directory, not the scripts directory, so it only works from subfolders of this repo. So that doesn't really work when you want to use it in another project. (Like a TTL dual stack CPU :)

@daveshah1 mentioned that there is a TCL API, so it should be possible to encode the paths relative to the script file with some trickery. help tcl tells me it can import the yosys commands into the TCL shell, so it just needs a few lines to make the correct paths.

While I'm at it I might also add VHDL support to the Makefile, but that stuff is very experimental and requires a lot of extra setup. So maybe I'll just keep that for my own entertainment until it's a bit more stable and complete. (I plan to contribute to GHDL a bit over the summer)

pepijndevos avatar Jun 29 '19 21:06 pepijndevos

Actually I think the right thing to do might be to write a plugin in C and copy all the files into the plugin folder. That way you can just synth_74xx from everywhere.

pepijndevos avatar Jul 24 '19 12:07 pepijndevos

Yeah, probably, since we're probably not going to get this upstreamed.

On Wed, 24 Jul 2019, 13:56 Pepijn de Vos, [email protected] wrote:

Actually I think the right thing to do might be to write a plugin in C and copy all the files into the plugin folder. That way you can just synth_74xx from everywhere.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ZirconiumX/74xx-liberty/issues/10?email_source=notifications&email_token=AALPDW7DH4ZVP35HH453KBLQBBGPZA5CNFSM4H4LHIFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2WHYZY#issuecomment-514620519, or mute the thread https://github.com/notifications/unsubscribe-auth/AALPDW5W6NUJUGYZO2KK2KLQBBGPZANCNFSM4H4LHIFA .

Ravenslofty avatar Jul 24 '19 12:07 Ravenslofty