Commit 83fd066e authored by Dimitris Lampridis's avatar Dimitris Lampridis

syn: add post synthesis hook to generate the Xilinx PROM files

parent 717c46cb
......@@ -2,3 +2,4 @@
!.gitignore
!Manifest.py
!crio_wr_pmu.ucf
!prom_gen.sh
......@@ -10,6 +10,8 @@ syn_project = "crio_wr_pmu.xise"
syn_tool = "ise"
syn_post_cmd = "./prom_gen.sh"
modules = {
"local" : "../../top/crio_wr_pmu/",
}
......
#!/bin/sh
# convert .bit to .mcs, the result can be written to flash without erasing an existing SDBFS on it
promgen -w -spi -p mcs -c FF -s 32768 -u 0 crio_wr_pmu_top.bit -o crio_wr_pmu.mcs
# alternative .mcs with empty SDBFS appended. It should be used if there is no SDBFS on the flash
wget http://www.ohwr.org/attachments/download/4558/sdbfs-standalone-160812.bin -O /tmp/sdbfs-standalone-160812.bin
promgen -w -spi -p mcs -c FF -s 32768 -u 0 crio_wr_pmu_top.bit -bd /tmp/sdbfs-standalone-160812.bin start 0x170000 -o crio_wr_pmu_sdbfs.mcs
rm /tmp/sdbfs-standalone-160812.bin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment