@@ -38,7 +38,7 @@ from {% if skip_lib_copy %}src.peakrdl_python.{% else %}..{% endif %}lib import
3838{% endif %}
3939
4040
41- from ..reg_model.{{top_node.type_name }} import {{top_node.type_name }}_cls
41+ from ..reg_model.{{top_node.inst_name }} import {{top_node.inst_name }}_cls
4242{% if asyncoutput %}
4343from {% if skip_lib_copy %} src.peakrdl_python.{% else %} ..{% endif %} sim_lib.dummy_callbacks import async_dummy_read as read_addr_space
4444from {% if skip_lib_copy %} src.peakrdl_python.{% else %} ..{% endif %} sim_lib.dummy_callbacks import async_dummy_write as write_addr_space
@@ -83,10 +83,10 @@ else:
8383TestCaseBase = unittest.TestCase
8484{% endif %}
8585
86- class {{top_node.type_name }}_TestCase(TestCaseBase): # type: ignore[valid-type,misc]
86+ class {{top_node.inst_name }}_TestCase(TestCaseBase): # type: ignore[valid-type,misc]
8787
8888 def setUp(self) -> None:
89- self.dut = {{top_node.type_name }}_cls(callbacks={% if asyncoutput %} AsyncCallbackSet{% else %} NormalCallbackSet{% endif %}{% if legacy_block_access %} Legacy{% endif %} (read_callback=read_callback,
89+ self.dut = {{top_node.inst_name }}_cls(callbacks={% if asyncoutput %} AsyncCallbackSet{% else %} NormalCallbackSet{% endif %}{% if legacy_block_access %} Legacy{% endif %} (read_callback=read_callback,
9090 write_callback=write_callback))
9191
9292 @staticmethod
@@ -106,22 +106,22 @@ class {{top_node.type_name}}_TestCase(TestCaseBase): # type: ignore[valid-type,m
106106 result |= 1 << (number_bits - 1 - i)
107107 return result
108108
109- class {{top_node.type_name }}_TestCase_BlockAccess(TestCaseBase): # type: ignore[valid-type,misc]
109+ class {{top_node.inst_name }}_TestCase_BlockAccess(TestCaseBase): # type: ignore[valid-type,misc]
110110
111111 def setUp(self) -> None:
112- self.dut = {{top_node.type_name }}_cls(callbacks={% if asyncoutput %} AsyncCallbackSet{% else %} NormalCallbackSet{% endif %}{% if legacy_block_access %} Legacy{% endif %} (read_callback=read_callback,
112+ self.dut = {{top_node.inst_name }}_cls(callbacks={% if asyncoutput %} AsyncCallbackSet{% else %} NormalCallbackSet{% endif %}{% if legacy_block_access %} Legacy{% endif %} (read_callback=read_callback,
113113 write_callback=write_callback,
114114 read_block_callback=read_block_callback,
115115 write_block_callback=write_block_callback))
116116
117- class {{top_node.type_name }}_TestCase_AltBlockAccess(TestCaseBase): # type: ignore[valid-type,misc]
117+ class {{top_node.inst_name }}_TestCase_AltBlockAccess(TestCaseBase): # type: ignore[valid-type,misc]
118118 """
119119 Based test to use with the alternative call backs, this allow the legacy output API to be tested
120120 with the new callbacks and visa versa.
121121 """
122122
123123 def setUp(self) -> None:
124- self.dut = {{top_node.type_name }}_cls(callbacks={% if asyncoutput %} AsyncCallbackSet{% else %} NormalCallbackSet{% endif %}{% if not legacy_block_access %} Legacy{% endif %} (
124+ self.dut = {{top_node.inst_name }}_cls(callbacks={% if asyncoutput %} AsyncCallbackSet{% else %} NormalCallbackSet{% endif %}{% if not legacy_block_access %} Legacy{% endif %} (
125125 read_callback=read_callback,
126126 write_callback=write_callback,
127127 read_block_callback=read_block_callback_alt,
0 commit comments