mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 11:45:41 +00:00
commit
1fbd92537f
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ struct RegRenameInstance {
|
|||
searchName.erase(pos);
|
||||
|
||||
// If register name with no brackets ends with _reg, we can process it
|
||||
size_t reg_pos = searchName.find("_reg");
|
||||
size_t reg_pos = searchName.rfind("_reg");
|
||||
if (reg_pos != std::string::npos && reg_pos == searchName.size() - 4) {
|
||||
|
||||
// Remove "_reg" to get the target wire specification
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue