aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam D. Jones <thor0505@comcast.net>2020-11-23 11:20:39 -0500
committergatecat <gatecat@ds0.me>2021-02-12 10:36:59 +0000
commit5c30f95c425540a4ba1cb0b49d7c6663a98b9f57 (patch)
tree516d5923b5b0a55ccd054ee03a47da1c0f44c564
parent1cde40792f2d8cf8d0799fec25c0418a0903547f (diff)
downloadnextpnr-5c30f95c425540a4ba1cb0b49d7c6663a98b9f57.tar.gz
nextpnr-5c30f95c425540a4ba1cb0b49d7c6663a98b9f57.tar.bz2
nextpnr-5c30f95c425540a4ba1cb0b49d7c6663a98b9f57.zip
machxo2: Add initial set of constids for packing.
-rw-r--r--machxo2/archdefs.h14
-rw-r--r--machxo2/constids.inc97
2 files changed, 111 insertions, 0 deletions
diff --git a/machxo2/archdefs.h b/machxo2/archdefs.h
index 978c9c9b..6c861a32 100644
--- a/machxo2/archdefs.h
+++ b/machxo2/archdefs.h
@@ -46,6 +46,20 @@ struct DelayInfo
}
};
+enum ConstIds
+{
+ ID_NONE
+#define X(t) , ID_##t
+#include "constids.inc"
+#undef X
+ ,
+ DB_CONST_ID_COUNT
+};
+
+#define X(t) static constexpr auto id_##t = IdString(ID_##t);
+#include "constids.inc"
+#undef X
+
typedef IdString BelId;
typedef IdString WireId;
typedef IdString PipId;
diff --git a/machxo2/constids.inc b/machxo2/constids.inc
index e69de29b..f93aa9f3 100644
--- a/machxo2/constids.inc
+++ b/machxo2/constids.inc
@@ -0,0 +1,97 @@
+X(FACADE_SLICE)
+X(A0)
+X(B0)
+X(C0)
+X(D0)
+X(A1)
+X(B1)
+X(C1)
+X(D1)
+X(M0)
+X(M1)
+X(FCI)
+X(FXA)
+X(FXB)
+X(CLK)
+X(LSR)
+X(CE)
+X(DI0)
+X(DI1)
+X(WD0)
+X(WD1)
+X(WAD0)
+X(WAD1)
+X(WAD2)
+X(WAD3)
+X(WRE)
+X(WCK)
+X(F0)
+X(Q0)
+X(F1)
+X(Q1)
+X(FCO)
+X(OFX0)
+X(OFX1)
+X(WDO0)
+X(WDO1)
+X(WDO2)
+X(WDO3)
+X(WADO0)
+X(WADO1)
+X(WADO2)
+X(WADO3)
+
+X(MODE)
+X(GSR)
+X(SRMODE)
+X(CEMUX)
+X(CLKMUX)
+X(LSRMUX)
+X(LSRONMUX)
+X(LUT0_INITVAL)
+X(LUT1_INITVAL)
+X(REG0_SD)
+X(REG1_SD)
+X(REG0_REGSET)
+X(REG1_REGSET)
+X(REG0_REGMODE)
+X(REG1_REGMODE)
+X(CCU2_INJECT1_0)
+X(CCU2_INJECT1_1)
+X(WREMUX)
+
+
+X(FACADE_FF)
+X(DI)
+X(Q)
+
+X(REGSET)
+X(REGMODE)
+
+
+X(FACADE_IO)
+X(PAD)
+X(I)
+X(EN)
+X(O)
+
+X(DIR)
+
+
+X(LUT4)
+X(A)
+X(B)
+X(C)
+X(D)
+X(Z)
+
+X(INIT)
+
+
+X(PFUMX)
+X(ALUT)
+X(BLUT)
+
+
+X(L6MUX21)
+X(SD)