]>
Commit | Line | Data |
---|---|---|
1 | VLOGS=Uart.v Timer.v Interrupt.v GBZ80Core.v CPUDCM.v 7seg.v System.v allinsns.v insn_ld_reg_imm8.v | |
2 | ||
3 | all: CoreTop.svf CoreTop.twr | |
4 | ||
5 | CoreTop.ngc: CoreTop.xst CoreTop.prj $(VLOGS) CoreTop.ucf | |
6 | xst -ifn CoreTop.xst -ofn CoreTop.syr | |
7 | ||
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 | |
10 | ||
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 | |
13 | ||
14 | CoreTop.ncd: CoreTop_map.ncd | |
15 | par -w -ol std -t 1 CoreTop_map.ncd CoreTop.ncd CoreTop.pcf | |
16 | ||
17 | CoreTop.twr: CoreTop_map.ncd | |
18 | trce -e 3 -s 5 -xml CoreTop CoreTop.ncd -o CoreTop.twr CoreTop.pcf -ucf CoreTop.ucf | |
19 | ||
20 | CoreTop.bit: CoreTop.ut CoreTop.ncd | |
21 | bitgen -f CoreTop.ut CoreTop.ncd | |
22 | ||
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 | |
25 | ||
26 | CoreTop.svf: CoreTop_rom.bit rom.hex impact.cmd | |
27 | impact -batch impact.cmd | |
28 | ||
29 | rom.o: rom.asm | |
30 | rgbasm -orom.o rom.asm | |
31 | ||
32 | rom.bin: rom.o rom.lnk | |
33 | xlink rom.lnk | |
34 | ||
35 | rom.hex: rom.bin | |
36 | ./mashrom < rom.bin > rom.hex |