diff options
author | David Shah <davey1576@gmail.com> | 2018-07-18 12:12:05 +0200 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2018-07-18 12:12:05 +0200 |
commit | c75a924c3f9dba4fd7d5c4e9674b29f7869a4e52 (patch) | |
tree | 526dc36005efb9bc1ec8b03b58f5b82aa3470f8b /ice40/archdefs.h | |
parent | 74cbaa5b83518d1743ae0a8fd335e7be1afb4f54 (diff) | |
download | nextpnr-c75a924c3f9dba4fd7d5c4e9674b29f7869a4e52.tar.gz nextpnr-c75a924c3f9dba4fd7d5c4e9674b29f7869a4e52.tar.bz2 nextpnr-c75a924c3f9dba4fd7d5c4e9674b29f7869a4e52.zip |
ice40: Assign ArchArgs after packing
Signed-off-by: David Shah <davey1576@gmail.com>
Diffstat (limited to 'ice40/archdefs.h')
-rw-r--r-- | ice40/archdefs.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/ice40/archdefs.h b/ice40/archdefs.h index ce7d3f52..cf8a78f4 100644 --- a/ice40/archdefs.h +++ b/ice40/archdefs.h @@ -150,8 +150,26 @@ struct DecalId bool operator!=(const DecalId &other) const { return (type != other.type) || (index != other.index); } }; -struct ArchNetInfo { }; -struct ArchCellInfo { }; +struct ArchNetInfo +{ + bool is_global = false; +}; + +struct NetInfo; + +struct ArchCellInfo +{ + BelType belType = TYPE_NONE; + union + { + struct + { + bool dffEnable, negClk; + int inputCount; + const NetInfo *clk, *cen, *sr; + } lcInfo; + }; +}; NEXTPNR_NAMESPACE_END |