From 47ecc162839be81c1d9256f9ffd53a5f1ab3864a Mon Sep 17 00:00:00 2001 From: "William D. Jones" Date: Sat, 29 Aug 2020 15:34:57 -0400 Subject: [PATCH] vendor.lattice_{ecp5,machxo_2_3l}: explain how to set up NMIGEN_ENV_Diamond on Windows. --- nmigen/vendor/lattice_ecp5.py | 7 ++++++- nmigen/vendor/lattice_machxo_2_3l.py | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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. -- 2.30.2