Compare commits

...

2 Commits

Author SHA1 Message Date
Catherine 35082b0165
Merge fef34573c5 into 56b80bdd22 2024-11-20 13:36:12 +01:00
Catherine fef34573c5 cxxrtl: strip `$paramod` from module name in scope info. 2024-11-14 21:50:10 +00:00
1 changed files with 6 additions and 1 deletions

View File

@ -2402,7 +2402,12 @@ struct CxxrtlWorker {
auto cell_attrs = scopeinfo_attributes(cell, ScopeinfoAttrs::Cell);
cell_attrs.erase(ID::module_not_derived);
f << indent << "scopes->add(path, " << escape_cxx_string(get_hdl_name(cell)) << ", ";
f << escape_cxx_string(cell->get_string_attribute(ID(module))) << ", ";
if (module_attrs.count(ID(hdlname))) {
f << escape_cxx_string(module_attrs.at(ID(hdlname)).decode_string());
} else {
f << escape_cxx_string(cell->get_string_attribute(ID(module)));
}
f << ", ";
dump_serialized_metadata(module_attrs);
f << ", ";
dump_serialized_metadata(cell_attrs);