]> Joshua Wise's Git repositories - fpgaboy.git/commitdiff
Fuck shell scripts, we use makefiles here
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 3 Apr 2008 06:11:10 +0000 (02:11 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Thu, 3 Apr 2008 06:11:10 +0000 (02:11 -0400)
Makefile [new file with mode: 0644]
buildrom.sh [deleted file]
foo.bmm [new file with mode: 0644]
impact.cmd [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..bf5d698
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+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
diff --git a/buildrom.sh b/buildrom.sh
deleted file mode 100755 (executable)
index 3f8339e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/bash
-rgbasm -orom.o rom.asm && xlink rom.lnk && ./mashrom < rom.bin > rom.hex && echo 'ROM updated.'
diff --git a/foo.bmm b/foo.bmm
new file mode 100644 (file)
index 0000000..6177c20
--- /dev/null
+++ b/foo.bmm
@@ -0,0 +1,5 @@
+ADDRESS_SPACE rom RAMB16 [2047:0]
+       BUS_BLOCK
+               rom/Mrom_odata [7:0];
+       END_BUS_BLOCK;
+END_ADDRESS_SPACE;
diff --git a/impact.cmd b/impact.cmd
new file mode 100644 (file)
index 0000000..db5c851
--- /dev/null
@@ -0,0 +1,7 @@
+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
+
This page took 0.031522 seconds and 4 git commands to generate.