How to find begin/end sigautre from ASTVisitor #657
Unanswered
HungMingWu
asked this question in
Q&A
Replies: 2 comments 3 replies
|
I'm not sure what you're asking. What is a begin/end signature? Do you mean the block name? The BlockStatement points to the BlockSymbol which has a name. |
1 reply
|
Well like I said you can look for BlockStatements which represent the sequential blocks implied by begin/end pairs. For that last case you posted the BlockStatement will be the body of the ProceduralBlockSymbol which represents the |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, Mike
I met an issue.
Here is the test case
class C; int a; task T(); int arr[5]; blk_1: foreach(arr[j]) begin $display("1"); blk_2: for (int of = 0; of < 5; of++) begin : blk_3 int c; blk_4 : foreach(arr[k]) begin int d; end end end endtask endclass module top; C c; int blk_1; initial begin c.T(); end endmoduleI think
BlockStatementis what I needed, but I cannot judge whether it havebegin/endsignature.Am I missing something?
All reactions