cp /local/tech1.1/ams/vhdlLib/sci/csx33/.synopsys_vss.setup .
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 mul${aWd}x${bWd}X mulTstS mul${aWd}Cfg \
						>> sci01.${aWd}x${bWd}.time
    echo "------------------------------------------------"		\
						>> sci01.${aWd}x${bWd}.time
    (time vhdlan -nc -cycle -event mul${aWd}x${bWd}X.vhd mulTstS.vhd	\
	mul${aWd}Cfg.vhd)			>>&sci01.${aWd}x${bWd}.time
    echo ""					>> sci01.${aWd}x${bWd}.time
    vhdlan -nc -cycle -event mul${aWd}x${bWd}X.vhd mulTstS.vhd mul${aWd}Cfg.vhd
    echo "assign ${aWd} aWdC"			>  sci.gen
    echo "assign ${bWd} bWdC"			>> sci.gen
    echo "assign 50000 cyclesC"			>> sci.gen
    echo "assign (20 ns) periodC"		>> sci.gen
    echo "cycle -4state -perf -tbl mul${aWd}"	>  mul.part
    echo "cycle -4state -perf -tbl mul${aWd}Cfg">  tst.part
#   echo "cycle -2state -perf -tbl mul${aWd}"	>  mul.part
#   echo "cycle -2state -perf -tbl mul${aWd}Cfg">  tst.part

#   foreach scsopt  ("" "-partition mul.part" "-2state -partition tst.part") 
    foreach scsopt  ("" "-partition mul.part" "-partition tst.part") 
      echo -n running ${aWd}x${bWd} $scsopt scs
      echo scs -nc -time ps $scsopt -generics sci.gen mul${aWd}Cfg	\
						>> sci01.${aWd}x${bWd}.time
      echo "------------------------------------------------"		\
						>> sci01.${aWd}x${bWd}.time
      (time scs -nc -time ps $scsopt -generics sci.gen mul${aWd}Cfg)	\
						>>&sci01.${aWd}x${bWd}.time

      echo -n "- scsim ..."
      echo scsim -nc -include sci.scr -output tmpout		\
						>> sci01.${aWd}x${bWd}.time
      echo "------------------------------------------------"		\
						>> sci01.${aWd}x${bWd}.time
      foreach run (1 2)
	echo -n " "$run
        (time scsim -nc -include sci.scr -output tmpout)	\
						>>&sci01.${aWd}x${bWd}.time
	mv tmpout tmpout01.${aWd}x${bWd}.$outCnt
	@ outCnt++
      end
      echo ""
      echo ""					>> sci01.${aWd}x${bWd}.time
    end
  end
  shift bWdSet
end
unset bWdSet
unset outCnt
