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

set outCnt = 1
set scsopt = ("-noperf" "" "-partition opw.part" "-2state -partition tst.part")
foreach simopt ("-debug_all" "" "" "")
#-novitaltiming
  echo -n running $scsopt[1] scs
  echo scs -nc -time ns -generics sci.gen $scsopt[1] tstcfg	>> sci02.time
  echo "------------------------------------------------"	>> sci02.time
  (time scs -nc -time ns -generics sci.gen $scsopt[1] tstcfg)	>>& sci02.time
  echo -n "- scsim ..."
  echo scsim -nc $simopt -include sci.scr -output tmpout	>> sci02.time
  echo "------------------------------------------------"	>> sci02.time
  foreach run (1 2 3)
    echo -n " "$run
    (time scsim -nc $simopt -include sci.scr -output tmpout)	>>& sci02.time
    mv tmpout tmpout.$outCnt
    @ outCnt++
  end
  echo ""
  echo ""							>> sci02.time
  rm -r scsim*
  shift scsopt
end
unset scsopt
unset outCnt
