diff --git a/scripts/signoff_automation.py b/scripts/signoff_automation.py index 61645044..f44a70ca 100755 --- a/scripts/signoff_automation.py +++ b/scripts/signoff_automation.py @@ -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, ) diff --git a/scripts/tech-files/build.tcl b/scripts/tech-files/build.tcl index 60d4dba4..3da7f9c8 100644 --- a/scripts/tech-files/build.tcl +++ b/scripts/tech-files/build.tcl @@ -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; @@ -18,4 +19,4 @@ expand; cif *hier write disable; cif *array write disable; gds write $::env(CARAVEL_ROOT)/gds/caravel.gds; -quit -noprompt; \ No newline at end of file +quit -noprompt;