From 7028b02c470729436badea9acc3224c34621e25a Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Thu, 3 Apr 2008 02:11:10 -0400 Subject: [PATCH] Fuck shell scripts, we use makefiles here --- Makefile | 16 ++++++++++++++++ buildrom.sh | 2 -- foo.bmm | 5 +++++ impact.cmd | 7 +++++++ 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 Makefile delete mode 100755 buildrom.sh create mode 100644 foo.bmm create mode 100644 impact.cmd diff --git a/Makefile b/Makefile new file mode 100644 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 index 3f8339e..0000000 --- a/buildrom.sh +++ /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 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 index 0000000..db5c851 --- /dev/null +++ b/impact.cmd @@ -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 + -- 2.43.0