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

import packages not working in emacs. #1864

Open
deepak00agarwal opened this issue Feb 19, 2024 · 1 comment
Open

import packages not working in emacs. #1864

deepak00agarwal opened this issue Feb 19, 2024 · 1 comment

Comments

@deepak00agarwal
Copy link

module test_module_A (
import common_pkg::*;
sig_A_01,
sig_A_02
);
input sig_A_01;
output sig_A_02;
endmodule

++++++++++++++++++++++++++++++
module test_wrapper_AB (/AUTOARG/);

/AUTOOUTPUT/
/AUTOINPUT/
/AUTOWIRE/

test_module_A u_test_module_A(/AUTOINST/);
endmodule
// Local Variables:
// verilog-library-flags:(". ")
// verilog-auto-inst-param-value:t
// End:
+++++++++++++++++++++++++++++++++

It is not able to import the package which is present in the test_module_A to test_wrapper_AB , when ran below command.
Command used: emacs --batch test_wrapper_AB.sv -f verilog-batch-auto

@wsnyder
Copy link
Member

wsnyder commented Feb 19, 2024

Verilog-mode autos don't process imports, it just ignores any packagename::. If there is a typedef in a package it must be named based on the typedef-regexp rules (so it works ignoring the package::)

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

No branches or pull requests

2 participants