#! /bin/csh -f

############################################################
## Copyright: 2011 Integrated Sytems Laboratory, ETH Zurich
##            http://www.iis.ee.ethz.ch/~sha3
############################################################

# v0.1 -  - Sat Sep  3 12:37:06 CEST 2011
# - silly script to run everything :)

set VER=10.0b
set LIB=final
set CONFIG="../simvectors/config.txt"
set MSIMLOG="modelsim_run.log"
set NUMBLOCKS="10000"
set PROBABILITY="20"

# compile everything
echo
echo -n "Starting at : "
date
echo "Compile all from scratch"
./compile_rtl_all.pl | grep "^RESULT"
echo "Compile testbench"
./compile_testbench.csh > $MSIMLOG
foreach alg ( 0000 0001 0010 0011 0100 0101 1000 1001 1010 1011 1100 1101)
#   echo "----------------------------------------------------------";
#   echo "  For $alg generating $CONFIG "
   cat< $CONFIG
% The configuration file for shabziger
%
% All numbers in binary
% First entry is algorithm select
%    Second is the number of blocks to run
%    |     Third number is the (inverse) probability to generate a finblock signal
%    |     |    Fourth number is 73 bits of LFSR seed-----------------------------------|
%    |     |    |LSB     |                                                           MSB|
$alg $NUMBLOCKS  $PROBABILITY   1000000000000000000000000010000000000000000000000000000000000000000000000
BUGU
  vsim-${VER} -c -lib ${LIB} -voptargs="+acc=mnp" -do "gen_list.do" shabziger_tb > $MSIMLOG
  echo -n "  --> "
  ./parse_list.pl | grep "RESULT"

end


Generated on Tue Nov 22 15:16:34 CET 2011
Home