mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
More verbosity in Module::add failure due to duplicate
This commit is contained in:
parent
77cd9e1edc
commit
f7dc45a478
1 changed files with 3 additions and 0 deletions
|
|
@ -2895,6 +2895,9 @@ std::vector<RTLIL::NamedObject*> RTLIL::Module::selected_members() const
|
|||
void RTLIL::Module::add(RTLIL::Wire *wire)
|
||||
{
|
||||
log_assert(!wire->name.empty());
|
||||
if (count_id(wire->name) != 0)
|
||||
log_error("RTLIL::Module::add: duplicate name '%s' in module '%s' (already used by an "
|
||||
"existing wire/cell/memory/process).\n", log_id(wire->name), log_id(name));
|
||||
log_assert(count_id(wire->name) == 0);
|
||||
log_assert(refcount_wires_ == 0);
|
||||
wires_[wire->name] = wire;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue