1 VLOGS=Uart.v Timer.v Interrupt.v GBZ80Core.v CPUDCM.v 7seg.v System.v
3 all: CoreTop.svf CoreTop.twr
5 CoreTyp.ngc: CoreTop.xst CoreTop.prj $(VLOGS) CoreTop.ucf
6 xst -ifn CoreTop.xst -ofn CoreTop.syr
8 CoreTop.ngd: CoreTop.ngc foo.bmm
9 ngdbuild -dd _ngo -nt timestamp -i -bm "foo.bmm" -p xc3s500e-fg320-5 "CoreTop.ngc" CoreTop.ngd
11 CoreTop_map.ncd: CoreTop.ngd
12 map -p xc3s500e-fg320-5 -cm area -pr off -k 4 -c 100 -o CoreTop_map.ncd CoreTop.ngd CoreTop.pcf
14 CoreTop.ncd: CoreTop_map.ncd
15 par -w -ol std -t 1 CoreTop_map.ncd CoreTop.ncd CoreTop.pcf
17 CoreTop.twr: CoreTop_map.ncd
18 trce -e 3 -s 5 -xml CoreTop CoreTop.ncd -o CoreTop.twr CoreTop.pcf -ucf CoreTop.ucf
20 CoreTop.bit: CoreTop.ut CoreTop.ncd
21 bitgen -f CoreTop.ut CoreTop.ncd
23 CoreTop_rom.bit: rom.hex CoreTop.bit foo_bd.bmm
24 data2mem -bm foo_bd.bmm -bd rom.mem -bt CoreTop.bit -o b CoreTop_rom.bit
26 CoreTop.svf: CoreTop_rom.bit rom.hex impact.cmd
27 impact -batch impact.cmd
30 rgbasm -orom.o rom.asm
32 rom.bin: rom.o rom.lnk
36 ./mashrom < rom.bin > rom.hex