Getting port defnitions from pyslang.ModportSymbol #1003
|
Hello, I am trying to get the port direction and name from the modeport node in the AST for interfaces. I have a tree-walker method which walks the AST some thing like this. I am not able to find any children which would help me further navigate down the tree to get the ports. for example: Once I parse this file I want the output to be like something: Any pointers on this would be helpful? |
Answered by
MikePopoloski
May 21, 2024
Replies: 1 comment 2 replies
|
The modport has child nodes of type ModportPortSymbol which has all the information you want. |
2 replies
Answer selected by
Abhinkop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The modport has child nodes of type ModportPortSymbol which has all the information you want.