summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVäinö Kauppila <vaino@vke.fi>2026-04-20 18:21:28 +0300
committerVäinö Kauppila <vaino@vke.fi>2026-04-20 18:21:28 +0300
commit7af8820d2dbd441f95cb5c8bde74e4649878383c (patch)
tree46775e7fc08137d8d40a69d70be4e2d76265cc66 /Makefile
parentbada76e705a4219fe2da27bb59c32dbdd0601514 (diff)
downloadvhdl_pic-7af8820d2dbd441f95cb5c8bde74e4649878383c.tar.gz
vhdl_pic-7af8820d2dbd441f95cb5c8bde74e4649878383c.zip
prog rom generation using Amaranth
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index d442655..52b19ab 100644
--- a/Makefile
+++ b/Makefile
@@ -21,17 +21,17 @@ $(BUILD)/%.hex: fw/%.c | $(BUILD)
$(BUILD)/program.hex: $(BUILD)/$(PROG).hex
cp $< $@
-# prog_rom.vhd embeds the program for synthesis
-hdl/prog_rom.vhd: $(BUILD)/program.hex
- python3 hex2rom.py $< > $@
+# prog_rom.v embeds the program for synthesis
+hdl/prog_rom.v: $(BUILD)/program.hex
+ $(PODMAN) python3 hdl/rom.py $< > $@
# Regenerate ROM from an arbitrary hex file: make rom HEX=foo.hex
rom:
- python3 hex2rom.py $(HEX) > hdl/prog_rom.vhd
+ $(PODMAN) python3 hdl/rom.py --module prog_ram $(HEX) > hdl/prog_rom.v
# -- Container targets ----------------------------------------------------------------------------
-all: hdl/prog_rom.vhd
+all: hdl/prog_rom.v
$(PODMAN) make -f Makefile.inner
sim: $(BUILD)/program.hex
@@ -53,6 +53,6 @@ show-uart:
clean:
$(PODMAN) make -f Makefile.inner clean
rm -rf $(BUILD)
- rm -f hdl/prog_rom.vhd
+ rm -f hdl/prog_rom.v
.PHONY: all sim clean flash show-top show-uart rom