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
question Further information is requested

Comments

@veripoolbot
Copy link
Collaborator


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


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.

@veripoolbot veripoolbot added the question Further information is requested label Mar 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant