ice40_opt to ignore (* keep *) -ed cells

This commit is contained in:
Eddie Hung 2019-12-03 14:48:39 -08:00
parent 5897b918b3
commit 1ea9ce0ad7
1 changed files with 5 additions and 0 deletions

View File

@ -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);