Can you give me a example? #379
Answered
by
MikePopoloski
luckyhorse1
asked this question in
Q&A
-
// This is a hierarchical lookup unless it's the first component in the path and the
// current scope is either an interface port or a package
result.isHierarchical = symbol->kind != SymbolKind::InterfacePort &&
symbol->kind != SymbolKind::Package &&
symbol->kind != SymbolKind::CompilationUnit; I cannot find a example for this. And whether "f.x" is hierarchical below? module m();
function f;
int x;
endfunction
int a = f.x;
endmodule |
Beta Was this translation helpful? Give feedback.
Answered by
MikePopoloski
Jan 4, 2021
Replies: 2 comments 9 replies
-
'f' in your example is a subroutine, so it is hierarchical. The code + comment seem clear to me -- it's hierarchical unless it's an interface port, a package, or a compilation unit. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MikePopoloski
-
Is m.a hierarchical ?
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'f' in your example is a subroutine, so it is hierarchical. The code + comment seem clear to me -- it's hierarchical unless it's an interface port, a package, or a compilation unit.