You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: David A
Original Redmine Issue: 93 from https://www.veripool.org
Original Date: 2009-05-26
Original Assignee: Wilson Snyder (@wsnyder)
Hi Wilson,
I'm having a rough time with the SigParser's "var" callback. I'm trying to use this callback to find typedef declarations of packed structs eg:
typedef struct packed {
bit yes;
bit no;
} type_decision;
In order to find all this user-defined datatype declarations I'm using the "var" callback, and looking for a "typedef" keyword with "struct" datatype.
The problem I'm having is that sometimes a callback is made for the internal fields of a struct, and those fields are marked as "typedefs" of "struct" datatype.
I'm attaching a test case to clarify the issue.
On Verilog-Perl version I'm running (3.210) the printed outputs of the testcase are:
Author Name: David A
Original Redmine Issue: 93 from https://www.veripool.org
Original Date: 2009-05-26
Original Assignee: Wilson Snyder (@wsnyder)
Hi Wilson,
I'm having a rough time with the SigParser's "var" callback. I'm trying to use this callback to find typedef declarations of packed structs eg:
In order to find all this user-defined datatype declarations I'm using the "var" callback, and looking for a "typedef" keyword with "struct" datatype.
The problem I'm having is that sometimes a callback is made for the internal fields of a struct, and those fields are marked as "typedefs" of "struct" datatype.
I'm attaching a test case to clarify the issue.
On Verilog-Perl version I'm running (3.210) the printed outputs of the testcase are:
Note that "field_struct1" and "field_bit" are fields of another structure datatypes.
To run the testcase:
myparser.pl -file=test_pkg.sv
Thanks in advance,
David
The text was updated successfully, but these errors were encountered: