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