aboutsummaryrefslogtreecommitdiffstats
path: root/common/nextpnr_types.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/nextpnr_types.h')
-rw-r--r--common/nextpnr_types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/nextpnr_types.h b/common/nextpnr_types.h
index 6b594d64..6debd2b8 100644
--- a/common/nextpnr_types.h
+++ b/common/nextpnr_types.h
@@ -124,6 +124,7 @@ struct ClockConstraint;
struct NetInfo : ArchNetInfo
{
+ explicit NetInfo(IdString name) : name(name){};
IdString name, hierpath;
int32_t udata = 0;
@@ -155,8 +156,13 @@ struct PortInfo
PortType type;
};
+struct Context;
+
struct CellInfo : ArchCellInfo
{
+ CellInfo(Context *ctx, IdString name, IdString type) : ctx(ctx), name(name), type(type){};
+ Context *ctx = nullptr;
+
IdString name, type, hierpath;
int32_t udata;