From 7af8820d2dbd441f95cb5c8bde74e4649878383c Mon Sep 17 00:00:00 2001 From: Väinö Kauppila Date: Mon, 20 Apr 2026 18:21:28 +0300 Subject: prog rom generation using Amaranth --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') 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 -- cgit v1.3