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

Question: AUTOINOUTMODULE with AUTOINST failure #1207

Closed
veripoolbot opened this issue Sep 15, 2017 · 1 comment
Closed

Question: AUTOINOUTMODULE with AUTOINST failure #1207

veripoolbot opened this issue Sep 15, 2017 · 1 comment
Labels

Comments

@veripoolbot
Copy link
Collaborator

@veripoolbot veripoolbot commented Sep 15, 2017


Author Name: Dushyant Juneja
Original Redmine Message: 2338 from https://www.veripool.org


Hi,

AUTOINOUTMODULE and AUTOINST seem to have a tough time working together. Here's a MWA:

module mod_stub
  (/*AUTOINOUTMODULE("mod")*/
    );

endmodule // mod_stub

module mod
  (input i,
    output o);

    mod_stub i_stub
      (/*AUTOINST*/);

endmodule // mod

When I do C-c C-a, it brings up this:

module mod_stub
  (/*AUTOINOUTMODULE("mod")*/
  // Beginning of automatic in/out/inouts (from specific module)
  output		o,
  input			i
  // End of automatics
    );

endmodule // mod_stub

module mod
  (input i,
    output o);

    mod_stub i_stub
      (/*AUTOINST*/);

endmodule // mod

Notice that it failed to populate the AUTOINST.

Basically, i am trying to create the stub of a module and instantiating it inside the module. If there is a better way to do this, please let me know.

@veripoolbot
Copy link
Collaborator Author

@veripoolbot veripoolbot commented Sep 15, 2017


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-09-15T22:36:10Z


Verilog-mode expects there to be generally one module per file, which is also a standard best practice. Then you verilog-mode from bottom up and it will work.

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

Successfully merging a pull request may close this issue.

None yet
1 participant