From: Florent Kermarrec Date: Mon, 29 Oct 2018 14:58:54 +0000 (+0100) Subject: build/lattice/prjtrellis: set default toolchain_path to "/opt/prjtrellis" X-Git-Tag: 24jan2021_ls180~1541 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1097f82283b55e6635fc36c014e151e0d4048bf5;p=litex.git build/lattice/prjtrellis: set default toolchain_path to "/opt/prjtrellis" --- diff --git a/litex/build/lattice/prjtrellis.py b/litex/build/lattice/prjtrellis.py index 3bbf0739..f6bf5402 100644 --- a/litex/build/lattice/prjtrellis.py +++ b/litex/build/lattice/prjtrellis.py @@ -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)