diff options
author | David Shah <dave@ds0.me> | 2018-11-04 14:03:33 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2018-11-12 14:03:58 +0000 |
commit | 07e265868b49447b600c6c3da9f042c593f467f3 (patch) | |
tree | 92a42ef5f8810922513d76435f62a70a61dc7103 /docs | |
parent | e633aa09ccd89040d450b7cb4b7864c4fd8c0468 (diff) | |
download | nextpnr-07e265868b49447b600c6c3da9f042c593f467f3.tar.gz nextpnr-07e265868b49447b600c6c3da9f042c593f467f3.tar.bz2 nextpnr-07e265868b49447b600c6c3da9f042c593f467f3.zip |
archapi: Add getDelayFromNS to improve timing algorithm portability
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/archapi.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/archapi.md b/docs/archapi.md index 6b22c6df..fd3bfb3a 100644 --- a/docs/archapi.md +++ b/docs/archapi.md @@ -398,6 +398,10 @@ actual penalty used is a multiple of this value (i.e. a weighted version of this Convert an `delay_t` to an actual real-world delay in nanoseconds. +### DelayInfo getDelayFromNS(float v) const + +Convert a real-world delay in nanoseconds to a DelayInfo with equal min/max rising/falling values. + ### uint32\_t getDelayChecksum(delay\_t v) const Convert a `delay_t` to an integer for checksum calculations. |