"~/.vim/filetype.vim
au BufNewFile,BufRead *.v,*.vh setf verilog
au BufNewFile,BufRead *.sv,*.svh setf verilog_systemverilog
download
"~/.vim/syntax/verilg_systemverilog.vim
"verilog.vim could be found at VIM's install path
"~/.vimrc
syntax on
2,download
~/elisp/verilog-mode.el
3, download
~/.vim/ftplugin/verilog_emacsauto.vim
~/.vim/ftplugin/verilog_systemverilog_emacsauto.vim " make a copy for sv
*modify the keymap if you want
4,
"~/.vimrc
filetype plugin indent on
5, you are ready to use the autos in both .v and .sv
put ./module_a.v ./module_b.v
edit ./tb_top.v:
module tb_top;
module_a u_a(/*AUTOINST*/
);
module_b u_b(/*AUTOINST*/
);
endmodule
*use keymap Ctrl-A
没有评论:
发表评论