veripool / verilog-mode

Verilog-Mode for Emacs with Indentation, Hightlighting and AUTOs. Master repository for pushing to GNU, verilog.com and veripool.org.
http://veripool.org/verilog-mode
GNU General Public License v3.0
256 stars 90 forks source link

import packages not working in emacs. #1864

Open deepak00agarwal opened 7 months ago

deepak00agarwal commented 7 months ago

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 commented 7 months ago

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::)