Skip to content

Commit 5aab6d7

Browse files
Update amaranth/vendor/_xilinx.py
Co-authored-by: Catherine <whitequark@whitequark.org>
1 parent eef6679 commit 5aab6d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amaranth/vendor/_xilinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ def get_async_ff_sync(self, async_ff_sync):
12151215
a_ASYNC_REG="TRUE")
12161216
for i in range(async_ff_sync._stages)]
12171217
for i, f in enumerate(flops):
1218-
setattr(m.submodules, f"stage{i}", f)
1218+
m.submodules[f"stage{i}"] = f
12191219
if self.toolchain == "Vivado":
12201220
if async_ff_sync._max_input_delay is None:
12211221
# This attribute should be used with a constraint of the form

0 commit comments

Comments
 (0)