1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-02-07 06:44:09 +08:00
oh/common/dv/build_all.sh
Andreas Olofsson 117a4fee0d Doing forall "dut*.v"
- Adding entries to a list gets old real fast....
2016-02-24 14:22:32 -05:00

14 lines
264 B
Bash
Executable File

#!/bin/bash
# Compiles all dut*.v files in this directory
DV=../../common/dv/dv_top.v
LIBS=$OH_HOME/common/dv/libs.cmd
CFG="cfg_random.v"
for file in dut*.v
do
root=${file%%.*}
iverilog -g2005 -DTARGET_SIM=1 $CFG $file $DV -f $LIBS -o $root.bin
done