blob: a7180fc615a0adb553b14820398f1e796ca85c52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh
# need project files:
# top.xst
# top.prj
# top.ut
# need Xilinx tools:
# xst
# ngdbuild
# map
# par
# trce
# bitgen
echo "########################"
echo "generate build directory"
echo "########################"
mkdir build
cd build
mkdir tmp
echo "###############"
echo "start processes"
echo "###############"
xst -ifn "../synthesis_config/top.xst" -ofn "top.syr"
ngdbuild -dd _ngo -nt timestamp -uc ../synthesis_config/altium-livedesign-xc3s1000.ucf -p xc3s1000-fg456-4 top.ngc top.ngd
map -p xc3s1000-fg456-4 -cm area -ir off -pr off -c 100 -o top_map.ncd top.ngd top.pcf
par -w -ol high -t 1 top_map.ncd top.ncd top.pcf
trce -v 3 -s 4 -n 3 -fastpaths -xml top.twx top.ncd -o top.twr top.pcf
bitgen -f ../synthesis_config/top.ut top.ncd
echo "###########"
echo "get bitfile"
echo "###########"
cp top.bit ..
|