diff --git a/litex/build/microsemi/libero_soc.py b/litex/build/microsemi/libero_soc.py index 657df3d64..720b7b581 100644 --- a/litex/build/microsemi/libero_soc.py +++ b/litex/build/microsemi/libero_soc.py @@ -237,6 +237,9 @@ class MicrosemiLiberoSoCPolarfireToolchain: # run if run: + # delete previous impl + if os.path.exists("impl"): + shutil.rmtree("impl") _run_script(script) os.chdir(cwd)