From: Eddie Hung Date: Tue, 3 Dec 2019 22:48:39 +0000 (-0800) Subject: ice40_opt to ignore (* keep *) -ed cells X-Git-Tag: working-ls180~931^2~11 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ea9ce0ad7d2a44b88353be3a44eedf306ac786e;p=yosys.git ice40_opt to ignore (* keep *) -ed cells --- diff --git a/techlibs/ice40/ice40_opt.cc b/techlibs/ice40/ice40_opt.cc index ea56d3f4d..aa5c43649 100644 --- a/techlibs/ice40/ice40_opt.cc +++ b/techlibs/ice40/ice40_opt.cc @@ -41,6 +41,11 @@ static void run_ice40_opts(Module *module) for (auto cell : module->selected_cells()) { + if (!cell->type.in("\\SB_LUT4", "\\SB_CARRY", "$__ICE40_CARRY_WRAPPER")) + continue; + if (cell->has_keep_attr()) + continue; + if (cell->type == "\\SB_LUT4") { sb_lut_cells.push_back(cell);