Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Describe how to find source file to debug autos #1471
Author Name: David Rogoff
Original Assignee: Wilson Snyder (@wsnyder)
Reading Issue #1464 reminded me of a debug feature that would be great. verilog-auto-inst-template-numbers is very helpful, but would would be really great would be for Verilog-auto to add a comment showing the filename/path where it got the instantiated file. I've been putting together some big, top-level wrapper modules and many sub-modules have versions in multiple directories. It was driving me nuts when ports weren't what I thought they should be until I realized what was going on and had to play with the order of Verilog-library-directories and make sure no other versions were open in emacs buffers.
Would this be easy to add?
Original Redmine Comment
This is doable, however I think an alternative that exists now may be as useful or more useful. Will shortly (unless you have rewordings) add this to the verilog-auto-inst docs:
"To debug what file a submodule comes from, in a buffer with AUTOINST use \[verilog-goto-defun] to switch buffers to the point containing the given symbol (i.e. a submodule name)'s module definition.