Replies: 1 comment 11 replies
-
Given a ValueSymbol, you can loop over the ValueDrivers via the |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Mike,
I have a simple SV model as shown below:
After adding the syntax tree to a Compilation object and calling the getRoot() function, I'm using the ASTVisitor with the handle() function to traverse the AST and process the nodes. I want to know how I can get the initialization direction of each VariableSymbol (whether input or output). If they are assigned to a value, I also want to get the symbol it is assigned with.
In the case of the code above, I need to get the assigned symbols
key_in
(forkey
),key
andin
(forsum
), andsum
andin
(forout
).My current Visitor class looks like this:
It would be helpful if you could give some input. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions