aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.h
diff options
context:
space:
mode:
Diffstat (limited to 'ecp5/arch.h')
-rw-r--r--ecp5/arch.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h
index 9d99da8c..92240719 100644
--- a/ecp5/arch.h
+++ b/ecp5/arch.h
@@ -426,6 +426,20 @@ struct Arch : BaseCtx
bel_to_cell[bel] = IdString();
}
+ Loc getBelLocation(BelId bel) const
+ {
+ Loc loc;
+ loc.x = bel.location.x;
+ loc.y = bel.location.y;
+ loc.z = locInfo(bel)->bel_data[bel.index].z;
+ return loc;
+ }
+
+ BelId getBelByLocation(Loc loc) const;
+ BelRange getBelsByTile(int x, int y) const;
+
+ bool getBelGlobalBuf(BelId bel) const { return false; }
+
bool checkBelAvail(BelId bel) const
{
NPNR_ASSERT(bel != BelId());