From: William D. Jones Date: Sat, 29 Aug 2020 19:34:57 +0000 (-0400) Subject: vendor.lattice_{ecp5,machxo_2_3l}: explain how to set up NMIGEN_ENV_Diamond on Windows. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c4a8930636b9ecb5c48f1c3bdbc7dbb87053328;p=nmigen.git vendor.lattice_{ecp5,machxo_2_3l}: explain how to set up NMIGEN_ENV_Diamond on Windows. --- 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.