Skip to content

Commit

Permalink
Revert "cost: correct cost for single bit internal cells"
Browse files Browse the repository at this point in the history
This reverts commit 2cc848a.
  • Loading branch information
widlarizer committed May 7, 2024
1 parent a31893c commit e747d8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions frontends/ast/ast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1722,8 +1722,7 @@ RTLIL::IdString AstModule::derive(RTLIL::Design *design, const dict<RTLIL::IdStr
// create a new parametric module (when needed) and return the name of the generated module - without support for interfaces
RTLIL::IdString AstModule::derive(RTLIL::Design *design, const dict<RTLIL::IdString, RTLIL::Const> &parameters, bool /*mayfail*/)
{
bool quiet = false;
log("quiet %d\n", quiet);
bool quiet = lib || attributes.count(ID::blackbox) || attributes.count(ID::whitebox);

AstNode *new_ast = NULL;
std::string modname = derive_common(design, parameters, &new_ast, quiet);
Expand Down
3 changes: 1 addition & 2 deletions kernel/cost.cc
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ 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 1;
return gate_type_cost().at(cell->type);

if (design_ && design_->module(cell->type) && cell->parameters.empty()) {
log_debug("%s is a module, recurse\n", cell->name.c_str());
Expand Down

0 comments on commit e747d8b

Please sign in to comment.