feat: update test support for verilator

This commit is contained in:
maksyuki committed 2025-12-17 20:27:26 +08:00
1 parent 02415cf196
commit 25d77b42b6
5 files changed
+31 -17

No files matched your search

+8 -1
View File
@@ -205,7 +205,7 @@ def check_software_toolchain_installed():
result = run_command("riscv32-unknown-elf-gcc --version", check=False)
if result.returncode == 0:
version = result.stdout.strip()
print(f"✓ riscv32-unknown-elf-gcc version: {version}")
print(f"✓ {version}")
return True
else:
print("✗ riscv32-unknown-elf-gcc command exists but cannot get version info")
@@ -252,6 +252,8 @@ def main():
print("Verilator Installation Check Script")
print("=" * 60)
project_path = os.getcwd()
# Check current system
if not sys.platform.startswith('linux'):
print("Error: This script only works on Linux systems")
@@ -326,5 +328,10 @@ def main():
check_software_toolchain_installed()
# TODO: git clone mpw
os.chdir(project_path)
run_command("git clone https://github.com/retroSoC/mini-ver-mpw.git rtl/mini/mpw")
if __name__ == "__main__":
main()