fixed build script and run sta

This commit is contained in:
Marwan Abbas 2022-10-11 12:22:01 +02:00
parent a8934d66cc
commit e378a191ad
2 changed files with 10 additions and 8 deletions

View File

@ -64,6 +64,7 @@ def run_lvs(caravel_root, mcw_root, log_dir, signoff_dir, pdk_root, lvs_root, pd
myenv["CARAVEL_ROOT"] = caravel_root
myenv["MCW_ROOT"] = mcw_root
myenv["SIGNOFF_ROOT"] = os.path.join(signoff_dir, "caravel")
myenv["WORK_DIR"] = os.path.join(caravel_root, "extra_be_checks")
if not os.path.exists(f"{lvs_root}"):
subprocess.run(
@ -76,11 +77,12 @@ def run_lvs(caravel_root, mcw_root, log_dir, signoff_dir, pdk_root, lvs_root, pd
],
cwd=f"{caravel_root}/scripts",
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
lvs_cmd = [
"bash",
"./extra_be_checks/run_full_lvs",
"./run_full_lvs",
"caravel",
f"{caravel_root}/verilog/gl/caravel.v",
"caravel",
@ -89,9 +91,8 @@ def run_lvs(caravel_root, mcw_root, log_dir, signoff_dir, pdk_root, lvs_root, pd
p1 = subprocess.Popen(
lvs_cmd,
env=myenv,
cwd=f"{caravel_root}/scripts/extra_be_checks",
universal_newlines=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
)
return p1
@ -101,7 +102,7 @@ def run_verification(caravel_root, pdk_root, pdk_env, sim, simulator="vcs"):
myenv["PDK_ROOT"] = pdk_root
myenv["PDK"] = pdk_env
if simulator == "vcs":
lvs_cmd = [
ver_cmd = [
"python3",
"verify_cocotb.py",
"-tag",
@ -111,7 +112,7 @@ def run_verification(caravel_root, pdk_root, pdk_env, sim, simulator="vcs"):
"-v",
]
else:
lvs_cmd = [
ver_cmd = [
"python3",
"verify_cocotb.py",
"-tag",
@ -120,7 +121,7 @@ def run_verification(caravel_root, pdk_root, pdk_env, sim, simulator="vcs"):
f"r_{sim}",
]
p1 = subprocess.Popen(
lvs_cmd,
ver_cmd,
cwd=f"{caravel_root}/verilog/dv/cocotb",
env=myenv,
universal_newlines=True,
@ -346,7 +347,7 @@ if __name__ == "__main__":
sta_p = run_sta(
caravel_root,
mcw_root,
f"{caravel_root}/scripts/mpw-2-sta-debug/files/custom/lib",
f"{caravel_root}/scripts/mpw-2-sta-debug/pt_libs",
log_dir,
signoff_dir,
)

View File

@ -8,6 +8,7 @@ load mgmt_core_wrapper;
property LEFview true;
property GDS_FILE $::env(MCW_ROOT)/gds/mgmt_core_wrapper.gds;
property GDS_START 0;
gds read $::env(CARAVEL_ROOT)/openlane/caravel/caravel_power_routing-shifted.gds;
load user_project_wrapper;
load user_id_programming;
load user_id_textblock;