set outCnt = 1
set elabopt = ("-novitalaccl -ntc_warn" "" "-neverwarn -notimingchecks -noipd -no_tchk_msg -no_tchk_xgen -no_vpd_msg -no_vpd_xgen")
set simopt  = ("" "" "-neverwarn -nocifcheck")
foreach vhdlopt ("-linedebug -nobuiltin" "" "-neverwarn -nopragmawarn -novitalcheck")
## -novitalaccl -ntc_warn -preserve	-> internal error!!!
  echo ncvhdl -nocopyright -v93 -nostdout -nolog $vhdlopt '<vhdFile>' >> ncsim.time
  echo "------------------------------------------------" >> ncsim.time
  echo -n running ncvhdl
  foreach vhd ("alu.vhd" "opw.vhd" "opwTst.vhd")
    echo -n $vhd": " >>ncsim.time
    (time ncvhdl -nocopyright -v93 -nostdout -nolog $vhdlopt $vhd) >>& ncsim.time 
  end
  echo ncelab -nocopyright -v93 -nostdout -nolog $elabopt[1] tstcfg >> ncsim.time
  echo "------------------------------------------------" >> ncsim.time
  echo -n " - ncelab"
  (time ncelab -nocopyright -v93 -nostdout -nolog $elabopt[1] tstcfg) >>& ncsim.time 
  echo ncsim -nocopyright -batch -input ncsim.scr -nostdout -nokey -logfile tmpout $simopt[1] tstcfg >> ncsim.time
  echo "------------------------------------------------" >> ncsim.time
  echo -n " - ncsim"
  foreach run (1 2 3)
    echo -n " "$run
    (time ncsim -nocopyright -batch -input ncsim.scr -nostdout -nokey -logfile tmpout $simopt[1] tstcfg) >>& ncsim.time
    mv tmpout tmpout.$outCnt
    @ outCnt++
  end
  echo "" >> ncsim.time
  echo ""
  shift elabopt
  shift simopt
end
unset elabopt
unset simopt
