Download bit_accelerator/run_v2_sim.sh from Snapkitty/rust-opencl-gpu: direct link, hf CLI and curl.
- Browser
- Download file 457 Bytes
-
https://huggingface.co/Snapkitty/rust-opencl-gpu/resolve/main/bit_accelerator/run_v2_sim.sh
- Command line
-
hf download hf://Snapkitty/rust-opencl-gpu/bit_accelerator/run_v2_sim.sh
-
curl -L -o run_v2_sim.sh https://huggingface.co/Snapkitty/rust-opencl-gpu/resolve/main/bit_accelerator/run_v2_sim.sh
457 Bytes
| # Build and run the cycle-accurate v2 testbench with Verilator (>= 5.0). | |
| # Exits non-zero if any check fails ($fatal in the testbench). | |
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| OUT=${OUT:-build/verilator} | |
| rm -rf "$OUT" && mkdir -p "$OUT" | |
| verilator --binary --timing -Wall -Wno-fatal --top-module tb_bit_accelerator_v2 \ | |
| -Mdir "$OUT" rtl/bit_accelerator_v2.sv testbenches/tb_bit_accelerator_v2.sv >/dev/null | |
| "$OUT"/Vtb_bit_accelerator_v2 | |