aboutsummaryrefslogtreecommitdiffstats
path: root/generic/arch.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-08-08 19:36:05 +0200
committerGitHub <noreply@github.com>2018-08-08 19:36:05 +0200
commitb326b03a5261a824f428fe0811a5376c8758b929 (patch)
treea13673a636ddbea3b5fd5585e3bb109b56b69435 /generic/arch.h
parentcd4e761bb799ca99f02d3aa177961af28a93f2d8 (diff)
parentf6189e4677c7bdaeaa5b9b796a67d750e6c7d49d (diff)
downloadnextpnr-b326b03a5261a824f428fe0811a5376c8758b929.tar.gz
nextpnr-b326b03a5261a824f428fe0811a5376c8758b929.tar.bz2
nextpnr-b326b03a5261a824f428fe0811a5376c8758b929.zip
Merge pull request #45 from YosysHQ/constids
Get rid of PortPin and BelType
Diffstat (limited to 'generic/arch.h')
-rw-r--r--generic/arch.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/generic/arch.h b/generic/arch.h
index c5863ec3..ee7d0403 100644
--- a/generic/arch.h
+++ b/generic/arch.h
@@ -130,12 +130,6 @@ struct Arch : BaseCtx
ArchArgs archArgs() const { return args; }
IdString archArgsToId(ArchArgs args) const { return id("none"); }
- IdString belTypeToId(BelType type) const { return type; }
- IdString portPinToId(PortPin type) const { return type; }
-
- BelType belTypeFromId(IdString id) const { return id; }
- PortPin portPinFromId(IdString id) const { return id; }
-
int getGridDimX() const { return gridDimX; }
int getGridDimY() const { return gridDimY; }
int getTileDimZ(int x, int y) const { return tileDimZ[x][y]; }
@@ -153,10 +147,10 @@ struct Arch : BaseCtx
CellInfo *getBoundBelCell(BelId bel) const;
CellInfo *getConflictingBelCell(BelId bel) const;
const std::vector<BelId> &getBels() const;
- BelType getBelType(BelId bel) const;
- WireId getBelPinWire(BelId bel, PortPin pin) const;
- PortType getBelPinType(BelId bel, PortPin pin) const;
- std::vector<PortPin> getBelPins(BelId bel) const;
+ IdString getBelType(BelId bel) const;
+ WireId getBelPinWire(BelId bel, IdString pin) const;
+ PortType getBelPinType(BelId bel, IdString pin) const;
+ std::vector<IdString> getBelPins(BelId bel) const;
WireId getWireByName(IdString name) const;
IdString getWireName(WireId wire) const;