nexus: Fix getPipDelay returning negative after refactor
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
3b45174375
commit
20f0ba9526
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user