Download chips/yosys/tests/simple/generate_mk.py from STAR-future/Trinity-SciData: direct link, hf CLI and curl.
- Browser
- Download file 360 Bytes
-
https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/simple/generate_mk.py
- Command line
-
hf download hf://datasets/STAR-future/Trinity-SciData/chips/yosys/tests/simple/generate_mk.py
-
curl -L -o generate_mk.py https://huggingface.co/datasets/STAR-future/Trinity-SciData/resolve/main/chips/yosys/tests/simple/generate_mk.py
360 Bytes
| #!/usr/bin/env python3 | |
| import sys | |
| sys.path.append("..") | |
| import shutil | |
| # ---------------------- | |
| # Check if iverilog is installed | |
| # ---------------------- | |
| if shutil.which("iverilog") is None: | |
| print("Error: Icarus Verilog 'iverilog' not found.", file=sys.stderr) | |
| sys.exit(1) | |
| import gen_tests_makefile | |
| gen_tests_makefile.generate_autotest("*.*v", "") | |