mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-12-21 22:48:41 +00:00
Fix addrmap & memory/regfile/register/field-naming collision
For almost all variables, the addrmap is stripped of the name. However, when a memory/regfile/register/field had the same name as the addrmap, a part of that name would also be stripped.
This commit is contained in:
parent
8fbf800c4f
commit
b44813e0c5
@ -374,7 +374,7 @@ class Component():
|
||||
def create_underscored_path_static(obj):
|
||||
owning_addrmap = obj.owning_addrmap.inst_name
|
||||
full_path = Component.__split_dimensions(obj.get_path())[0]
|
||||
path = full_path.replace(f"{owning_addrmap}.", '')
|
||||
path = full_path.replace(f"{owning_addrmap}.", '', 1)
|
||||
|
||||
path_underscored = path.replace('.', '__')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user