mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-24 08:02:32 +00:00
prevent IdString construction when looking up module from instance type
This commit is contained in:
parent
45c1654938
commit
e5f6755ffd
40 changed files with 94 additions and 94 deletions
|
|
@ -142,9 +142,9 @@ unsigned int CellCosts::get(RTLIL::Cell *cell)
|
|||
if (cmos_gate_cost().count(cell->type_impl))
|
||||
return 1;
|
||||
|
||||
if (design_ && design_->module(cell->type) && cell->parameters.empty()) {
|
||||
if (design_ && design_->module(cell->type_impl) && cell->parameters.empty()) {
|
||||
log_debug("%s is a module, recurse\n", cell->name);
|
||||
return get(design_->module(cell->type));
|
||||
return get(design_->module(cell->type_impl));
|
||||
} else if (cell->is_builtin_ff()) {
|
||||
log_assert(cell->hasPort(TW::Q) && "Weird flip flop");
|
||||
log_debug("%s is ff\n", cell->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue