aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.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 /common/nextpnr.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 'common/nextpnr.h')
-rw-r--r--common/nextpnr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index 6195329b..e588f47b 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -100,13 +100,13 @@ struct Context;
struct IdString
{
- int index = 0;
+ int index;
static void initialize_arch(const BaseCtx *ctx);
static void initialize_add(const BaseCtx *ctx, const char *s, int idx);
- IdString() {}
+ constexpr IdString(int index = 0) : index(index) {}
void set(const BaseCtx *ctx, const std::string &s);
@@ -211,7 +211,7 @@ struct DecalXY
struct BelPin
{
BelId bel;
- PortPin pin;
+ IdString pin;
};
struct CellInfo;