rm -r WORK/*
echo vhdlan -nc -cycle -event alu.vhd opw.vhd opwTst.vhd >> vss.time
echo "------------------------------------------------"  >> vss.time
(time vhdlan -nc -cycle -event alu.vhd opw.vhd opwTst.vhd) >>& vss.time
echo "" >> vss.time

set outCnt = 1
foreach opt ("-d4 -fi_all" "-d1 -fi_all" "-fi_all" "-d4" "-d1" "")
  echo -n running $opt ...
  echo vhdlsim -nc $opt -i vss.scr tstcfg >> vss.time
  echo "------------------------------------------------" >> vss.time
  foreach run (1 2 3)
    echo -n " "$run
    (time vhdlsim -nc $opt -i vss.scr -o tmpout tstcfg) >>& vss.time 
    mv tmpout tmpout.$outCnt
    @ outCnt++
  end
  echo ""
  echo "" >> vss.time
end
