Skip to content

Commit

Permalink
frontend/base: import hierarchical cells attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
tarikgraba committed Dec 11, 2024
1 parent a28c547 commit 1659074
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/frontend_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@ template <typename FrontendType> struct GenericFrontend
// Do the submodule import
auto type = impl.get_cell_type(cd);
import_module(submod, name, type, mod_refs.at(type));
// Add current cell attributes to the imported module
impl.foreach_attr( cd, [&](const std::string &name, const Property &value)
{ ctx->hierarchy[submod.path].attrs[ctx->id(name)] = value; } );
}

// Import the cells section of a module
Expand Down

0 comments on commit 1659074

Please sign in to comment.