How to match netSymbol or variableSymbol to portSymbol under Explicit-Ansi-Port Declaration? #1001
Answered
by
MikePopoloski
yanggeorge
asked this question in
Q&A
-
When using non-ansi port declartion or implict ansi port declaration, every portSymbol would have a internalSymbol which points to the netSymbol or variableSymbol. But when using explicit ansi port declaration, I find that the elaborated portSymbol's internalSymbol is nullptr. module top(input .a(a1), input .b(b1));
wire a1;
reg b1;
endmodule Here is the json.
So how to match the portSymbol to variableSymbol to portSymbol ? Is there an API to handle this situation? |
Beta Was this translation helpful? Give feedback.
Answered by
MikePopoloski
May 20, 2024
Replies: 1 comment
-
Yes, PortSymbol has a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yanggeorge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, PortSymbol has a
getInternalExpr
function that will give you that expression. It looks like it's not included in the AST JSON dump right now.