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:
Dennis Potter 2021-11-06 18:00:17 -07:00
parent 8fbf800c4f
commit b44813e0c5
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF

View File

@ -374,7 +374,7 @@ class Component():
def create_underscored_path_static(obj): def create_underscored_path_static(obj):
owning_addrmap = obj.owning_addrmap.inst_name owning_addrmap = obj.owning_addrmap.inst_name
full_path = Component.__split_dimensions(obj.get_path())[0] 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('.', '__') path_underscored = path.replace('.', '__')