Skip to content

Commit

Permalink
techmap: Remove techmap_chtype from the result
Browse files Browse the repository at this point in the history
  • Loading branch information
povik authored and widlarizer committed May 3, 2024
1 parent f3f0d9b commit d14882f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion passes/techmap/techmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,10 @@ struct TechmapWorker
if (c->type.begins_with("\\$"))
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->attributes.erase(ID::techmap_chtype);
}

vector<IdString> autopurge_ports;

Expand Down

0 comments on commit d14882f

Please sign in to comment.