2 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
2 changed files with 3 additions and 3 deletions

View File

@@ -1,2 +1,2 @@
version_info = (0, 0, 2)
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