mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-06-28 17:43:09 -04:00
130 nm synthesis script improvements
This commit is contained in:
parent
680fb3f30b
commit
5112bfed19
5 changed files with 19 additions and 17 deletions
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue