set bWdSet = ("8 16 24 32" "16 24 32" "24 32" "32")
foreach aWd ("8" "16" "24" "32")
  foreach bWd ($bWdSet[1])
    set outCnt = 1

    set evopt = ("-preserve" "-performance"				\
	"-performance -noipd -notcheck -vitalmsgoff -vitalxoff")
    foreach cvopt ("-nobuiltin -noopt -nortl -novitalaccl"		\
	"-avopt -performance"						\
  "-avopt -performance -bounds -underover -notcheck -vitalmsgoff -vitalxoff")

      rm -r work
      mkdir work
      echo cv -nocopyright -v93 $cvopt '<vhdFile>'			\
						>> sv.${aWd}x${bWd}.time
      echo "------------------------------------------------"		\
						>> sv.${aWd}x${bWd}.time
      echo -n running cv
      foreach vhd  ("mulPkg.vhd" "mul8.vhd" "mul16.vhd" "mul24.vhd"	\
		"mul32.vhd" "mulTst.vhd")
	echo -n $vhd": "			>>sv.${aWd}x${bWd}.time
        (time cv -nocopyright -v93 $cvopt $vhd)	>>& sv.${aWd}x${bWd}.time 
      end

      echo ev -nocopyright -v93 $evopt[1] \\	>> sv.${aWd}x${bWd}.time
      echo "      -generic 'aWdC=>$aWd' -generic 'bWdC=>$bWd' mul${aWd}Cfg" \
						>> sv.${aWd}x${bWd}.time
      echo "------------------------------------------------"		\
						>> sv.${aWd}x${bWd}.time
      echo -n " - ev ${aWd}x${bWd}"
      (time ev -nocopyright -v93 $evopt[1] -generic "aWdC=>$aWd"	\
	-generic "bWdC=>$bWd" mul${aWd}Cfg)	>>& sv.${aWd}x${bWd}.time

      echo sv -nocopyright -batch -input sv.scr -output tmpout mul${aWd}Cfg \
						>> sv.${aWd}x${bWd}.time
      echo "------------------------------------------------"		\
						>> sv.${aWd}x${bWd}.time
      echo -n " - sv"
      foreach run (1 2 3)
	echo -n " "$run
	(time sv -nocopyright -batch -input sv.scr -output tmpout	\
		mul${aWd}Cfg)			>>& sv.${aWd}x${bWd}.time
	mv tmpout tmpout.${aWd}x${bWd}.${outCnt}
	@ outCnt++
      end
      echo ""					>> sv.${aWd}x${bWd}.time
      echo ""
      shift evopt
    end
  end
  shift bWdSet
end
unset bWdSet
unset evopt
unset outCnt
