From 165907487eb60ff7f9aca8c930174076119fe324 Mon Sep 17 00:00:00 2001 From: TG Date: Wed, 11 Dec 2024 16:53:36 +0100 Subject: [PATCH] frontend/base: import hierarchical cells attributes --- frontend/frontend_base.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/frontend_base.h b/frontend/frontend_base.h index bdc8a896..cd26349f 100644 --- a/frontend/frontend_base.h +++ b/frontend/frontend_base.h @@ -535,6 +535,9 @@ template 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