diff options
author | gatecat <gatecat@ds0.me> | 2021-02-23 12:21:55 +0000 |
---|---|---|
committer | gatecat <gatecat@ds0.me> | 2021-02-23 12:21:55 +0000 |
commit | 20f0ba9526abfb8c39fa16099f0eefd2c0555eac (patch) | |
tree | 94b2deb0947f01c23cce59526fd94e60b420d22e /nexus | |
parent | 3b451743753fc99d56e424d04f810c59acd33968 (diff) | |
download | nextpnr-20f0ba9526abfb8c39fa16099f0eefd2c0555eac.tar.gz nextpnr-20f0ba9526abfb8c39fa16099f0eefd2c0555eac.tar.bz2 nextpnr-20f0ba9526abfb8c39fa16099f0eefd2c0555eac.zip |
nexus: Fix getPipDelay returning negative after refactor
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'nexus')
-rw-r--r-- | nexus/arch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nexus/arch.h b/nexus/arch.h index 4ccb9870..15184d26 100644 --- a/nexus/arch.h +++ b/nexus/arch.h @@ -1117,7 +1117,7 @@ struct Arch : BaseArch<ArchRanges> DelayQuad getPipDelay(PipId pip) const override { auto &cls = speed_grade->pip_classes[pip_data(pip).timing_class]; - return DelayQuad(cls.min_delay, cls.max_delay); + return DelayQuad(std::max(0, cls.min_delay), std::max(0, cls.max_delay)); } UpDownhillPipRange getPipsDownhill(WireId wire) const override |