Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set path to file at runtime form the command line or read it from a command #651

Open
Barabas5532 opened this issue Oct 17, 2023 · 0 comments

Comments

@Barabas5532
Copy link

Is there any way to set the path to a file at runtime as an argument to fusesoc run? For example, as a run flag with a string value rather than a boolean, or through an environment variable (described in #487 but I can't find it in the docs).

More precisely, I'm looking to replicate the behaviour of this line of bash: iverilog -o demo.vvp demo_tb.v demo_new.v $( yosys-config --datdir/ice40/cells_sim.v ), where yosys-config return the string "/usr/share/yosys/ice40/cells_sim.v" or another path depending on how yosys is installed on the system. Is there any way to get this path into a fusesoc core without editing the core file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant