set outCnt = 3
#foreach lib ("FTGS.typ" "VITAL.typ" "vital")
foreach lib ("VITAL.typ" "vital")
  rm -r WORK/*
  echo  "umcl18u250t2_typ > umc18co"		>  .synopsys_vss.setup
  echo  "umc18co : /local/tech1.1/umc/vhdlLib/umc18co/"$lib	\
						>> .synopsys_vss.setup

  echo "vhdlan -nc -cycle -event <vhd-File>"			>> vss.time.$lib
  echo "------------------------------------------------"	>> vss.time.$lib
  (time vhdlan -nc -cycle -event compPkg.vhd dcfClockS.vhd	\
	simEnvPkg.vhd dcfSend.vhd tstClock.vhd)		>>& vss.time.$lib
  echo ""							>> vss.time.$lib

  echo -n running $lib ...
  echo vhdlsim -nc -i vss.scr cfgClock				>> vss.time.$lib
  echo "------------------------------------------------"	>> vss.time.$lib
  foreach run (1 2)
    echo -n " "$run
    (time vhdlsim -nc -i vss.scr -o tmpout cfgClock)	>>& vss.time.$lib
    mv tmpout tmpout.$outCnt
    @ outCnt++
  end
  echo ""
  echo ""							>> vss.time.$lib
end
