wavekit 0.5.2__tar.gz → 0.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wavekit-0.5.2 → wavekit-0.5.3}/PKG-INFO +1 -1
- {wavekit-0.5.2 → wavekit-0.5.3}/pyproject.toml +1 -1
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/readers/fsdb/npi_fsdb_reader.pyx +4 -2
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/readers/fsdb/reader.py +6 -8
- {wavekit-0.5.2 → wavekit-0.5.3}/LICENSE +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/README.md +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/build.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/__init__.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/pattern/__init__.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/pattern/dsl.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/pattern/engine.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/pattern/instance.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/pattern/result.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/pattern/steps.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/readers/base.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/readers/expr_parser.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/readers/fsdb/npi_fsdb.pxd +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/readers/pattern_parser.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/readers/value_change.pyx +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/readers/vcd/reader.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/scope.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/signal.py +0 -0
- {wavekit-0.5.2 → wavekit-0.5.3}/src/wavekit/waveform.py +0 -0
|
@@ -162,8 +162,10 @@ cdef class NpiFsdbScope:
|
|
|
162
162
|
assert self.scope_handle != NULL
|
|
163
163
|
return npi_fsdb_scope_property_str(npiFsdbScopeType, self.scope_handle).decode('ascii')
|
|
164
164
|
|
|
165
|
-
def def_name(self) -> str:
|
|
166
|
-
|
|
165
|
+
def def_name(self) -> str | None:
|
|
166
|
+
"""Return the module definition name, or None if this scope is not a module."""
|
|
167
|
+
if self.type() != 'npiFsdbScopeSvModule':
|
|
168
|
+
return None
|
|
167
169
|
return npi_fsdb_scope_property_str(npiFsdbScopeDefName, self.scope_handle).decode('ascii')
|
|
168
170
|
|
|
169
171
|
|
|
@@ -101,17 +101,15 @@ class FsdbScope(Scope):
|
|
|
101
101
|
def child_scope_list(self) -> Sequence[Scope]:
|
|
102
102
|
return [FsdbScope(c, self, self.reader) for c in self._npi_scope.child_scope_list()]
|
|
103
103
|
|
|
104
|
-
@
|
|
104
|
+
@cached_property
|
|
105
105
|
def type(self) -> str:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return self._type
|
|
106
|
+
"""Return the NPI scope type string, e.g. 'npiFsdbScopeSvModule'."""
|
|
107
|
+
return self._npi_scope.type()
|
|
109
108
|
|
|
110
|
-
@
|
|
109
|
+
@cached_property
|
|
111
110
|
def def_name(self) -> str | None:
|
|
112
|
-
if not
|
|
113
|
-
|
|
114
|
-
return self._def_name
|
|
111
|
+
"""Return the module definition name, or None if this scope is not a module."""
|
|
112
|
+
return self._npi_scope.def_name()
|
|
115
113
|
|
|
116
114
|
def find_scope_by_module(self, module_name: str, depth: int = 0) -> list[Scope]:
|
|
117
115
|
if not hasattr(self, '_preloaded_module_scope'):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|