diff --git a/litex/build/microsemi/libero_soc.py b/litex/build/microsemi/libero_soc.py index 4327f6239..a82ac5862 100644 --- a/litex/build/microsemi/libero_soc.py +++ b/litex/build/microsemi/libero_soc.py @@ -23,6 +23,8 @@ def _format_io_constraint(c): elif isinstance(c, IOStandard): return "-io_std {} ".format(c.name) elif isinstance(c, Misc): + return "-RES_PULL {} ".format(c.misc) + else: raise NotImplementedError @@ -183,7 +185,10 @@ def _build_script(build_name, device, toolchain_path, ver=None): copy_stmt = "copy" fail_stmt = " || exit /b" else: - raise NotImplementedError + script_ext = ".sh" + build_script_contents = "# Autogenerated by Migen\n\n" + copy_stmt = "cp" + fail_stmt = " || exit 1" build_script_file = "build_" + build_name + script_ext tools.write_to_file(build_script_file, build_script_contents,