diff --git a/nmigen/vendor/lattice_ecp5.py b/nmigen/vendor/lattice_ecp5.py index c798739..3affa8f 100644 --- a/nmigen/vendor/lattice_ecp5.py +++ b/nmigen/vendor/lattice_ecp5.py @@ -47,7 +47,12 @@ class LatticeECP5Platform(TemplatedPlatform): * ``ddtcmd`` The environment is populated by running the script specified in the environment variable - ``NMIGEN_ENV_Diamond``, if present. + ``NMIGEN_ENV_Diamond``, if present. On Linux, diamond_env as provided by Diamond + itself is a good candidate. On Windows, the following script (named ``diamond_env.bat``, + for instance) is known to work:: + + @echo off + set PATH=C:\\lscc\\diamond\\%DIAMOND_VERSION%\\bin\\nt64;%PATH% Available overrides: * ``script_project``: inserts commands before ``prj_project save`` in Tcl script. diff --git a/nmigen/vendor/lattice_machxo_2_3l.py b/nmigen/vendor/lattice_machxo_2_3l.py index b215f62..08c6008 100644 --- a/nmigen/vendor/lattice_machxo_2_3l.py +++ b/nmigen/vendor/lattice_machxo_2_3l.py @@ -16,7 +16,12 @@ class LatticeMachXO2Or3LPlatform(TemplatedPlatform): * ``ddtcmd`` The environment is populated by running the script specified in the environment variable - ``NMIGEN_ENV_Diamond``, if present. + ``NMIGEN_ENV_Diamond``, if present. On Linux, diamond_env as provided by Diamond + itself is a good candidate. On Windows, the following script (named ``diamond_env.bat``, + for instance) is known to work:: + + @echo off + set PATH=C:\\lscc\\diamond\\%DIAMOND_VERSION%\\bin\\nt64;%PATH% Available overrides: * ``script_project``: inserts commands before ``prj_project save`` in Tcl script.