| 1 | @echo off\r |
| 2 | \r |
| 3 | rmdir/s/q xst\r |
| 4 | \r |
| 5 | del fpga.ngc\r |
| 6 | xst -ifn xst.scr\r |
| 7 | if errorlevel 0 goto ok1\r |
| 8 | goto done\r |
| 9 | :ok1\r |
| 10 | \r |
| 11 | del fpga.ngd\r |
| 12 | ngdbuild -aul -p xc2s30-6vq100 -nt timestamp -uc fpga.ucf fpga.ngc fpga.ngd\r |
| 13 | if errorlevel 0 goto ok2\r |
| 14 | goto done\r |
| 15 | :ok2\r |
| 16 | \r |
| 17 | del fpga.ncd\r |
| 18 | map -p xc2s30-6vq100 fpga.ngd\r |
| 19 | if errorlevel 0 goto ok3\r |
| 20 | goto done\r |
| 21 | :ok3\r |
| 22 | \r |
| 23 | del fpga-placed.ncd\r |
| 24 | par fpga.ncd fpga-placed.ncd\r |
| 25 | if errorlevel 0 goto ok4\r |
| 26 | goto done\r |
| 27 | :ok4\r |
| 28 | \r |
| 29 | del fpga.bit fpga.drc fpga.rbt\r |
| 30 | bitgen -b fpga-placed.ncd fpga.bit\r |
| 31 | if errorlevel 0 goto ok5\r |
| 32 | goto done\r |
| 33 | :ok5\r |
| 34 | \r |
| 35 | echo okay\r |
| 36 | perl ..\tools\rbt2c.pl fpga.rbt > ..\armsrc\fpgaimg.c\r |
| 37 | \r |
| 38 | :done\r |