diff options
| author | gatecat <gatecat@ds0.me> | 2021-03-09 08:48:12 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-09 08:48:12 +0000 | 
| commit | 326b34887cdf82dc834382f4bf35d120bd4173dd (patch) | |
| tree | bb346955c661bf96b51e309a3f1030c27ac1bb07 /common/nextpnr.h | |
| parent | 0f17e80eef2a4c0e417b65efa559481f83831f00 (diff) | |
| parent | 8a4bf3a7805080db2c8f2e797a0f12aad7c99f5d (diff) | |
| download | nextpnr-326b34887cdf82dc834382f4bf35d120bd4173dd.tar.gz nextpnr-326b34887cdf82dc834382f4bf35d120bd4173dd.tar.bz2 nextpnr-326b34887cdf82dc834382f4bf35d120bd4173dd.zip | |
Merge pull request #609 from YosysHQ/gatecat/sta-v2
Use new timing engine for criticality
Diffstat (limited to 'common/nextpnr.h')
| -rw-r--r-- | common/nextpnr.h | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/common/nextpnr.h b/common/nextpnr.h index ab2f8dca..404900c4 100644 --- a/common/nextpnr.h +++ b/common/nextpnr.h @@ -552,6 +552,10 @@ struct DelayPair      {          return {min_delay + other.min_delay, max_delay + other.max_delay};      } +    DelayPair operator-(const DelayPair &other) const +    { +        return {min_delay - other.min_delay, max_delay - other.max_delay}; +    }  };  // four-quadrant, min and max rise and fall delay @@ -575,6 +579,7 @@ struct DelayQuad      DelayPair delayPair() const { return DelayPair(minDelay(), maxDelay()); };      DelayQuad operator+(const DelayQuad &other) const { return {rise + other.rise, fall + other.fall}; } +    DelayQuad operator-(const DelayQuad &other) const { return {rise - other.rise, fall - other.fall}; }  };  struct ClockConstraint; | 
