set outCnt = 1
set umcDir = "/local/tech1.1/umc/UMCL18U250D2_2.2/verilog_simulation_models"

foreach vcsopt ("+cli" "" "+rad+2" "+cli +nospecify +notimingchecks"	\
	"+nospecify +notimingchecks" "+rad+2 +nospecify +notimingchecks")
  echo vcs -q -y \$umcDir +libext+.v -v \$umcDir/UDPS.v \\	>> vcs62.time
  echo "   " $vcsopt opwVcs.v opwS.v				>> vcs62.time
  echo "------------------------------------------------"	>> vcs62.time
  echo -n running vcs
  (time vcs -q -y $umcDir +libext+.v -v $umcDir/UDPS.v	\
	$vcsopt opwVcs.v opwS.v)				>>&vcs62.time

  echo simv -q							>> vcs62.time
  echo "------------------------------------------------"	>> vcs62.time
  echo -n " - simv"
  foreach run (1 2 3)
    echo -n " "$run
    (time simv -q -l tmpout)					>>&vcs62.time
    mv tmpout tmpout.$outCnt
    @ outCnt++
  end
  echo ""							>> vcs62.time
  echo ""
  rm -rf simv* csrc
end
unset umcDir
unset outCnt
