frontend: Ignore $scopeinfo
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
257fbe549d
commit
d00fdc8f7a
@ -447,10 +447,13 @@ template <typename FrontendType> struct GenericFrontend
|
|||||||
// Import a leaf cell - (white|black)box
|
// Import a leaf cell - (white|black)box
|
||||||
void import_leaf_cell(HierModuleState &m, const std::string &name, const cell_dat_t &cd)
|
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);
|
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_by_gname[inst_name] = ctx->id(name);
|
||||||
ctx->hierarchy[m.path].leaf_cells[ctx->id(name)] = inst_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;
|
ci->hierpath = m.path;
|
||||||
// Import port directions
|
// Import port directions
|
||||||
dict<IdString, PortType> port_dirs;
|
dict<IdString, PortType> port_dirs;
|
||||||
|
Loading…
Reference in New Issue
Block a user