summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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