aboutsummaryrefslogtreecommitdiff
path: root/test/ppu-stm-integration-demo
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-03-31 16:28:17 +0200
committerlonkaars <loek@pipeframe.xyz>2023-03-31 16:28:17 +0200
commit46bf4306575fa31fccaff19f0a592f8b40dd46cb (patch)
tree0f317374e4d81af5862804d588ca05f44c7fb325 /test/ppu-stm-integration-demo
parentfa296fbc6fe1c423932189116bd0cb949de0beef (diff)
it's working
Diffstat (limited to 'test/ppu-stm-integration-demo')
-rw-r--r--test/ppu-stm-integration-demo/data.h1
-rw-r--r--test/ppu-stm-integration-demo/makefile9
-rw-r--r--test/ppu-stm-integration-demo/test-spi.txt15
3 files changed, 22 insertions, 3 deletions
diff --git a/test/ppu-stm-integration-demo/data.h b/test/ppu-stm-integration-demo/data.h
index cdca4a5..d86baea 100644
--- a/test/ppu-stm-integration-demo/data.h
+++ b/test/ppu-stm-integration-demo/data.h
@@ -2,4 +2,5 @@
#include "test-image.h"
// #include "test-background-color.h"
+// #include "test-spi.h"
diff --git a/test/ppu-stm-integration-demo/makefile b/test/ppu-stm-integration-demo/makefile
index 853dd31..5f6d235 100644
--- a/test/ppu-stm-integration-demo/makefile
+++ b/test/ppu-stm-integration-demo/makefile
@@ -1,16 +1,19 @@
.PHONY: all clean
-TARGETS := test-background-color.h test-image.h test-image-spi.tb.vhd test-image-ppu.tb.vhd test-background-color-spi.tb.vhd
+SRCS := $(wildcard *.txt)
+TARGETS += $(patsubst %.txt,%.h, $(SRCS))
+TARGETS += $(patsubst %.txt,%-ppu.tb.vhd, $(SRCS))
+TARGETS += $(patsubst %.txt,%-spi.tb.vhd, $(SRCS))
all: $(TARGETS)
%.h: %.txt ./data2test.awk
tr -d ':' < $< | ./data2test.awk > $@
-test-%-ppu.tb.vhd: test-%.txt ./data2pputb.awk
+%-ppu.tb.vhd: %.txt ./data2pputb.awk
tr -d ':' < $< | ./data2pputb.awk > $@
-test-%-spi.tb.vhd: test-%.txt ./data2spitb.awk
+%-spi.tb.vhd: %.txt ./data2spitb.awk
(tr -d ':' < $<; echo "ffff ffff") | ./data2spitb.awk > $@
clean:
diff --git a/test/ppu-stm-integration-demo/test-spi.txt b/test/ppu-stm-integration-demo/test-spi.txt
new file mode 100644
index 0000000..97c385a
--- /dev/null
+++ b/test/ppu-stm-integration-demo/test-spi.txt
@@ -0,0 +1,15 @@
+0000: 0000
+0000: 0000
+0000: 0000
+0000: 0000
+0000: 0000
+0f0f: f0f0
+0f0f: f0f0
+0f0f: f0f0
+0f0f: f0f0
+0f0f: f0f0
+f0f0: 0f0f
+f0f0: 0f0f
+f0f0: 0f0f
+f0f0: 0f0f
+f0f0: 0f0f