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

set outCnt = 1
foreach opt ("-debug_all" "-event_all" "-partition opw.part" "-partition tst.part")
  echo -n running $opt ...
  echo scsim -nc -time ns $opt -include sci.scr \\		>> sci.time
  echo "      "-generics_file sci.gen -output tmpout tstcfg	>> sci.time
# echo "      "-output tmpout tstcfg				>> sci.time
  echo "------------------------------------------------"	>> sci.time
  foreach run (1 2 3)
    echo -n " "$run
    (time scsim -nc -time ns $opt -include sci.scr	\
	-generics_file sci.gen -output tmpout tstcfg)		>>& sci.time
#	-output tmpout tstcfg)					>>& sci.time
    mv tmpout tmpout.$outCnt
    @ outCnt++
  end
  echo ""
  echo ""							>> sci.time
end
unset outCnt
