set outCnt = 1
foreach lib ("vhdl" "vlog")
source make-$lib

set elabopt = ("" "-neverwarn -notimingchecks -noipd -no_tchk_msg -no_tchk_xgen -no_vpd_msg -no_vpd_xgen")
set simopt  = ("" "-neverwarn -nocifcheck")
foreach vhdlopt ("" "-neverwarn -nopragmawarn -novitalcheck")
  rm -rf work
  mkdir work
  echo ncvhdl -nocopyright -v93 -nostdout -nolog $vhdlopt '<vhdFile>'	\
							>> ncsim.time.$lib
  echo "------------------------------------------------"		\
							>> ncsim.time.$lib
  echo -n running ncvhdl
  foreach vhd ("compPkg.vhd" "dcfClockS.vhd"				\
		"simEnvPkg.vhd" "dcfSend.vhd" "tstClock.vhd")
    echo -n $vhd": "					>>ncsim.time.$lib
    (time ncvhdl -nocopyright -v93 -nostdout -nolog $vhdlopt $vhd)	\
							>>& ncsim.time.$lib
  end
  echo ncelab -nocopyright -v93 -nostdout -nolog $elabopt[1] cfgClock	\
							>> ncsim.time.$lib
  echo "------------------------------------------------"		\
							>> ncsim.time.$lib
  echo -n " - ncelab"
  (time ncelab -nocopyright -v93 -nostdout -nolog $elabopt[1] cfgClock)	\
							>>& ncsim.time.$lib
  echo ncsim -nocopyright -batch -input ncsim.scr -nostdout -nokey -logfile tmpout $simopt[1] cfgClock >> ncsim.time.$lib
  echo "------------------------------------------------"		\
							>> ncsim.time.$lib
  echo -n " - ncsim"
  foreach run (1 2)
    echo -n " "$run
    (time ncsim -nocopyright -batch -input ncsim.scr -nostdout -nokey	\
		-logfile tmpout $simopt[1] cfgClock)	>>& ncsim.time.$lib
    mv tmpout tmpout.$outCnt
    @ outCnt++
  end
  echo ""						>> ncsim.time.$lib
  echo ""
  shift elabopt
  shift simopt
end

end
unset elabopt
unset simopt
