130 nm synthesis script improvements

This commit is contained in:
David Harris 2023-10-30 20:57:35 -07:00
parent 680fb3f30b
commit 5112bfed19
5 changed files with 19 additions and 17 deletions

View file

@ -15,6 +15,7 @@ import os
parser = argparse.ArgumentParser()
parser.add_argument("DESIGN")
parser.add_argument("HDLPATH");
args=parser.parse_args()
@ -60,11 +61,7 @@ for l in lines:
buf += f"\t{moduleName} #(P) dut(.*);\nendmodule"
# path to wrapper
wrapperPath = f"{os.getenv('WALLY')}/synthDC/wrappers/{moduleName}wrapper.sv"
# clear wrappers directory
os.system(f"rm -f {os.getenv('WALLY')}/synthDC/wrappers/*")
os.system(f"mkdir -p {os.getenv('WALLY')}/synthDC/wrappers")
wrapperPath = f"{args.HDLPATH}/{moduleName}wrapper.sv"
fout = open(wrapperPath, "w")
@ -73,6 +70,4 @@ fout.write(buf)
fin.close()
fout.close()
#print(buf)