mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-13 04:28:18 +00:00
ice40_opt to ignore (* keep *) -ed cells
This commit is contained in:
parent
5897b918b3
commit
1ea9ce0ad7
|
@ -41,6 +41,11 @@ static void run_ice40_opts(Module *module)
|
||||||
|
|
||||||
for (auto cell : module->selected_cells())
|
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")
|
if (cell->type == "\\SB_LUT4")
|
||||||
{
|
{
|
||||||
sb_lut_cells.push_back(cell);
|
sb_lut_cells.push_back(cell);
|
||||||
|
|
Loading…
Reference in a new issue