ice40: implement checkPipAvailForNet
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
415c097df8
commit
a920ffcf70
10
ice40/arch.h
10
ice40/arch.h
@ -680,6 +680,16 @@ struct Arch : BaseArch<ArchRanges>
|
|||||||
return switches_locked[pi.switch_index] == WireId();
|
return switches_locked[pi.switch_index] == WireId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool checkPipAvailForNet(PipId pip, NetInfo *net) const override
|
||||||
|
{
|
||||||
|
if (ice40_pip_hard_unavail(pip))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
auto &pi = chip_info->pip_data[pip.index];
|
||||||
|
auto swl = switches_locked[pi.switch_index];
|
||||||
|
return swl == WireId() || (swl == getPipDstWire(pip) && wire_to_net[swl.index] == net);
|
||||||
|
}
|
||||||
|
|
||||||
NetInfo *getBoundPipNet(PipId pip) const override
|
NetInfo *getBoundPipNet(PipId pip) const override
|
||||||
{
|
{
|
||||||
NPNR_ASSERT(pip != PipId());
|
NPNR_ASSERT(pip != PipId());
|
||||||
|
Loading…
Reference in New Issue
Block a user