Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to generate a globally scoped type name to Node API #187

Closed
amykyta3 opened this issue Oct 11, 2023 · 1 comment
Closed

Add method to generate a globally scoped type name to Node API #187

amykyta3 opened this issue Oct 11, 2023 · 1 comment
Assignees
Labels
feature New feature or request

Comments

@amykyta3
Copy link
Member

A common operation in an exporter is to generate a globally unique type name for a given node that uniquely identifies a component type throughout its entire lexical hierarchy. The existing API provides the Node.inst.get_scope_path() method which is tantalizingly close to the correct solution, but does not provide the rendered type names after augmented by parameters or DPAs (See discussion in #186)

Provide a mechanism to generate a robust globally scoped type name as is done in PeakRDL-uvm's class name generation.

Be sure to also account for variants of a field definition with different widths. The spec's type uniquification semantics do not account for this.

@amykyta3
Copy link
Member Author

Implemented. Will be available in upcoming 1.27.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant