How to match netSymbol or variableSymbol to portSymbol under Explicit-Ansi-Port Declaration? #1001
-
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.
Replies: 1 comment
-
Yes, PortSymbol has a |
Beta Was this translation helpful? Give feedback.
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.