--- /dev/null
+all: CoreTop.svf
+
+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
+
+CoreTop.svf: CoreTop_rom.bit rom.hex impact.cmd
+ impact -batch impact.cmd
+
+rom.o: rom.asm
+ rgbasm -orom.o rom.asm
+
+rom.bin: rom.o rom.lnk
+ xlink rom.lnk
+
+rom.hex: rom.bin
+ ./mashrom < rom.bin > rom.hex
+++ /dev/null
-#!/bin/bash
-rgbasm -orom.o rom.asm && xlink rom.lnk && ./mashrom < rom.bin > rom.hex && echo 'ROM updated.'
--- /dev/null
+ADDRESS_SPACE rom RAMB16 [2047:0]
+ BUS_BLOCK
+ rom/Mrom_odata [7:0];
+ END_BUS_BLOCK;
+END_ADDRESS_SPACE;
--- /dev/null
+setMode -bs
+setCable -port svf -file "/home/joshua/projects/fpga/FPGABoy/CoreTop.svf"
+addDevice -p 1 -file "/home/joshua/projects/fpga/FPGABoy/CoreTop_rom.bit"
+addDevice -p 2 -part xcf04s
+Program -p 1 -defaultVersion 0
+quit
+