aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr.h
diff options
context:
space:
mode:
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 3d9a66ca..f231f1b8 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;