Skip to content

Commit c33ca22

Browse files
committed
Remove dangerous usage of non-public parts of the systemrdl-compiler API
1 parent bf37c9a commit c33ca22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "peakrdl-cheader"
77
dynamic = ["version"]
88
requires-python = ">=3.7"
99
dependencies = [
10-
"systemrdl-compiler ~= 1.30",
10+
"systemrdl-compiler ~= 1.31",
1111
"jinja2",
1212
]
1313

src/peakrdl_cheader/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_friendly_name(ds: DesignState, root_node: Union[AddrmapNode, MemNode, Re
5050
else:
5151
friendly_name = node.get_rel_path(root_node.parent)
5252

53-
return type(node.inst).__name__ + " - " + friendly_name
53+
return node.component_type_name + " - " + friendly_name
5454

5555
def roundup_pow2(x: int) -> int:
5656
return 1<<(x-1).bit_length()

0 commit comments

Comments
 (0)