mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-04 22:32:36 +00:00
- Updated paths in test files to reflect new directory structure for RTL and script files. - Changed references from rtl/mini to rtl/ip and scripts/rtl where applicable. - Added a new test file for Tiny product isolation, ensuring independent ABI and bus acceptance. - Enhanced tests for memory map generation and protocol contracts for Tiny architecture. - Ensured that all tests are aligned with the latest directory structure and naming conventions.
36 lines
1006 B
Python
36 lines
1006 B
Python
#!/usr/bin/env python3
|
|
"""Prepare only the locked inputs used by the Tiny MCU."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import argparse
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
sys.path.insert(0, str(ROOT))
|
|
from scripts.dependency_lock import source # noqa: E402
|
|
from scripts.setup_helpers import ensure_git_repo # noqa: E402
|
|
|
|
TINY_SOURCES = (
|
|
"hazard3", "cluster_common", "cluster_archinfo", "cluster_pwm",
|
|
"cluster_rtc", "cluster_wdg", "pdk_ihp130",
|
|
)
|
|
|
|
|
|
def main() -> int:
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument("--update", action="store_true")
|
|
args = parser.parse_args()
|
|
for name in TINY_SOURCES:
|
|
dependency = source(name)
|
|
ensure_git_repo(
|
|
dependency["url"], ROOT / dependency["destination"], dependency["revision"],
|
|
recursive=dependency.get("recursive", False), update=args.update,
|
|
)
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
raise SystemExit(main())
|