Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions scripts/python/xml2vhdl-ox/xml2vhdl/xml2ic.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
from .helper import customlogging as xml2vhdl_logging
logger = xml2vhdl_logging.config_logger(__name__)

version = [1.8, "Replaced optparse with argparse",
version = [1.9, "Changed array init syntax during vhdl gen line 717",
1.8, "Replaced optparse with argparse",
1.7, "major refactoring",
1.6, "merge node correction",
1.5, "bram init file containing zip compressed xml",
Expand Down Expand Up @@ -708,14 +709,16 @@ def __init__(self, options, args):
slave_type = snippet

snippet = "("
for address in sorted(vhdl_address):
for indx,address in enumerate(sorted(vhdl_address)):
snippet += "\n {} => ".format(indx)
snippet += "X\"" + helper.string_io.hex_format(address) + "\","
snippet = snippet[0:-1]
snippet += ")"
slave_base_addr = snippet

snippet = "("
for address in sorted(vhdl_address):
for indx,address in enumerate(sorted(vhdl_address)):
snippet += "\n {} => ".format(indx)
snippet += "X\"" + helper.string_io.hex_format(vhdl_decoder_mask[str(address)]) + "\","
snippet = snippet[0:-1]
snippet += ")"
Expand Down