diff --git a/kernel/cost.cc b/kernel/cost.cc index 2e383eeb02b..7fe21b97b3b 100644 --- a/kernel/cost.cc +++ b/kernel/cost.cc @@ -135,8 +135,9 @@ unsigned int port_width_sum(RTLIL::Cell *cell) unsigned int CellCosts::get(RTLIL::Cell *cell) { + // simple 1-bit cells if (gate_type_cost().count(cell->type)) - return gate_type_cost().at(cell->type); + return 1; if (design_ && design_->module(cell->type) && cell->parameters.empty()) { log_debug("%s is a module, recurse\n", cell->name.c_str());