Skip to content

Commit 8fde7ed

Browse files
wanda-phiwhitequark
authored andcommitted
vendor._xilinx: fix FFSynchronizer with custom shapes.
1 parent 8f6ca5a commit 8fde7ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

amaranth/vendor/_xilinx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,9 +1240,9 @@ def get_ff_sync(self, ff_sync):
12401240
for index in range(ff_sync._stages)]
12411241
if self.toolchain == "Vivado":
12421242
if ff_sync._max_input_delay is None:
1243-
flops[0].attrs["amaranth.vivado.false_path"] = "TRUE"
1243+
Value.cast(flops[0]).attrs["amaranth.vivado.false_path"] = "TRUE"
12441244
else:
1245-
flops[0].attrs["amaranth.vivado.max_delay"] = str(ff_sync._max_input_delay * 1e9)
1245+
Value.cast(flops[0]).attrs["amaranth.vivado.max_delay"] = str(ff_sync._max_input_delay * 1e9)
12461246
elif ff_sync._max_input_delay is not None:
12471247
raise NotImplementedError("Platform '{}' does not support constraining input delay "
12481248
"for FFSynchronizer"

0 commit comments

Comments
 (0)