From 0d6be6f4749174f4a6938a675456cb663edc47cb Mon Sep 17 00:00:00 2001 From: gatecat Date: Thu, 6 May 2021 12:30:58 +0100 Subject: Add stub cluster API impl for remaining arches Signed-off-by: gatecat --- generic/arch.h | 11 +++++++++++ generic/archdefs.h | 1 + 2 files changed, 12 insertions(+) (limited to 'generic') diff --git a/generic/arch.h b/generic/arch.h index 92260ce0..50d2731c 100644 --- a/generic/arch.h +++ b/generic/arch.h @@ -362,6 +362,17 @@ struct Arch : ArchAPI bool isValidBelForCellType(IdString cell_type, BelId bel) const override { return cell_type == getBelType(bel); } bool isBelLocationValid(BelId bel) const override; + // TODO + CellInfo *getClusterRootCell(ClusterId cluster) const override { NPNR_ASSERT_FALSE("unimplemented"); } + ArcBounds getClusterBounds(ClusterId cluster) const override { NPNR_ASSERT_FALSE("unimplemented"); } + Loc getClusterOffset(const CellInfo *cell) const override { NPNR_ASSERT_FALSE("unimplemented"); } + bool isClusterStrict(const CellInfo *cell) const override { NPNR_ASSERT_FALSE("unimplemented"); } + bool getClusterPlacement(ClusterId cluster, BelId root_bel, + std::vector> &placement) const override + { + NPNR_ASSERT_FALSE("unimplemented"); + } + static const std::string defaultPlacer; static const std::vector availablePlacers; static const std::string defaultRouter; diff --git a/generic/archdefs.h b/generic/archdefs.h index bdd97dde..0489ab04 100644 --- a/generic/archdefs.h +++ b/generic/archdefs.h @@ -34,6 +34,7 @@ typedef IdStringList PipId; typedef IdStringList GroupId; typedef IdStringList DecalId; typedef IdString BelBucketId; +typedef IdString ClusterId; struct ArchNetInfo { -- cgit v1.2.3