SLATE
ngdbuild -nt timestamp -uc example_top.ucf -p %device-%package%speedgrade ../synth/rev_1/example_top.edf example_top.ngd >> ise_flow_results.txt
if not exist "example_top.ngd" ( 
  echo Failed in TRANSLATE
  goto END )

echo Running MAP
map -intstyle ise -p %device-%package%speedgrade -w -ol high -xe n -register_duplication off -ir off -pr off -lc off -power off -o example_top_map.ncd example_top.ngd example_top.pcf >> ise_flow_results.txt
if not exist "example_top_map.ncd" ( 
  echo Failed in MAP
  goto END )

echo Running PAR
par -w -intstyle ise -ol high -xe n example_top_map.ncd example_top.ncd example_top.pcf >> ise_flow_results.txt
if not exist "example_top.ncd" ( 
  echo Failed in PAR
  goto END )


echo Running TRACE 
trce -intstyle ise -v 3 -fastpaths -xml example_top example_top.ncd -o example_top.twr example_top.pcf >> ise_flow_results.txt
echo Running BITGEN
bitgen -intstyle ise example_top.ncd >> ise_flow_results.txt

if not exist "example_top.bit" ( 
  echo Failed in BITGEN
  goto END )

echo IMPLEMENTATION SUCCESSFUL
:END
