forked from tanchou/Verilog
18 lines
318 B
Bash
Executable File
18 lines
318 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "=== Simulation avec Icarus Verilog ==="
|
|
|
|
OUT="runs/sim.vvp"
|
|
TOP="tb_ultrason_commands"
|
|
DIRS=("src/verilog" "tests/verilog" "IP/verilog")
|
|
|
|
FILES=()
|
|
for dir in "${DIRS[@]}"; do
|
|
for file in "$dir"/*.v; do
|
|
FILES+=("$file")
|
|
done
|
|
done
|
|
|
|
iverilog -g2012 -o "$OUT" -s "$TOP" "${FILES[@]}"
|
|
vvp "$OUT"
|