designClockDict[str(splitLine[designIdx])] = str( splitLine[clkPeriodIdx]) if len(designs) == 0: designs = [key for key in designConfigDict] for design in designs: if design not in designConfigDict.keys(): print(design + " Not Found in Sheet. Skipping...") if designFailDict[design] == '-1': print("Skipping " + design + " ...") continue print("Updating " + design + " config...") base_path = utils.get_design_path(design=design) configFileToUpdate = str(base_path) + "/" + str(pdk) + "_" + str( std_cell_library) + "_config.tcl" configFileBest = str(base_path) + "/" + str( designConfigDict[design]) + ".tcl" configFileBestOpener = open(configFileBest, 'r') configFileBestData = configFileBestOpener.read().split("\n") configFileBestOpener.close() newData = "" copyFrom = False for line in configFileBestData: if line == "# Regression": copyFrom = True
def gen_base_config(design, base_config_file): config_file = os.path.join(get_design_path(design=design), "config.tcl") copyfile(config_file, base_config_file)