3 Commits

Author SHA1 Message Date
Byron Lathi
672aad693a Fix list comprehension parenthesis location
All checks were successful
build / test (3.10) (release) Successful in 6s
build / test (3.11) (release) Successful in 6s
build / test (3.12) (release) Successful in 6s
build / test (3.13) (release) Successful in 6s
build / test (3.9) (release) Successful in 6s
build / lint (release) Successful in 8s
build / mypy (release) Successful in 9s
build / Build distributions (release) Successful in 7s
build / deploy (release) Successful in 6s
build / test (3.10) (push) Successful in 6s
build / test (3.11) (push) Successful in 6s
build / test (3.12) (push) Successful in 6s
build / test (3.13) (push) Successful in 6s
build / test (3.9) (push) Successful in 7s
build / lint (push) Successful in 8s
build / mypy (push) Successful in 9s
build / Build distributions (push) Successful in 7s
build / deploy (push) Has been skipped
2025-11-23 17:44:30 -08:00
Byron Lathi
c595bc3f5e Fix addresses not adding
All checks were successful
build / test (3.10) (push) Successful in 6s
build / test (3.11) (push) Successful in 6s
build / test (3.12) (push) Successful in 6s
build / test (3.13) (push) Successful in 7s
build / test (3.9) (push) Successful in 6s
build / lint (push) Successful in 8s
build / mypy (push) Successful in 9s
build / test (3.10) (release) Successful in 6s
build / test (3.11) (release) Successful in 6s
build / test (3.12) (release) Successful in 6s
build / test (3.13) (release) Successful in 6s
build / test (3.9) (release) Successful in 6s
build / lint (release) Successful in 8s
build / mypy (release) Successful in 8s
build / Build distributions (push) Successful in 7s
build / Build distributions (release) Successful in 7s
build / deploy (push) Has been skipped
build / deploy (release) Successful in 6s
2025-11-23 17:39:50 -08:00
Byron Lathi
411948af28 Change tool name
All checks were successful
build / test (3.10) (push) Successful in 7s
build / test (3.11) (push) Successful in 6s
build / test (3.12) (push) Successful in 6s
build / test (3.13) (push) Successful in 6s
build / test (3.9) (push) Successful in 7s
build / lint (push) Successful in 8s
build / mypy (push) Successful in 8s
build / test (3.10) (release) Successful in 6s
build / test (3.11) (release) Successful in 6s
build / test (3.12) (release) Successful in 6s
build / test (3.13) (release) Successful in 6s
build / test (3.9) (release) Successful in 6s
build / lint (release) Successful in 8s
build / mypy (release) Successful in 9s
build / Build distributions (push) Successful in 7s
build / Build distributions (release) Successful in 7s
build / deploy (push) Has been skipped
build / deploy (release) Successful in 6s
2025-11-23 17:36:21 -08:00
3 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ name = "peakrdl-python-regmap"
dynamic = ["version"]
requires-python = ">=3.7"
dependencies = [
"systemrdl-compiler ~= 1.31",
"systemrdl-compiler~=1.31",
"jinja2",
]
@@ -47,4 +47,4 @@ Changelog = "https://git.byronlathi.com/bslathi19/PeakRDL-python/releases"
version = {attr = "peakrdl_python_regmap.__about__.__version__"}
[project.entry-points."peakrdl.exporters"]
python = "peakrdl_python_regmap.__peakrdl__:Exporter"
python-regmap = "peakrdl_python_regmap.__peakrdl__:Exporter"

View File

@@ -1,2 +1,2 @@
version_info = (0, 0, 1)
version_info = (0, 0, 4)
__version__ = ".".join([str(n) for n in version_info])

View File

@@ -45,8 +45,8 @@ class Generator(RDLListener):
assert child.array_dimensions is not None
if len(child.array_dimensions) > 1:
raise NotImplementedError("Multidimensional arrays not supported")
self.f.write(f"{' '*self.indent_level*4} self.{child.inst_name} = [self.{child.inst_name}Class({child.raw_address_offset} + {child.size}*i for i in range({child.n_elements}))]\n")
self.f.write(f"{' '*self.indent_level*4} self.{child.inst_name} = [self.{child.inst_name}Class(self.addr + {child.raw_address_offset} + {child.size}*i) for i in range({child.n_elements})]\n")
else:
self.f.write(f"{' '*self.indent_level*4} self.{child.inst_name} = self.{child.inst_name}Class({child.address_offset})\n")
self.f.write(f"{' '*self.indent_level*4} self.{child.inst_name} = self.{child.inst_name}Class(self.addr + {child.address_offset})\n")
self.indent_level-=1