diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-12-03 14:48:39 -0800 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-12-03 14:48:39 -0800 |
commit | 1ea9ce0ad7d2a44b88353be3a44eedf306ac786e (patch) | |
tree | 13c027156bf1235a45018d3233b40958e774b891 /techlibs | |
parent | 5897b918b3735e9bd621966fdcf0c52bb11cebc2 (diff) | |
download | yosys-1ea9ce0ad7d2a44b88353be3a44eedf306ac786e.tar.gz yosys-1ea9ce0ad7d2a44b88353be3a44eedf306ac786e.tar.bz2 yosys-1ea9ce0ad7d2a44b88353be3a44eedf306ac786e.zip |
ice40_opt to ignore (* keep *) -ed cells
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/ice40/ice40_opt.cc | 5 |
1 files changed, 5 insertions, 0 deletions
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); |