mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-04 22:32:36 +00:00
feat: update test support for verilator
This commit is contained in:
5 files changed
+31
-17
No files matched your search
@@ -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()
|
||||
Reference in new issue
Block a user