set outCnt = 1
foreach lib ("FTGS.typ" "VITAL.typ" "vital")
  cp /local/tech1.1/umc/vhdlLib/sci/umc18co/${lib}/.synopsys_vss.setup .

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

  foreach scsopt ("" "-partition opw.part" "-2state -partition tst.part")
#-novitaltiming
    echo -n running $scsopt scs
    echo scs -nc -time ps -generics sci02.gen $scsopt tstCfg	\
							>> sci02.time.$lib
    echo "------------------------------------------------"	\
							>> sci02.time.$lib
    (time scs -nc -time ps -generics sci02.gen $scsopt tstCfg)	\
							>>&sci02.time.$lib
    echo -n "- scsim ..."
    echo scsim -nc -include sci02.scr -output tmpout	>> sci02.time.$lib
    echo "------------------------------------------------"	\
							>> sci02.time.$lib
    foreach run (1 2)
      echo -n " "$run
      (time scsim -nc -include sci02.scr -output tmpout)>>&sci02.time.$lib
      mv tmpout tmpout.$outCnt
      @ outCnt++
    end
    echo ""
    echo ""						>> sci02.time.$lib
    rm -r scsim*
  end
end
unset outCnt
