aboutsummaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-01-28 16:48:22 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-02 07:34:56 -0800
commitb4160c228e789639dc9f434100976c5eb1f95d8d (patch)
tree7a17215b2435a7a9531f1436bffc9b518e91f752 /generic
parentf3a7c691a317fafd48b9142ff0c688e75bbb6424 (diff)
downloadnextpnr-b4160c228e789639dc9f434100976c5eb1f95d8d.tar.gz
nextpnr-b4160c228e789639dc9f434100976c5eb1f95d8d.tar.bz2
nextpnr-b4160c228e789639dc9f434100976c5eb1f95d8d.zip
Add archcheck for partition methods.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'generic')
-rw-r--r--generic/arch.h28
-rw-r--r--generic/archdefs.h1
2 files changed, 29 insertions, 0 deletions
diff --git a/generic/arch.h b/generic/arch.h
index abe7ff7d..b1af5175 100644
--- a/generic/arch.h
+++ b/generic/arch.h
@@ -271,6 +271,34 @@ struct Arch : BaseCtx
bool place();
bool route();
+ std::vector<IdString> getCellTypes() const {
+ return {};
+ }
+
+ std::vector<PartitionId> getPartitions() const {
+ return {};
+ }
+
+ IdString getPartitionName(PartitionId partition) const {
+ return partition;
+ }
+
+ PartitionId getPartitionByName(IdString partition) const {
+ return partition;
+ }
+
+ PartitionId getPartitionForBel(BelId bel) const {
+ return getBelType(bel);
+ }
+
+ PartitionId getPartitionForCellType(IdString cell_type) const {
+ return cell_type;
+ }
+
+ std::vector<BelId> getBelsForPartition(PartitionId partition) const {
+ return {};
+ }
+
const std::vector<GraphicElement> &getDecalGraphics(DecalId decal) const;
DecalXY getBelDecal(BelId bel) const;
DecalXY getWireDecal(WireId wire) const;
diff --git a/generic/archdefs.h b/generic/archdefs.h
index 978c9c9b..cb78249a 100644
--- a/generic/archdefs.h
+++ b/generic/archdefs.h
@@ -51,6 +51,7 @@ typedef IdString WireId;
typedef IdString PipId;
typedef IdString GroupId;
typedef IdString DecalId;
+typedef IdString PartitionId;
struct ArchNetInfo
{