mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
fix bugs in handling last id in hdlname to scopename conversion
This commit is contained in:
parent
d640157ec4
commit
a5ba1d2eba
2 changed files with 11 additions and 3 deletions
|
@ -341,8 +341,10 @@ std::vector<IdString> parse_hdlname(const O* object)
|
|||
path.push_back("\\" + item);
|
||||
if (path.empty() && object->name.isPublic())
|
||||
path.push_back(object->name);
|
||||
if (!path.empty() && !(object->name.isPublic() || object->name.begins_with("$paramod") || object->name.begins_with("$abstract")))
|
||||
if (!path.empty() && !(object->name.isPublic() || object->name.begins_with("$paramod") || object->name.begins_with("$abstract"))) {
|
||||
path.pop_back();
|
||||
path.push_back(object->name);
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue