sim: CoreTop_isim.exe
-CoreTop.ngc: CoreTop.xst CoreTop.prj $(VLOGS_ALL) rom.mem
+CoreTop.ngc: CoreTop.xst CoreTop.prj $(VLOGS_ALL) fpgaboot.hex gbboot.hex
xst -ifn CoreTop.xst -ofn CoreTop.syr
CoreTop.ngd: CoreTop.ngc foo.bmm CoreTop.ucf
%.mem: %.bin mashrom
./mashrom < $< > $@
+fpgaboot.hex: fpgaboot.bin mashrom
+ ./mashrom 256 < $< > $@
+
+
CoreTop.svf: CoreTop.bit impact.cmd
sed -e s/XXX/$(subst .bit,,$<)/ < impact.cmd > tmp.cmd
impact -batch tmp.cmd