summaryrefslogtreecommitdiffstats
path: root/hw_godil/bsp/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hw_godil/bsp/build.sh')
-rw-r--r--hw_godil/bsp/build.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/hw_godil/bsp/build.sh b/hw_godil/bsp/build.sh
new file mode 100644
index 0000000..3ec68a0
--- /dev/null
+++ b/hw_godil/bsp/build.sh
@@ -0,0 +1,28 @@
+# need project files:
+# top.xst
+# top.prj
+# top.ut
+
+# need Xilinx tools:
+# xst
+# ngdbuild
+# map
+# par
+# trce
+# bitgen
+
+# generate build directory
+mkdir build
+cd build
+mkdir tmp
+
+# start processes
+xst -ifn "../top.xst" -ofn "top.syr"
+ngdbuild -dd _ngo -nt timestamp -uc ../godil_xc3s500e.ucf -p xc3s500e-vq100-4 top.ngc top.ngd
+map -p xc3s500e-vq100-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 ../top.ut top.ncd
+
+# get bitfile
+cp top.bit ..
OpenPOWER on IntegriCloud