mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +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);
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ void witness_hierarchy_recursion(IdPath &path, int hdlname_mode, RTLIL::Module *
|
|||
|
||||
for (auto cell : module->cells())
|
||||
{
|
||||
Module *child = module->design->module(cell->type);
|
||||
Module *child = module->design->module(cell->type_impl);
|
||||
if (child == nullptr)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue