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

AUTOREGINPUT does work if signal is on LHS of assign statement #1401

Closed
veripoolbot opened this issue Feb 19, 2019 · 4 comments
Closed

AUTOREGINPUT does work if signal is on LHS of assign statement #1401

veripoolbot opened this issue Feb 19, 2019 · 4 comments
Assignees
Labels

Comments

@veripoolbot
Copy link
Collaborator


Author Name: David Rogoff
Original Redmine Issue: 1401 from https://www.veripool.org

Original Assignee: Wilson Snyder (@wsnyder)


Hi.

I have a wrapper module I'm working on. It instantiates a submodule that's all AUTOINST and I've got AUTOLOGIC, AUTOWIRE, and AUTOREGINPUT. The input port signals for the submodule should appear in the AUTOREGINPUT section. And they do - unless those signals appear in assign statements I have to rename wrapper ports (too complicated renaming to use AUTOINST template). I need to comment-out all the assigns, update AUTOS, and then un-comment-out the assigns. Is there a better way to do this?

Thanks,

David

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: David Rogoff
Original Date: 2019-02-26T18:36:18Z


Subject should be "does not work".

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2019-02-26T22:24:09Z


In Verilog, it's illegal to have an "assign" targeting a "reg", so I presume you're using system Verilog? Could you use "wire foo = bar" instead of assign?

If not I assume you're asking for an e.g. verilog-auto-reg-input-ignore-assign you set to "t"?

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: David Rogoff
Original Date: 2019-02-27T18:08:08Z


Wilson Snyder wrote:

In Verilog, it's illegal to have an "assign" targeting a "reg", so I presume you're using system Verilog?

Correct

Could you use "wire foo = bar" instead of assign?

No, because the signals are output ports of the wrapper module, not internal signals

If not I assume you're asking for an e.g. verilog-auto-reg-input-ignore-assign you set to "t"?

I think so.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2019-03-08T02:21:10Z


Added new verilog-auto-reg-input-assigned-ignore-regexp to verilog-mode-2019-03-07-4cfa499-vpo.

You'd use it like this at the bottom of your file for your case:

// Local Variables:
// verilog-auto-reg-input-assigned-ignore-regexp: ".*"
// End:

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

No branches or pull requests

2 participants