set outCnt = 1
foreach lib ("FTGS.typ" "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 alu.vhd opw.vhd opwS.vhd	\
			opwTst.vhd opwSTst.vhd	>> vss.time.$lib
  echo "------------------------------------------------"	>> vss.time.$lib
  (time vhdlan -nc -cycle -event alu.vhd opw.vhd opwS.vhd	\
			opwTst.vhd opwSTst.vhd)	>>& vss.time.$lib
  echo "" >> vss.time.$lib

  foreach sim ("tstCfg" "tstSCfg")
    echo -n running $sim ...
    echo vhdlsim -nc -i vss.scr -gfile vss.gen $sim		>> vss.time.$lib
    echo "------------------------------------------------"	>> vss.time.$lib
    foreach run (1 2 3)
      echo -n " "$run
      (time vhdlsim -nc -i vss.scr -gfile vss.gen -o tmpout $sim) \
							>>& vss.time.$lib
      mv tmpout tmpout.$outCnt
      @ outCnt++
    end
    echo ""
    echo "" >> vss.time.$lib
  end
end
