Skip to content
Discussion options

You must be logged in to vote

What you are calling the "value" here is actually the type of the port. It's not really possible with the current slang AST to get the constant expressions inside a type declaration, since types are uniquified across all logic vectors of a given width (which is needed for type equivalency checking, for example). You might be able to do something like get the underlying SyntaxNode for the port declaration you care about and rebind the expression yourself manually to inspect the Expression tree.

As far as hierarchical param overrides go, they are supported as of the current unreleased version of slang. You will need to build the Python library from source if you want to use it before the ne…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@NoT-Di
Comment options

@NoT-Di
Comment options

Answer selected by NoT-Di
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants