mirror of https://github.com/lnis-uofu/SOFA.git
[Script] Rectify output messages
This commit is contained in:
parent
396988b1b6
commit
8374fcfd4e
|
@ -64,7 +64,7 @@ os.makedirs(post_pnr_testbench_dir_abspath, exist_ok=True)
|
||||||
#####################################################################
|
#####################################################################
|
||||||
logging.info("Converting pre-PnR testbench to post-PnR testbench...");
|
logging.info("Converting pre-PnR testbench to post-PnR testbench...");
|
||||||
for curr_pre_pnr_testbench_file in pre_pnr_testbench_files:
|
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("_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)
|
curr_post_pnr_testbench_file = re.sub("\/prepnr\/", "\/postpnr\/", curr_post_pnr_testbench_file)
|
||||||
cmd = "python3 ./post_pnr_testbench_converter.py " \
|
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
|
+ " --post_pnr_testbench " + curr_post_pnr_testbench_file
|
||||||
subprocess.run(cmd, shell=True, check=True)
|
subprocess.run(cmd, shell=True, check=True)
|
||||||
num_converted_testbenches += 1
|
num_converted_testbenches += 1
|
||||||
|
|
||||||
logging.info("Done")
|
logging.info("Done")
|
||||||
|
|
||||||
logging.info("\nConverted " + str(num_converted_testbenches) + " testbenches.")
|
logging.info("\nConverted " + str(num_converted_testbenches) + " testbenches.")
|
||||||
|
|
Loading…
Reference in New Issue