Skip to content

Commit

Permalink
vendor._xilinx: fix FFSynchronizer with custom shapes.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanda-phi authored and whitequark committed Jan 25, 2025
1 parent 8f6ca5a commit 8fde7ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amaranth/vendor/_xilinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -1240,9 +1240,9 @@ def get_ff_sync(self, ff_sync):
for index in range(ff_sync._stages)]
if self.toolchain == "Vivado":
if ff_sync._max_input_delay is None:
flops[0].attrs["amaranth.vivado.false_path"] = "TRUE"
Value.cast(flops[0]).attrs["amaranth.vivado.false_path"] = "TRUE"
else:
flops[0].attrs["amaranth.vivado.max_delay"] = str(ff_sync._max_input_delay * 1e9)
Value.cast(flops[0]).attrs["amaranth.vivado.max_delay"] = str(ff_sync._max_input_delay * 1e9)
elif ff_sync._max_input_delay is not None:
raise NotImplementedError("Platform '{}' does not support constraining input delay "
"for FFSynchronizer"
Expand Down

0 comments on commit 8fde7ed

Please sign in to comment.