aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/archdefs.h
diff options
context:
space:
mode:
authorSergiusz Bazanski <q3k@q3k.org>2018-07-20 10:59:33 +0100
committerSergiusz Bazanski <q3k@q3k.org>2018-07-20 10:59:33 +0100
commit55d5f8f248a00581e54b818d747d5f42ddb5f6bb (patch)
tree4f40c21efb01e6d341fd13ca8e74c1f640b483e8 /ice40/archdefs.h
parent0385ad1b1cc3dcd4673b3c674bc28ca12a7c7450 (diff)
parent3bad9c26cff1ba2da7f1810e5915246874780744 (diff)
downloadnextpnr-55d5f8f248a00581e54b818d747d5f42ddb5f6bb.tar.gz
nextpnr-55d5f8f248a00581e54b818d747d5f42ddb5f6bb.tar.bz2
nextpnr-55d5f8f248a00581e54b818d747d5f42ddb5f6bb.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr into q3k/lock-2-electric-boogaloo
Diffstat (limited to 'ice40/archdefs.h')
-rw-r--r--ice40/archdefs.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/ice40/archdefs.h b/ice40/archdefs.h
index 75df678a..14b0d2be 100644
--- a/ice40/archdefs.h
+++ b/ice40/archdefs.h
@@ -54,7 +54,7 @@ enum BelType : int32_t
TYPE_SB_GB,
TYPE_ICESTORM_PLL,
TYPE_SB_WARMBOOT,
- TYPE_SB_MAC16,
+ TYPE_ICESTORM_DSP,
TYPE_ICESTORM_HFOSC,
TYPE_ICESTORM_LFOSC,
TYPE_SB_I2C,
@@ -150,6 +150,28 @@ struct DecalId
bool operator!=(const DecalId &other) const { return (type != other.type) || (index != other.index); }
};
+struct ArchNetInfo
+{
+ bool is_global = false;
+ bool is_reset = false, is_enable = 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
namespace std {
@@ -201,5 +223,4 @@ template <> struct hash<NEXTPNR_NAMESPACE_PREFIX DecalId>
return seed;
}
};
-
} // namespace std