summaryrefslogtreecommitdiffstats
path: root/hex2rom.py
diff options
context:
space:
mode:
Diffstat (limited to 'hex2rom.py')
-rw-r--r--hex2rom.py4
1 files changed, 2 insertions, 2 deletions
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;')