+%.bin: %.o rom.lnk
+ echo "[Objects]" > tmp.lnk
+ echo $< >> tmp.lnk
+ echo "" >> tmp.lnk
+ echo "[Output]" >> tmp.lnk
+ echo $@ >> tmp.lnk
+ xlink tmp.lnk
+ rm tmp.lnk
+
+%.mem: %.bin
+ ./mashrom < $< > $@
+
+CoreTop_%.bit: %.mem CoreTop.bit foo_bd.bmm
+ data2mem -bm foo_bd.bmm -bd $< -bt CoreTop.bit -o b $@
+
+CoreTop_%.svf: CoreTop_%.bit impact.cmd
+ sed -e s/XXX/$(subst .bit,,$<)/ < impact.cmd > tmp.cmd
+ impact -batch tmp.cmd
+
+parsim: CoreTop
+
\ No newline at end of file