set outCnt = 1
foreach lib ("FTGS" "FTGSC" "FTSM" "UDSM" "VITAL" "vital")
  if ($lib == "vital") then
    echo "csx > csx_HRDLIB"				 > .synopsys_vss.setup
    cat /local/tech1.1/ams/vhdlLib/v3.30/csx33/.synopsys_vss.setup \
							>> .synopsys_vss.setup
  else
    cp /local/tech1.1/ams/vhdlLib/vSrc/csx/${lib}/.synopsys_vss.setup .
  endif

  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
  rm -rf WORK
  mkdir WORK
end
unset outCnt
