lib.cdc: specify maximum input delay in seconds.
Since we use hertz elsewhere, this provides for easy conversions. Also, cast the delay to string before applying it in xilinx_7series, to avoid stripping the fractional digits. Closes #234.
This commit is contained in:
parent
b43d2d36e8
commit
0858b8bf6c
2 changed files with 4 additions and 4 deletions
|
|
@ -39,7 +39,7 @@ class FFSynchronizer(Elaboratable):
|
|||
Number of synchronization stages between input and output. The lowest safe number is 2,
|
||||
with higher numbers reducing MTBF further, at the cost of increased latency.
|
||||
max_input_delay : None or float
|
||||
Maximum delay from the input signal's clock to the first synchronization stage.
|
||||
Maximum delay from the input signal's clock to the first synchronization stage, in seconds.
|
||||
If specified and the platform does not support it, elaboration will fail.
|
||||
|
||||
Platform override
|
||||
|
|
@ -122,7 +122,7 @@ class ResetSynchronizer(Elaboratable):
|
|||
Number of synchronization stages between input and output. The lowest safe number is 2,
|
||||
with higher numbers reducing MTBF further, at the cost of increased deassertion latency.
|
||||
max_input_delay : None or float
|
||||
Maximum delay from the input signal's clock to the first synchronization stage.
|
||||
Maximum delay from the input signal's clock to the first synchronization stage, in seconds.
|
||||
If specified and the platform does not support it, elaboration will fail.
|
||||
|
||||
Platform override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue