mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-20 22:25:49 +00:00
rtlil: fix masquerade
This commit is contained in:
parent
2d3b7e9c92
commit
1a8a95b472
11 changed files with 77 additions and 39 deletions
|
|
@ -45,7 +45,7 @@ void check(RTLIL::Design *design, bool dff_mode)
|
|||
if (it == m->attributes.end())
|
||||
continue;
|
||||
auto id = it->second.as_int();
|
||||
auto r = box_lookup.insert(std::make_pair(stringf("$__boxid%d", id), m->name));
|
||||
auto r = box_lookup.insert(std::make_pair(stringf("$__boxid%d", id), RTLIL::IdString(m->name)));
|
||||
if (!r.second)
|
||||
log_error("Module '%s' has the same abc9_box_id = %d value as '%s'.\n",
|
||||
m, id, r.first->second.unescape());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue