techmap: Remove `techmap_chtype` from the result

This commit is contained in:
Martin Povišer 2024-04-10 18:32:27 +02:00
parent fc82251105
commit 6ff4ecb2b4
1 changed files with 3 additions and 1 deletions

View File

@ -337,8 +337,10 @@ struct TechmapWorker
if (c->type.begins_with("\\$")) if (c->type.begins_with("\\$"))
c->type = c->type.substr(1); c->type = c->type.substr(1);
if (c->type == ID::_TECHMAP_PLACEHOLDER_ && tpl_cell->has_attribute(ID::techmap_chtype)) if (c->type == ID::_TECHMAP_PLACEHOLDER_ && tpl_cell->has_attribute(ID::techmap_chtype)) {
c->type = RTLIL::escape_id(tpl_cell->get_string_attribute(ID::techmap_chtype)); c->type = RTLIL::escape_id(tpl_cell->get_string_attribute(ID::techmap_chtype));
c->attributes.erase(ID::techmap_chtype);
}
vector<IdString> autopurge_ports; vector<IdString> autopurge_ports;