aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-06 12:30:58 +0100
committergatecat <gatecat@ds0.me>2021-05-06 13:12:52 +0100
commit0d6be6f4749174f4a6938a675456cb663edc47cb (patch)
treefcd843131002f8986decf8dcd9352cf3ebd54290 /generic
parentc6fa1a179aa8c79d335ba03814ea71d871c87577 (diff)
downloadnextpnr-0d6be6f4749174f4a6938a675456cb663edc47cb.tar.gz
nextpnr-0d6be6f4749174f4a6938a675456cb663edc47cb.tar.bz2
nextpnr-0d6be6f4749174f4a6938a675456cb663edc47cb.zip
Add stub cluster API impl for remaining arches
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.h11
-rw-r--r--generic/archdefs.h1
2 files changed, 12 insertions, 0 deletions
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<ArchRanges>
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<std::pair<CellInfo *, BelId>> &placement) const override
+ {
+ NPNR_ASSERT_FALSE("unimplemented");
+ }
+
static const std::string defaultPlacer;
static const std::vector<std::string> 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
{