From 3d528adfdcf39b0a7fa2b319ce10f32343e4b795 Mon Sep 17 00:00:00 2001 From: gatecat Date: Wed, 16 Jun 2021 13:47:21 +0100 Subject: nexus: Disable center DCC-thrus on 17k device Signed-off-by: gatecat --- nexus/arch.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'nexus/arch.h') diff --git a/nexus/arch.h b/nexus/arch.h index 51322f3e..8c330e47 100644 --- a/nexus/arch.h +++ b/nexus/arch.h @@ -918,6 +918,8 @@ struct Arch : BaseArch // inverse of the above for name->object mapping dict id_to_x, id_to_y; + pool disabled_pips; + // ------------------------------------------------- std::string getChipName() const override; @@ -976,6 +978,20 @@ struct Arch : BaseArch return tileStatus[bel.tile].boundcells[bel.index] == nullptr; } + bool checkPipAvail(PipId pip) const override + { + if (disabled_pips.count(pip)) + return false; + return BaseArch::checkPipAvail(pip); + } + + bool checkPipAvailForNet(PipId pip, NetInfo *net) const override + { + if (disabled_pips.count(pip)) + return false; + return BaseArch::checkPipAvailForNet(pip, net); + } + CellInfo *getBoundBelCell(BelId bel) const override { NPNR_ASSERT(bel != BelId()); -- cgit v1.2.3