Closed whitequark closed 3 years ago
@whitequark : user needs to provide atleast the information of INSTALL_DIR, the rest 3 lines can be added in a script and can be sourced. Its good to have feature.
You should put INSTALL_DIR
and the other necessary lines into a script when installing the toolchain so there is only a single file to be sourced and it doesn't need any environment variables.
Installation has now setup.sh. Once installed user needs to source setup.sh file to activate the environment.
Thanks!
To build gateware with nMigen using the Quicklogic toolchain, one might naively think that the steps in README would work. However, that would actually override the Python interpreter used in that shell, and nMigen itself would no longer be in it. Because of this, nMigen build scripts source the path in the
NMIGEN_ENV_QLSymbiflow
environment variable, so that only the build script itself runs in the conda environment.Currently, the README suggests the following:
The developer would have to put a file with these commands somewhere and then export the path to it
NMIGEN_ENV_QLSymbiflow
. That's not very convenient. It would be much better if Symbiflow provided such a file out of the box, just like ISE, Vivado, Diamond, etc do.I.e. I would like the following command to be sufficient for setting up the environment:
There no longer seems to be any way to source and activate a conda environment using conda commands alone, so this is something Symbiflow should provide on its own.