2016-03-08 15:49:15 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
# Icarus Verilog build script for OH!
|
2016-03-22 08:27:59 -04:00
|
|
|
#
|
2016-03-08 15:49:15 -05:00
|
|
|
# Requires $OH_HOME variable to be set
|
2016-03-22 08:27:59 -04:00
|
|
|
#
|
|
|
|
# Example: ./scripts/build.sh elink/hdl/dut_elink.v
|
|
|
|
#
|
2016-03-08 15:49:15 -05:00
|
|
|
############################################################################
|
|
|
|
|
|
|
|
DUT=$1
|
|
|
|
|
|
|
|
##############################
|
|
|
|
#Create directory of all links
|
|
|
|
##############################
|
2016-03-22 08:27:59 -04:00
|
|
|
$OH_HOME/scripts/link.sh
|
|
|
|
|
2016-03-08 15:49:15 -05:00
|
|
|
##############################
|
|
|
|
#Build
|
|
|
|
###############################
|
|
|
|
iverilog -g2005\
|
|
|
|
-DTARGET_SIM=1\
|
2016-06-19 17:05:50 -04:00
|
|
|
-DCFG_ASIC=0\
|
2017-11-22 11:32:20 -05:00
|
|
|
-DCFG_PLATFORM=\"ZYNQ\"\
|
2016-03-08 15:49:15 -05:00
|
|
|
$DUT\
|
|
|
|
$OH_HOME/symlinks/dv/dv_top.v\
|
|
|
|
-y .\
|
|
|
|
-y $OH_HOME/symlinks/hdl\
|
|
|
|
-y $OH_HOME/symlinks/dv\
|
|
|
|
-I $OH_HOME/symlinks/hdl\
|
|
|
|
-o dut.bin\
|