Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AUTOINST with SV typedef #1094

Closed
veripoolbot opened this issue Oct 5, 2016 · 3 comments
Closed

AUTOINST with SV typedef #1094

veripoolbot opened this issue Oct 5, 2016 · 3 comments
Assignees

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Vinit Shah
Original Redmine Issue: 1094 from https://www.veripool.org

Original Assignee: Wilson Snyder (@wsnyder)


Hello Wilson,

I have a case where the parsing for the module port in the AUTOINST is not working properly.
This is an extension of the Issue #353 mentioned earlier.

When the input port in the module definition is in the following format:

 typedef struct packed {
     logic ftype;
     logic [31:0] content;
 } flit_t;

Module definition:

 module mymodule (
     input flit_t [15:0] flit
 );

When AUTOINST is used for the instantiation and Emacs AUTOs is executed:

mymodule MY_MOD (/*AUTOINST*/
                  // Interfaces
                  .flit         (flist/*.[15:0]*/)
                 );

Local variable definitions:

// Local Variables:
// verilog-typedef-regexp:"_t$"
// End:

Am I missing anything? What could be a possible solution?

Thanks.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Vinit Shah
Original Date: 2016-10-05T23:43:33Z


The output of the Emacs AUTO updates actually looks like this:

 mymodule MY_MOD (/*AUTOINST*/
                   // Inputs
                   .flit_t        (flit_t/*.[15:0]*/), // Typedef
                   .flit          (flit));             // Signal

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2016-10-11T11:09:04Z


Do you have the typedef-regexp in all files? Can you please attach a complete file/tar archive with the issue shown?

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-11-19T13:53:20Z


Closing due to age, I'm presuming you solved your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants