build/lattice/prjtrellis: set default toolchain_path to "/opt/prjtrellis"
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 29 Oct 2018 14:58:54 +0000 (15:58 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 29 Oct 2018 14:58:54 +0000 (15:58 +0100)
litex/build/lattice/prjtrellis.py

index 3bbf0739b18e85a2f66c3622630a0d56172379a3..f6bf5402f139123e9bb6add1fcff5a3b8d91f6c1 100644 (file)
@@ -11,8 +11,9 @@ from litex.build import tools
 from litex.build.lattice import common
 
 # TODO:
-# - add inout support to iowrapper
-# - check/document attr_translate
+# - add timing constraint support.
+# - add inout support to iowrapper.
+# - check/document attr_translate.
 
 
 nextpnr_ecp5_architectures = {
@@ -128,6 +129,8 @@ class LatticePrjTrellisToolchain:
 
     def build(self, platform, fragment, build_dir="build", build_name="top",
               toolchain_path=None, run=True):
+        if toolchain_path is None:
+            toolchain_path = "/opt/prjtrellis/"
         os.makedirs(build_dir, exist_ok=True)
         cwd = os.getcwd()
         os.chdir(build_dir)