(
benchmark_file,
full_benchmark,
output_report_file,
output_xlsx_file,
regression_results_file,
)
| 45 | ) |
| 46 | @click.argument("regression_results_file") |
| 47 | def cli( |
| 48 | benchmark_file, |
| 49 | full_benchmark, |
| 50 | output_report_file, |
| 51 | output_xlsx_file, |
| 52 | regression_results_file, |
| 53 | ): |
| 54 | not_full_benchmark = not full_benchmark |
| 55 | |
| 56 | benchmark = dict() |
| 57 | regression_results = dict() |
| 58 | |
| 59 | output_report_list = [] |
| 60 | |
| 61 | testFail = False |
| 62 | |
| 63 | configuration_mismatches = [] |
| 64 | critical_mismatches = [] |
| 65 | |
| 66 | missing_configs = [] |
| 67 | |
| 68 | base_configs = [ |
| 69 | "CLOCK_PERIOD", |
| 70 | "SYNTH_STRATEGY", |
| 71 | "MAX_FANOUT_CONSTRAINT", |
| 72 | "FP_CORE_UTIL", |
| 73 | "FP_ASPECT_RATIO", |
| 74 | "FP_PDN_VPITCH", |
| 75 | "FP_PDN_HPITCH", |
| 76 | "PL_TARGET_DENSITY", |
| 77 | "GRT_ADJUSTMENT", |
| 78 | "STD_CELL_LIBRARY", |
| 79 | ] |
| 80 | |
| 81 | tolerance = { |
| 82 | "general_tolerance": 1, |
| 83 | "tritonRoute_violations": 2, |
| 84 | "Magic_violations": 10, |
| 85 | "pin_antenna_violations": 10, |
| 86 | "lvs_total_errors": 0, |
| 87 | } |
| 88 | |
| 89 | critical_statistics = [ |
| 90 | "tritonRoute_violations", |
| 91 | "Magic_violations", |
| 92 | "pin_antenna_violations", |
| 93 | "lvs_total_errors", |
| 94 | ] |
| 95 | |
| 96 | note_worthy_statistics = [] |
| 97 | |
| 98 | ignore_list = ["", "design", "design_name", "config"] |
| 99 | |
| 100 | def compare_vals(benchmark_value, regression_value, param): |
| 101 | if str(benchmark_value) == "-1": |
| 102 | return True |
| 103 | if str(regression_value) == "-1": |
| 104 | return False |
no test coverage detected