#! /bin/tcsh -f
############################################################
## Copyright: 2010 Integrated Sytems Laboratory, ETH Zurich
## http://www.iis.ee.ethz.ch/~sha3
############################################################
# Example script for compiling RTL sourcecode
set VER=6.5a
set LIB=slow_rtl
if (-e $LIB) then
rm -rf $LIB
endif
vlib-${VER} $LIB
# compile sourcecode
vcom-${VER} -work $LIB -check_synthesis ../sourcecode/xtime.vhd
vcom-${VER} -work $LIB -check_synthesis ../sourcecode/mulenc.vhd
vcom-${VER} -work $LIB -check_synthesis ../sourcecode/mixcolumn.vhd
vcom-${VER} -work $LIB -check_synthesis ../sourcecode/sbox_arith.vhd
vcom-${VER} -work $LIB -check_synthesis ../sourcecode/echo_slow.vhd
# testbench (note no -check_synthesis)
vcom-${VER} -work $LIB ../sourcecode/simulstuff.vhd
vcom-${VER} -work $LIB ../sourcecode/echoTbPkg.vhd
vcom-${VER} -work $LIB ../sourcecode/echoTb.vhd
echo vsim-${VER} -lib ${LIB} echotb