diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2023-03-17 19:00:05 +0100 |
---|---|---|
committer | myrtle <gatecat@ds0.me> | 2023-03-20 09:53:35 +0100 |
commit | 0ce72e1a3103d52d036f822b98e511d9c4f1e71b (patch) | |
tree | df69b12dc5ec296cdce6e7e7279234c476f2d811 /machxo2/cells.cc | |
parent | ad5f6fccaa4484eb02d3fa6d420ff39517b524e6 (diff) | |
download | nextpnr-0ce72e1a3103d52d036f822b98e511d9c4f1e71b.tar.gz nextpnr-0ce72e1a3103d52d036f822b98e511d9c4f1e71b.tar.bz2 nextpnr-0ce72e1a3103d52d036f822b98e511d9c4f1e71b.zip |
Use TRELLIS primitives
Diffstat (limited to 'machxo2/cells.cc')
-rw-r--r-- | machxo2/cells.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/machxo2/cells.cc b/machxo2/cells.cc index c5464892..5f277d17 100644 --- a/machxo2/cells.cc +++ b/machxo2/cells.cc @@ -32,7 +32,7 @@ std::unique_ptr<CellInfo> create_machxo2_cell(Context *ctx, IdString type, std:: name.empty() ? ctx->id("$nextpnr_" + type.str(ctx) + "_" + std::to_string(auto_idx++)) : ctx->id(name); auto new_cell = std::make_unique<CellInfo>(ctx, name_id, type); - if (type == id_FACADE_SLICE) { + if (type == id_TRELLIS_SLICE) { new_cell->params[id_MODE] = std::string("LOGIC"); new_cell->params[id_GSR] = std::string("ENABLED"); new_cell->params[id_SRMODE] = std::string("LSR_OVER_CE"); @@ -101,11 +101,11 @@ std::unique_ptr<CellInfo> create_machxo2_cell(Context *ctx, IdString type, std:: new_cell->addOutput(id_WADO1); new_cell->addOutput(id_WADO2); new_cell->addOutput(id_WADO3); - } else if (type == id_FACADE_IO) { + } else if (type == id_TRELLIS_IO) { new_cell->params[id_DIR] = std::string("INPUT"); new_cell->attrs[id_IO_TYPE] = std::string("LVCMOS33"); - new_cell->addInout(id_PAD); + new_cell->addInout(id_B); new_cell->addInput(id_I); new_cell->addInput(id_EN); new_cell->addOutput(id_O); |