[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

verilog-load-file-at-point

Added by David Rogoff about 2 years ago

Hi guys.

got another one for you. I was going over my key bindings and settings as I finish up moving from xemacs (which I've been using since it was Lucid emacs) to gnu emacs 23 on Linux and Aquamacs on my Mac. I've used the verilog-library-directories for AUTOINST and thought I was using this to jump to source files for instantiated modules using verilog-load-file-at-point. However, I realized today that I've actually just been using find-file-at-point all this time (which I have mapped to c-x, c-f). This worked fine for modules in the same directory.

So, I added

(define-key verilog-mode-map "\C-x\C-f" 'verilog-load-file-at-point)
. However, when I put the cursor in the name of an instantiated module and type c-x,c-f, nothing happens! I checked with c-h,k to make sure it was mapped. It won't even work for files in the same directory whose filenames are MODULENAME.v. I have "." as part of verilog-library-directories. Any ideas?

I actually wanted to ask you about more advanced features of verilog-load-file-at-point (afterwards referred to as vlfap). Does it expand shell environment variables like ffap? This is essential in my environment where we have scripts that set up lots of library and IP paths when entering a cvs sandbox for a project. ffap handles this, which is great. I actually just got some great help in gnu.emacs.help. ffap didn't work if the variable name was inside curly braces. I got this code that fixes that:

(add-to-list 'ffap-string-at-point-mode-alist 
            '(file "--:\\\\$+<>@-Z_[:alpha:]~*?{}" "<@" "@>;.,!:"))

I hope vlfap can support this too.

Thanks,

David