From 95eb257d87478ce98805791fe9a0fcb86fcd5e19 Mon Sep 17 00:00:00 2001 From: Chetanya <95761876+chetanyagoyal@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:32:17 +0530 Subject: [PATCH] Update parse_rpt.py Added ../work directory and .csv file checks, commented because only the verilog make is supported --- .../generators/PMU-gen/tools/parse_rpt.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/openfasoc/generators/PMU-gen/tools/parse_rpt.py b/openfasoc/generators/PMU-gen/tools/parse_rpt.py index 7384eb979..8b35c1b86 100755 --- a/openfasoc/generators/PMU-gen/tools/parse_rpt.py +++ b/openfasoc/generators/PMU-gen/tools/parse_rpt.py @@ -22,3 +22,26 @@ raise ValueError("LVS failed!") else: print("LVS is clean!") + +# with open('test.json', 'r') as file: +# data = json.load(file) +# print('Found .json config file...') + +# module_name = data.get("module_name", "default") + +# 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!") +print("Generator check is clean!")