4 parser = argparse.ArgumentParser()
7 "-o",
"--Output", help=
"The Output File Path", required=
True)
9 "-i",
"--Input", help=
"The Input File Path", required=
True)
11 args = parser.parse_args()
13 inputFile = open(args.Input,
'r')
14 outputFile = open(args.Output,
'w')
16 lines = inputFile.readlines()
19 for i, line
in enumerate(lines):
20 if (line.find(
" with block Id: ") >= 0):
21 cellList.append(line.split(
" with block Id: ")[0])
23 print(
"unplace_cell {"+
' '.join(cellList) +
24 "}\nplace_design\nroute_design", file=outputFile, end=
'')