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

foreach vanopt ("" "+nospecify +notimingchecks")
  rm -rf WORK/*
  echo vlogan
  echo vlogan -y \$umcDir +libext+.v+ -v \$umcDir/UDPS.v \\	>> sci02.time
  echo "      $vanopt timescale.v opwS.v"			>> sci02.time
  echo "------------------------------------------------"	>> sci02.time
  (time vlogan -y $umcDir +libext+.v+ -v $umcDir/UDPS.v		\
	$vanopt timescale.v opwS.v)				>>&sci02.time

  echo vhdlan
  echo "vhdlan -nc -cycle -event opwYTst.vhd"			>> sci02.time
  echo "------------------------------------------------"	>> sci02.time
  (time vhdlan -nc -cycle -event opwYTst.vhd)			>>&sci02.time
  echo ""							>> sci02.time

  foreach vlopt ("+cli" "" "+rad+2")
    echo scs -verilogcomp \"$vlopt $vanopt\" \\			>> sci02.time
    echo " " -nc -time ps -generics sci.gen tstYCfg		>> sci02.time
    echo "------------------------------------------------"	>> sci02.time
    echo -n  scs: $vlopt $vanopt
    (time scs -verilogcomp "$vlopt $vanopt"	\
	-nc -time ps -generics sci.gen tstYCfg)			>>&sci02.time

    echo "scsim -nc -include sci.scr -output tmpout"		>> sci02.time
    echo "------------------------------------------------"	>> sci02.time
    echo -n " - scsim"
    foreach run (1 2 3)
      echo -n " "$run
      (time scsim -nc -include sci.scr -output tmpout)		>>&sci02.time
      mv tmpout tmpout.$outCnt
      @ outCnt++
    end
    echo ""
    echo ""							>> sci02.time
    rm -rf csrc scsim* simv*
  end
end
unset umcDir
unset outCnt
