Is there a way to go from Symbol->SyntaxNode-Symbol #841
Practical-UVM-Step-By-Step
started this conversation in
General
Replies: 1 comment
-
You shouldn't have to go back to the syntax nodes. You can look for expressions that have TimingControls attached (delays are one type of timing control) and report an error if you find it. In general you can go back from symbols/expressions/statements (i.e. the AST) to the original syntax nodes but you can't go forward from the syntax nodes to the AST. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Mike: I saw the other answers in the discussion, but they didnt fit what I was asking. I am trying to write a check to detect #delays in forever blocks in task code.
Please consider this example code:
I am using an additional check like this in slang::tidy
MY question:
I looked in Symbol.h and SyntaxNode.h. There didnt seem to be a way to go between the two. Maybe it was by design, and I havent understood why yet.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions