nexus: Fix getPipDelay returning negative after refactor

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-02-23 12:21:55 +00:00
parent 3b45174375
commit 20f0ba9526

View File

@ -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