Skip to content

Commit

Permalink
cost: describe new model
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed May 9, 2024
1 parent 10220d6 commit 9e67d5c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kernel/cost.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,13 @@ struct CellCosts
return db;
}

unsigned int get(RTLIL::Module *mod);
// Get the cell cost for a cell based on its parameters.
// This cost is an upper bound for the number of gates the cell will
// get mapped to with "opt -fast; techmap"
unsigned int get(RTLIL::Cell *cell);
// Sum up the cell costs of all cells in the module
// and all its submodules recursively
unsigned int get(RTLIL::Module *mod);
};

YOSYS_NAMESPACE_END
Expand Down

0 comments on commit 9e67d5c

Please sign in to comment.