aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/archdefs.h
diff options
context:
space:
mode:
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