From e6b4a62aaa21d0706b57c218d294ce6c92dfb8f2 Mon Sep 17 00:00:00 2001 From: Hazem Al Indari Date: Sun, 27 Oct 2024 21:16:55 +0100 Subject: [PATCH] Update flow.py in delete_intermediate_files to fix the if statement and delete SystemVerilog temp files --- vtr_flow/scripts/python_libs/vtr/flow.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vtr_flow/scripts/python_libs/vtr/flow.py b/vtr_flow/scripts/python_libs/vtr/flow.py index a1f14e2816e..70f7cc3b513 100644 --- a/vtr_flow/scripts/python_libs/vtr/flow.py +++ b/vtr_flow/scripts/python_libs/vtr/flow.py @@ -399,8 +399,9 @@ def delete_intermediate_files( delete intermediate files """ next_stage_netlist.unlink() - exts = (".xml", ".sdf", ".v") - exts += (".net", ".place", ".route") if not keep_result_files else None + exts = (".xml", ".sdf", ".v", ".sv") + if not keep_result_files: + exts += (".net", ".place", ".route") for file in temp_dir.iterdir(): if file.suffix in exts: