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 committed May 3, 2024
1 parent fc82251 commit 6ff4ecb
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 6ff4ecb

Please sign in to comment.