From ebae01d8e3e7450129dc3c6d0588d22766004c2b Mon Sep 17 00:00:00 2001 From: Chetanya <95761876+chetanyagoyal@users.noreply.github.com> Date: Mon, 16 Oct 2023 20:53:33 +0530 Subject: [PATCH] Update parse_rpt.py --- .../generators/cryo-gen/tools/parse_rpt.py | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/openfasoc/generators/cryo-gen/tools/parse_rpt.py b/openfasoc/generators/cryo-gen/tools/parse_rpt.py index 3a33a97d7..acec41c6e 100644 --- a/openfasoc/generators/cryo-gen/tools/parse_rpt.py +++ b/openfasoc/generators/cryo-gen/tools/parse_rpt.py @@ -23,25 +23,26 @@ else: print("LVS is clean!") -with open('test.json', 'r') as file: - data = json.load(file) -print('Found .json config file...') +# with open('test.json', 'r') as file: +# data = json.load(file) +# print('Found .json config file...') -module_name = data.get("module_name", "default") +# module_name = data.get("module_name", "default") -work_dir = "./work/" +# work_dir = "./work/" + +# if (os.path.exists(work_dir) == 0): +# raise ValueError("work directory does not exist!") +# else: +# filename = work_dir + module_name +# for file in (filename + ".gds", filename + ".spice", filename + ".v", filename + ".def", filename + "_pex.spice", filename + ".sdc"): +# if (os.path.exists(file) == 0): +# raise ValueError(file + " does not exist!") +# print("Found necessary work result files!") + +# for file in ("error_within_x.csv", "golden_error_opt.csv", "search_result.csv"): +# if os.path.exists(file) == 0: +# raise ValueError(file + " does not exist!") +# print("Found generated .csv files!") -if (os.path.exists(work_dir) == 0): - raise ValueError("work directory does not exist!") -else: - filename = work_dir + module_name - for file in (filename + ".gds", filename + ".spice", filename + ".v", filename + ".def", filename + "_pex.spice", filename + ".sdc"): - if (os.path.exists(file) == 0): - raise ValueError(file + " does not exist!") -print("Found necessary work result files!") - -for file in ("error_within_x.csv", "golden_error_opt.csv", "search_result.csv"): - if os.path.exists(file) == 0: - raise ValueError(file + " does not exist!") -print("Found generated .csv files!") print("Generator check is clean!")