From 4e9b07125e48150960313ae913add56e7b71f55a Mon Sep 17 00:00:00 2001 From: tangxifan Date: Sat, 28 Nov 2020 15:01:09 -0700 Subject: [PATCH] [Script] Bug fix --- MSIM/common/run_post_pnr_msim_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MSIM/common/run_post_pnr_msim_test.py b/MSIM/common/run_post_pnr_msim_test.py index bc0cd60..54d5e25 100644 --- a/MSIM/common/run_post_pnr_msim_test.py +++ b/MSIM/common/run_post_pnr_msim_test.py @@ -123,7 +123,7 @@ for line in vsim_log_file: num_sim_err = int(re.findall("# Simulation finish with(\s+)(\d+) errors", line)[0][1]) num_err_lines_found = num_err_lines_found + 1 if (0 < num_sim_err) : - logging.error("Simulation failed with " + num_sim_err + " errors!\n") + logging.error("Simulation failed with " + str(num_sim_err) + " errors!\n") # Add to total errors num_err = num_err + num_sim_err # Check total errors by Modelsim @@ -137,7 +137,7 @@ vsim_log_file.close() if (0 == num_err_lines_found) : logging.error("No error lines found!Something wrong in setting up modelsim simulation\n") elif (0 < num_err) : - logging.error("ModelSim failed with " + num_err + " errors!\n") + logging.error("ModelSim failed with " + str(num_err) + " errors!\n") else : verification_passed = True