From 8374fcfd4e3d2ed1a3f192068acd83e1ac7fd10f Mon Sep 17 00:00:00 2001 From: tangxifan Date: Sat, 28 Nov 2020 14:41:48 -0700 Subject: [PATCH] [Script] Rectify output messages --- TESTBENCH/common/generate_post_pnr_testbenches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TESTBENCH/common/generate_post_pnr_testbenches.py b/TESTBENCH/common/generate_post_pnr_testbenches.py index 7e94d3c..d43a62d 100644 --- a/TESTBENCH/common/generate_post_pnr_testbenches.py +++ b/TESTBENCH/common/generate_post_pnr_testbenches.py @@ -64,7 +64,7 @@ os.makedirs(post_pnr_testbench_dir_abspath, exist_ok=True) ##################################################################### logging.info("Converting pre-PnR testbench to post-PnR testbench..."); for curr_pre_pnr_testbench_file in pre_pnr_testbench_files: - logging.info("\nProcessing " + curr_pre_pnr_testbench_file + " testbench:\n") + logging.info("Processing " + curr_pre_pnr_testbench_file + " testbench:") curr_post_pnr_testbench_file = re.sub("_autocheck_top_tb.v$", "_post_pnr_autocheck_top_tb.v", curr_pre_pnr_testbench_file) curr_post_pnr_testbench_file = re.sub("\/prepnr\/", "\/postpnr\/", curr_post_pnr_testbench_file) cmd = "python3 ./post_pnr_testbench_converter.py " \ @@ -72,6 +72,6 @@ for curr_pre_pnr_testbench_file in pre_pnr_testbench_files: + " --post_pnr_testbench " + curr_post_pnr_testbench_file subprocess.run(cmd, shell=True, check=True) num_converted_testbenches += 1 + logging.info("Done") -logging.info("Done") logging.info("\nConverted " + str(num_converted_testbenches) + " testbenches.")