X-Git-Url: http://git.joshuawise.com/fpgaboy.git/blobdiff_plain/318331120b0bd48a06902e70a63b4f536a85de5f..9c834ff2149ba2b9b4db71a1bb6b974235c88273:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index bf5d698..d89b586 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,24 @@ -all: CoreTop.svf +VLOGS=Uart.v Timer.v Interrupt.v GBZ80Core.v CPUDCM.v 7seg.v System.v + +all: CoreTop.svf CoreTop.twr + +CoreTyp.ngc: CoreTop.xst CoreTop.prj $(VLOGS) CoreTop.ucf + xst -ifn CoreTop.xst -ofn CoreTop.syr + +CoreTop.ngd: CoreTop.ngc foo.bmm + ngdbuild -dd _ngo -nt timestamp -i -bm "foo.bmm" -p xc3s500e-fg320-5 "CoreTop.ngc" CoreTop.ngd + +CoreTop_map.ncd: CoreTop.ngd + map -p xc3s500e-fg320-5 -cm area -pr off -k 4 -c 100 -o CoreTop_map.ncd CoreTop.ngd CoreTop.pcf + +CoreTop.ncd: CoreTop_map.ncd + par -w -ol std -t 1 CoreTop_map.ncd CoreTop.ncd CoreTop.pcf + +CoreTop.twr: CoreTop_map.ncd + trce -e 3 -s 5 -xml CoreTop CoreTop.ncd -o CoreTop.twr CoreTop.pcf -ucf CoreTop.ucf + +CoreTop.bit: CoreTop.ut CoreTop.ncd + bitgen -f CoreTop.ut CoreTop.ncd CoreTop_rom.bit: rom.hex CoreTop.bit foo_bd.bmm data2mem -bm foo_bd.bmm -bd rom.mem -bt CoreTop.bit -o b CoreTop_rom.bit