aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/cells.cc
diff options
context:
space:
mode:
Diffstat (limited to 'machxo2/cells.cc')
-rw-r--r--machxo2/cells.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/machxo2/cells.cc b/machxo2/cells.cc
index aed96e3d..d56c6d71 100644
--- a/machxo2/cells.cc
+++ b/machxo2/cells.cc
@@ -46,6 +46,7 @@ std::unique_ptr<CellInfo> create_machxo2_cell(Context *ctx, IdString type, std::
} else {
new_cell->name = ctx->id(name);
}
+ new_cell->type = type;
if (type == id_FACADE_SLICE) {
new_cell->params[id_MODE] = std::string("LOGIC");
@@ -55,8 +56,8 @@ std::unique_ptr<CellInfo> create_machxo2_cell(Context *ctx, IdString type, std::
new_cell->params[id_CLKMUX] = std::string("0");
new_cell->params[id_LSRMUX] = std::string("LSR");
new_cell->params[id_LSRONMUX] = std::string("LSRMUX");
- new_cell->params[id_LUT0_INITVAL] = Property(16, 0xFFFF);
- new_cell->params[id_LUT1_INITVAL] = Property(16, 0xFFFF);
+ new_cell->params[id_LUT0_INITVAL] = Property(0xFFFF, 16);
+ new_cell->params[id_LUT1_INITVAL] = Property(0xFFFF, 16);
new_cell->params[id_REG0_SD] = std::string("1");
new_cell->params[id_REG1_SD] = std::string("1");
new_cell->params[id_REG0_REGSET] = std::string("SET");