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

cp /local/tech1.1/ams/vhdlLib/sci/csx33/.synopsys_vss.setup .
set outCnt = 1
#set scsopt = ("-noperf" "" "-partition opw.part" "-2state -partition tst.part")
#foreach simopt ("-debug_all" "" "" "")
foreach scsopt ("" "-partition opw.part" "-2state -partition tst.part")
#-novitaltiming
  echo -n running $scsopt scs
  echo scs -nc -time ps -generics sci01.gen $scsopt tstcfg	>> sci02.time
  echo "------------------------------------------------"	>> sci02.time
  (time scs -nc -time ps -generics sci01.gen $scsopt tstcfg)	>>& sci02.time
  echo -n "- scsim ..."
  echo scsim -nc -include sci01.scr -output tmpout		>> sci02.time
  echo "------------------------------------------------"	>> sci02.time
  foreach run (1 2)
    echo -n " "$run
    (time scsim -nc -include sci01.scr -output tmpout)		>>& sci02.time
    mv tmpout tmpout.$outCnt
    @ outCnt++
  end
  echo ""
  echo ""							>> sci02.time
  rm -r scsim*
end
unset outCnt
