Arch::getPipDelay() returns delay of dst wire; Arch::getWireDelay() to return nothing

This commit is contained in:
Eddie Hung 2018-11-20 14:52:01 -08:00
parent fa3e390e5f
commit ab9cb99f52

View File

@ -688,7 +688,7 @@ struct Arch : BaseCtx
return wire_to_net[wire.index];
}
DelayInfo getWireDelay(WireId wire) const { return torc_info->wire_to_delay[wire.index]; }
DelayInfo getWireDelay(WireId wire) const { return {}; }
BelPinRange getWireBelPins(WireId wire) const
{
@ -839,13 +839,9 @@ struct Arch : BaseCtx
DelayInfo getPipDelay(PipId pip) const
{
DelayInfo delay;
NPNR_ASSERT(pip != PipId());
// if (fast_part)
// delay.delay = chip_info->pip_data[pip.index].fast_delay;
// else
// delay.delay = chip_info->pip_data[pip.index].slow_delay;
return delay;
auto wire = getPipDstWire(pip);
return torc_info->wire_to_delay[wire.index];
}
PipRange getPipsDownhill(WireId wire) const