diff options
-rw-r--r-- | machxo2/archdefs.h | 14 | ||||
-rw-r--r-- | machxo2/constids.inc | 97 |
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) |