From b33ebdfd1087bd1de038e23fd256ad5cc6576cfd Mon Sep 17 00:00:00 2001 From: Väinö Kauppila Date: Mon, 20 Apr 2026 15:11:08 +0300 Subject: 4K progmem --- hex2rom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hex2rom.py') diff --git a/hex2rom.py b/hex2rom.py index 291a702..3ddc5dc 100644 --- a/hex2rom.py +++ b/hex2rom.py @@ -9,7 +9,7 @@ Usage: import sys import argparse -DEPTH = 1024 +DEPTH = 4096 INST_BITS = 14 def parse_ihex(path): @@ -63,7 +63,7 @@ def render(words): lines.append(' process(clk)') lines.append(' begin') lines.append(' if rising_edge(clk) then') - lines.append(' data <= rom(to_integer(unsigned(addr(9 downto 0))));') + lines.append(' data <= rom(to_integer(unsigned(addr(11 downto 0))));') lines.append(' end if;') lines.append(' end process;') lines.append('end architecture rtl;') -- cgit v1.3