Go to the source code of this file.
|
#define | STAT_INT_MEMBERS |
|
#define | X(_name) int _name; |
|
#define | X(_name) sum._name += _name; |
|
#define | X(_name) sum._name *= other; |
|
#define | X(_name) _name = 0; |
|
#define | X(_name) _name = 0; |
|
Value:X(num_wires)
X(num_wire_bits)
X(num_pub_wires)
X(num_pub_wire_bits) \
X(num_memories)
X(num_memory_bits)
X(num_cells)
X(num_processes)
Definition at line 29 of file stat.cc.
#define X |
( |
|
_name | ) |
int _name; |
#define X |
( |
|
_name | ) |
sum._name += _name; |
#define X |
( |
|
_name | ) |
sum._name *= other; |
#define X |
( |
|
_name | ) |
_name = 0; |
#define X |
( |
|
_name | ) |
_name = 0; |
Definition at line 147 of file stat.cc.
150 std::map<RTLIL::IdString, int, RTLIL::sort_by_id_str> num_cells_by_type;
153 for (
auto &it : num_cells_by_type)
154 if (mod_stat.count(it.first) > 0) {
155 log(
" %*s%-*s %6d\n", 2*level,
"", 26-2*level,
RTLIL::id2cstr(it.first), it.second);
156 mod_data = mod_data +
hierarchy_worker(mod_stat, it.first, level+1) * it.second;
157 mod_data.num_cells -= it.second;
statdata_t hierarchy_worker(std::map< RTLIL::IdString, statdata_t > &mod_stat, RTLIL::IdString mod, int level)
STAT_INT_MEMBERS std::map< RTLIL::IdString, int, RTLIL::sort_by_id_str > num_cells_by_type
static const char * id2cstr(const RTLIL::IdString &str)
void log(const char *format,...)