From 68b100838eb925959e1727e2dc6fea3a5dc892dd Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Thu, 9 May 2024 16:29:50 +0200 Subject: [PATCH] cost: describe new model --- kernel/cost.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/cost.h b/kernel/cost.h index 48ae0e9cace..585c589514e 100644 --- a/kernel/cost.h +++ b/kernel/cost.h @@ -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