Files
retroSoC/setup.py
T
maksyuki 7d064ce782 feat: implement setup helpers and refactor setup script
- Added  to manage Git repository dependencies and file downloads.
- Refactored  to utilize the new helper functions for cloning the MPW generator.
- Enhanced OpenSTA Makefile to validate input files and configurations before execution.
- Updated OpenSTA TCL script to use environment variables for file paths.
- Refactored source export script to improve file handling and path resolution.
- Added tests for atomic writing, filelist parsing, and dependency management.
- Improved Yosys synthesis scripts to include configuration recording.
2026-07-10 13:13:59 +08:00

28 lines
644 B
Python

#!/usr/bin/env python3
import argparse
from pathlib import Path
from scripts.setup_helpers import ensure_git_repo
ROOT = Path(__file__).resolve().parent
MPW_REVISION = "30503eb8a7cf33a0c955913faba5014ebd00186f"
def main() -> int:
parser = argparse.ArgumentParser(description="Install the pinned MPW generator")
parser.add_argument("--update", action="store_true")
args = parser.parse_args()
ensure_git_repo(
"https://github.com/retroSoC/mini-ver-mpw.git",
ROOT / "rtl/mini/mpw",
MPW_REVISION,
update=args.update,
)
return 0
if __name__ == "__main__":
raise SystemExit(main())