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
echo "" >> sci.time

set outCnt = 1
foreach opt ("-debug_all" "-event_all" "-partition opw.part" "-partition tst.part")
#foreach opt ("-partition opw.part" "-partition tst.part")
  echo -n running $opt ...
  echo scsim -nc -time ns $opt -include sci.scr -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 -output tmpout tstcfg) >>& sci.time
    mv tmpout tmpout.$outCnt
    @ outCnt++
  end
  echo ""
  echo "" >> sci.time
end
