]> git.zerfleddert.de Git - fpga-games/blob - galaxian/build_xst
remove clock skew introduced by BUFGs
[fpga-games] / galaxian / build_xst
1 #/bin/sh
2
3 set -x
4
5 name=galaxian
6 rom_path=roms/
7
8 if [ ! -e "roms/galaxian_6l.vhd" ]; then
9 ./build_roms
10 fi
11
12 rm -rf build/
13 mkdir -p build
14 cd build/
15
16 cp -r ../src .
17 cp -r ../t80_ip .
18 cp ../roms/*.vhd .
19 cp ../${name}.ucf ${name}.ucf
20 cp ../${name}.ut .
21 cp ../${name}.scr .
22 cp ../${name}.prj .
23 echo "work" >${name}.lso
24
25 xst -ifn ${name}.scr -ofn ${name}.srp
26
27 ngdbuild -nt on -uc ${name}.ucf ${name}.ngc ${name}.ngd
28 map -pr b ${name}.ngd -o ${name}.ncd ${name}.pcf
29 par -w -ol high ${name}.ncd ${name}.ncd ${name}.pcf
30 trce -v 10 -o ${name}.twr ${name}.ncd ${name}.pcf
31 bitgen ${name}.ncd ${name}.bit -w -f ${name}.ut
32
33 echo Done
Impressum, Datenschutz