aboutsummaryrefslogtreecommitdiff
path: root/test/ppu-stm-integration-demo/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/ppu-stm-integration-demo/makefile')
-rw-r--r--test/ppu-stm-integration-demo/makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ppu-stm-integration-demo/makefile b/test/ppu-stm-integration-demo/makefile
index 5f6d235..12f504f 100644
--- a/test/ppu-stm-integration-demo/makefile
+++ b/test/ppu-stm-integration-demo/makefile
@@ -1,12 +1,18 @@
.PHONY: all clean
SRCS := $(wildcard *.txt)
+SRCS += $(patsubst %.pvc,%.txt, $(wildcard *.pvc))
TARGETS += $(patsubst %.txt,%.h, $(SRCS))
TARGETS += $(patsubst %.txt,%-ppu.tb.vhd, $(SRCS))
TARGETS += $(patsubst %.txt,%-spi.tb.vhd, $(SRCS))
+.PRECIOUS: $(SRCS)
+
all: $(TARGETS)
+%.txt: %.pvc
+ sed 's/.*://g' $< | tr -d ' \n' | sed 's/\(.\{4\}\)\(.\{4\}\)/\L\1: \2\n/g' > $@
+
%.h: %.txt ./data2test.awk
tr -d ':' < $< | ./data2test.awk > $@