mirror of
https://github.com/The-OpenROAD-Project/OpenLane.git
synced 2026-05-29 00:23:55 +08:00
+ Repository is now a Nix flake ~ Change all invocations of `openroad -python` to use `run_odbpy_script` for consistency ~ Change build system from ad-hoc to Nix, still producing a Docker image as a final result ~ Update KLayout scripts to use `klayout-pymod` or properly parse commandline arguments ~ `open_pdks` -> `bdc9412` to match OpenLane 2 - Remove local installer; `nix run .` will run OpenLane natively
17 lines
351 B
Python
17 lines
351 B
Python
import platform
|
|
|
|
|
|
def current_docker_platform() -> str:
|
|
arch = platform.machine()
|
|
|
|
if arch in ["x86_64", "amd64"]:
|
|
return "amd64"
|
|
elif arch in ["aarch64", "arm64"]:
|
|
return "arm64v8"
|
|
else:
|
|
raise ValueError(f"Unsupported platform {arch}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
print(current_docker_platform(), end="")
|