set outCnt = 1
set amsDir = "/local/tech1.1/ams/v3.30/artist/HK_0.35/veritools"

foreach vanopt ("" "+nospecify +notimingchecks")
  rm -rf WORK/*
  echo vlogan
  echo vlogan -v \$amsDir/HRDLIB.v -v \$amsDir/udp.v \\		>> sci02.time
  echo "      $vanopt timescale.v opwS.v"			>> sci02.time
  echo "------------------------------------------------"	>> sci02.time
  (time vlogan -v $amsDir/HRDLIB.v -v $amsDir/udp.v		\
	$vanopt timescale.v opwS.v)				>>&sci02.time

  echo vhdlan
  echo "vhdlan -nc -cycle -event opwWTst.vhd"			>> sci02.time
  echo "------------------------------------------------"	>> sci02.time
  (time vhdlan -nc -cycle -event opwWTst.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 tstCfg		>> sci02.time
    echo "------------------------------------------------"	>> sci02.time
    echo -n  scs: $vlopt $vanopt
    (time scs -verilogcomp "$vlopt $vanopt"	\
	-nc -time ps -generics sci.gen tstCfg)			>>&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 amsDir
unset outCnt
