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

    rm -r WORK/*
    echo vhdlan -nc -cycle -event mulPkg mul8 mul16 mul24 mul32 mulTst	\
						>> sci.${aWd}x${bWd}.time
    echo "------------------------------------------------"		\
						>> sci.${aWd}x${bWd}.time
    (time vhdlan -nc -cycle -event mulPkg.vhd mul8.vhd mul16.vhd	\
	mul24.vhd mul32.vhd mulTst.vhd)		>>& sci.${aWd}x${bWd}.time
    echo ""					>> sci.${aWd}x${bWd}.time
    echo "assign ${aWd} aWdC"			>  sci.gen
    echo "assign ${bWd} bWdC"			>> sci.gen
    echo "assign 500000 cyclesC"		>> sci.gen
    echo "assign (20 ns) periodC"		>> sci.gen

    foreach opt  ("-debug_all" "-event_all" "-partition mul.part"	\
	"-partition tst.part")
      echo -n running $opt ...
      echo scsim -nc -time ns $opt -include sci.scr \\			\
						>> sci.${aWd}x${bWd}.time
      echo "     "-generics_file sci.gen -output tmpout mul${aWd}Cfg	\
						>> sci.${aWd}x${bWd}.time
      echo "------------------------------------------------"		\
						>> sci.${aWd}x${bWd}.time
      foreach run (1 2 3)
	echo -n " "$run
        (time scsim -nc -time ns $opt -include sci.scr			\
		-generics_file sci.gen -output tmpout mul${aWd}Cfg)	\
						>>& sci.${aWd}x${bWd}.time

	mv tmpout tmpout.${aWd}x${bWd}.$outCnt
	@ outCnt++
      end
      echo ""
      echo ""					>> sci.${aWd}x${bWd}.time
    end
  end
  shift bWdSet
end
unset bWdSet
unset outCnt
