From 20f0ba9526abfb8c39fa16099f0eefd2c0555eac Mon Sep 17 00:00:00 2001 From: gatecat Date: Tue, 23 Feb 2021 12:21:55 +0000 Subject: nexus: Fix getPipDelay returning negative after refactor Signed-off-by: gatecat --- nexus/arch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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 -- cgit v1.2.3