frontend: Ignore $scopeinfo

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2024-01-11 15:48:47 +01:00
parent 257fbe549d
commit d00fdc8f7a

View File

@ -447,10 +447,13 @@ template <typename FrontendType> struct GenericFrontend
// Import a leaf cell - (white|black)box
void import_leaf_cell(HierModuleState &m, const std::string &name, const cell_dat_t &cd)
{
auto cell_type = impl.get_cell_type(cd);
if (cell_type == "$scopeinfo")
return;
IdString inst_name = unique_name(m.prefix, name, false);
ctx->hierarchy[m.path].leaf_cells_by_gname[inst_name] = ctx->id(name);
ctx->hierarchy[m.path].leaf_cells[ctx->id(name)] = inst_name;
CellInfo *ci = ctx->createCell(inst_name, ctx->id(impl.get_cell_type(cd)));
CellInfo *ci = ctx->createCell(inst_name, ctx->id(cell_type));
ci->hierpath = m.path;
// Import port directions
dict<IdString, PortType> port_dirs;